單個插槽用法跟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