单个插槽用法跟vue的差不多
多个插槽:
具名插槽,用name起名,引用时用slot=’'标明是代替哪一个插槽。
除此之外,想使用多插槽在组建的component里面添加options属性,
这样就可以了。
组件的component
data定义原始数据,
properties定义准备接送父传过来的东西。
methods:定义方法
options:额外一些配置资源
externalClasses:[]准备接受外界的样式
observers:{}可以监听porperties和data里面的数据的改变,只有newvalue
组件的声明周期。1 监听页面的声明周期
pageLifetimes:{}show,hide,resize
2 监听自身的生命周期
lifetimes,created,attached,ready,moved,detached