微信小程序自定义组件

1、创建组件

2、编写wxml文件

3、写样式

 

4、dialog.js

5、引入组件index.json

6、父组件index.js

 7、使用组件

原文地址:https://www.cnblogs.com/vhen/p/8557013.html