因?yàn)樾〕绦虻臉邮绞悄J(rèn)隔離
- addGlobalClass設(shè)置為true可允許外部修改樣式
Component({
options: {
addGlobalClass: true
}
})
- 傳入externalClasses: [ xxx, yyy]
Component({
externalClasses: ['wr-class', 'wr-class--no-more'],
})
Tips: 組件默認(rèn)只能使用一個(gè)slot,需要多個(gè)插槽或需要使用具名插槽的時(shí)候,需要傳入multipleSlots: true。
Component({
options: {
multipleSlots: true
},