小程序创建组件

103 阅读1分钟

1.创建组建

image.png

2.引入组件

image.png

3.使用组件

image.png

父传子

image.png

image.png

子传父

image.png

插槽

image.png

image.png