์ ๊ตฌ์ฑ ์์๋ @click ์ด๋ฒคํธ๋ฅผ ์ด๋ป๊ฒ ๋ฐ์ธ๋ฉ ํฉ๋๊น? ํ์๋๋ก ์จ๋ ์์ฉ์์ ๊ฒ ๊ฐ์ต๋๋ค. ์ ์ ์ฌ๋กฏ์ ์ถ๊ฐํ๋ฉด ์ฌ๋กฏ์ ๋ฌถ์ ์ ์์ง๋ง ์ ์ ๋ฌถ๊ณ ์ถ์ต๋๋ค.
vue ๋ฉ์๋์ ๋ฐ๋ผ ์ ์ ์ง์ ๋ฐ์ธ๋ฉํ๊ธฐ๋ง ํ๋ฉด ๋ฉ๋๋ค.
<cell title="My Account" value="Protected" @click="fn"></cell>
๋ทฐ2.0
<cell is-link @click="choosePic">
<img slot="icon" width="48" style="display:block;margin-right:8px;" src="https://o3e85j0cv.qnssl.com/tulips-1083572__340.jpg">
</cell>
ํจ๊ณผ ์์, ์
์ ํด๋ฆญํ ๋ค์ ์์
์ํธ๋ฅผ ํ์ํ๊ณ ์ถ์ต๋๋ค.
@janchengwang vue2.0 ๊ตฌ์ฑ ์์์ ํด๋ฆญ ์ด๋ฒคํธ๋ฅผ ๋ฐ์ธ๋ฉํ๋ ค๋ฉด @click.native๋ฅผ ์ฌ์ฉํฉ๋๋ค.
@airyland ์์์ด ์์์ด
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@janchengwang vue2.0 ๊ตฌ์ฑ ์์์ ํด๋ฆญ ์ด๋ฒคํธ๋ฅผ ๋ฐ์ธ๋ฉํ๋ ค๋ฉด @click.native๋ฅผ ์ฌ์ฉํฉ๋๋ค.