1.首先在根目录新建components目录,然后在components下创建组件
2.新建组件之后再需要引入的地方引用例如在pages下的classic里引用
12345678910
//classic.json{ "usingComponents": { "v-like":"/components/like/index" //键名是可以自定义的,为组件的名字 }}//classic.wxml<v-like />
蓝蜀
我就是个写代码的
杭州
文章
60
分类
8
标签
5
前端 / ant-design-vue踩过的坑
前端 / vue
Update your browser to view this website correctly. Update my browser now
×