Skip to content

Commit e550238

Browse files
authored
fix(input): correct props arrangement in suffix example (#3958)
1 parent 015f844 commit e550238

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/components/input/__test__/__snapshots__/demo.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ exports[`Input Input suffix demo works fine 1`] = `
275275
<t-input
276276
class="extra"
277277
label="标签文字"
278+
maxcharacter="{{10}}"
278279
placeholder="请输入文字"
279280
tips="最多十个字"
280281
>
281282
<t-button
282-
maxcharacter="{{10}}"
283283
size="extra-small"
284284
slot="extra"
285285
theme="primary"

packages/components/input/_example/suffix/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
bind:click="click"
66
/>
77

8-
<t-input class="extra" label="标签文字" placeholder="请输入文字" tips="最多十个字">
9-
<t-button slot="extra" theme="primary" maxcharacter="{{10}}" size="extra-small"> 操作按钮 </t-button>
8+
<t-input class="extra" label="标签文字" placeholder="请输入文字" tips="最多十个字" maxcharacter="{{10}}">
9+
<t-button slot="extra" theme="primary" size="extra-small"> 操作按钮 </t-button>
1010
</t-input>
1111

1212
<t-input label="标签文字" placeholder="请输入文字" suffixIcon="{{ { name: 'user-avatar', ariaLabel: '通讯录' } }}" />

0 commit comments

Comments
 (0)