Skip to content

Commit de0c80b

Browse files
committed
feat: input新增extra插槽
#1639
1 parent 01c6a7f commit de0c80b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/input/_example/suffix/index.wxml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@
99
<t-button slot="suffix" theme="primary" size="extra-small"> 操作按钮 </t-button>
1010
</t-input>
1111

12+
<t-input label="标签文字" placeholder="请输入文字" tips="最多十个字">
13+
<t-button slot="extra" theme="primary" maxcharacter="{{10}}" size="extra-small"> 操作按钮 </t-button>
14+
</t-input>
15+
1216
<t-input label="标签文字" placeholder="请输入文字" suffixIcon="{{ { name: 'user-avatar', ariaLabel: '通讯录' } }}" />

src/input/input.wxml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@
9898
</view>
9999
<slot name="tips" />
100100
</view>
101+
102+
<slot name="extra" />
101103
</view>

0 commit comments

Comments
 (0)