nervjs / taro3-vant-sample Goto Github PK
View Code? Open in Web Editor NEWTaro3 中使用 vant-weapp 的示例
Taro3 中使用 vant-weapp 的示例
更新vant版本如果不是npm 会很麻烦 而且 vant组件太多文件引入防止会导致编辑器卡 不知道的人员还会修改导致bug
到底什么问题?
有没有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>
https://vant-contrib.gitee.io/vant-weapp/#/common
在scss中直接引入会报错
在 pages/abc.config.js 里使用 usingComponents 不生效。
麻烦看看这个问题吧 NervJS/taro#3885
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.