File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3030
3131实际上我们更常见的需求是图标搭配文字效果,因此 cube-tab-bar 组件也支持了插槽的使用方式, 注意必须搭配 cube-tab 组件作为第一层级的子组件,来包裹你自定义插槽。
3232
33- 注意:由于转小程序不支持插槽默认值,所以需要传递` customize -content` 和` customize -icon` 来分别开启` 默认插槽 ` 和` icon插槽 ` 。
33+ 注意:由于转小程序不支持插槽默认值,所以需要传递` custom -content` 和` custom -icon` 来分别开启` 默认插槽 ` 和` icon插槽 ` 。
3434
3535<!-- @example: tab-bar-slot -> template -->
3636
Original file line number Diff line number Diff line change 55 tabs="{{tabs}}"
66 show-slider
77 inline
8- customize -content
8+ custom -content
99 bindclick="clickHandler"
1010 bindchange="changeHandler"
1111 >
Original file line number Diff line number Diff line change 44 wx:model-prop="value"
55 tabs="{{tabs}}"
66 show-slider
7- customize -content
7+ custom -content
88 bindclick="clickHandler"
99 bindchange="changeHandler"
1010 >
Original file line number Diff line number Diff line change 44 wx:model-prop="value"
55 bindclick="clickHandler"
66 bindchange="changeHandler"
7- customize -content
7+ custom -content
88 tabs="{{tabs}}"
99 >
1010 <cube-tab
1313 wx:key="label"
1414 label="{{item.label}}"
1515 value="{{item.value}}"
16- customize -content
17- customize -icon
16+ custom -content
17+ custom -icon
1818 >
1919 <cube-icon type="{{item.icon}}"/>
2020 <!-- use en empty tag to replace default slot -->
You can’t perform that action at this time.
0 commit comments