Skip to content

Commit ffe01ff

Browse files
committed
docs: update props
1 parent f3be207 commit ffe01ff

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

example/pages/tab-bar/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
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

example/pages/tab-bar/tab-bar-inline.mpx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
tabs="{{tabs}}"
66
show-slider
77
inline
8-
customize-content
8+
custom-content
99
bindclick="clickHandler"
1010
bindchange="changeHandler"
1111
>

example/pages/tab-bar/tab-bar-slider.mpx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
wx:model-prop="value"
55
tabs="{{tabs}}"
66
show-slider
7-
customize-content
7+
custom-content
88
bindclick="clickHandler"
99
bindchange="changeHandler"
1010
>

example/pages/tab-bar/tab-bar-slot.mpx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
wx:model-prop="value"
55
bindclick="clickHandler"
66
bindchange="changeHandler"
7-
customize-content
7+
custom-content
88
tabs="{{tabs}}"
99
>
1010
<cube-tab
@@ -13,8 +13,8 @@
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 -->

0 commit comments

Comments
 (0)