Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有taro3 + vue3 使用vant的例子呢,事件绑定要写2个,bindtap和@tap #3

Open
chenchaoc opened this issue Nov 12, 2020 · 1 comment

Comments

@chenchaoc
Copy link

chenchaoc commented Nov 12, 2020

有没有taro3 + vue3 使用vant的例子呢,事件绑定要写2个,bindtap和@tap才能正确触发...

运行环境
"@babel/runtime": "^7.7.7",
"@tarojs/components": "3.0.15",
"@tarojs/runtime": "3.0.15",
"@tarojs/taro": "3.0.15",
"@vant/weapp": "^1.6.0",
"vue": "^3.0.0"

代码要这样写才触发

    <view class="pd-16">
      <van-button
        :block="true"
        :round="true"
        type="danger"
        @tap="dj2"
        bindtap="dj2">我点击了</van-button>
    </view>
    <van-cell-group>
      <van-cell title="单元格" value="内容" @tap="dj" bindtap="dj" />
      <van-cell title="单元格" :center="true" value="内容" label="描述信息" />
    </van-cell-group>
@chenchaoc chenchaoc changed the title 有没有taro3 vue 使用vant的例子呢,事件绑定要写2个,bindtap和@tap 有没有taro3 + vue3 使用vant的例子呢,事件绑定要写2个,bindtap和@tap Nov 12, 2020
@Mikasa33
Copy link

Mikasa33 commented Mar 8, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants