Skip to content

Commit

Permalink
[stdf]v0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 committed Oct 11, 2023
1 parent 092b57a commit 30700c5
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 74 deletions.
64 changes: 32 additions & 32 deletions doc/components/input/api.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
## Input Props

| 属性 | 类型 | 默认值 | 可选值 | 必传 | 说明 |
| ----------------- | ------------------ | ------- | ---------------------------------------------------------------------------------- | ---- | ------------------------------- |
| title | String/slot | '' | - | N | 标题内容。 |
| placeholder | String | '' | - | N | 输入框提示文本。 |
| titlePosition | String | 'out' | 'out'/'in'/'none' | N | 标题位置。 |
| inputPosition | String | 'left' | 'left'/'right' | N | 输入框文字位置。 |
| radius | String | 'base' | 'none'/'base'/'xl'/'full' | N | 圆角风格。 |
| inputStyle | String | 'block' | 'block'/'line' | N | 输入框风格。 |
| py | String | '2' | '0'/'0.5'/'1'/'2'/'3'/'4'/'6' | N | 垂直间距。 |
| lineTransition | String | 'none' | 'none'/'center'/'left' | N | 线性过渡位置。 |
| duration | String | 'base' | 'fast'/'base'/'slow'/'slower' | N | 过渡时间。 |
| value | String | '' | - | N | 输入框值。 |
| type | String | 'text' | 'text'/'decimal'/'email'/'none'/'numeric'/'search'/'tel'/'url'/'password'/'number' | N | 输入框类型。 |
| inputmode | String | '' | 'text'/'decimal'/'email'/'none'/'numeric'/'search'/'tel'/'url' | N | 指定输入的数据类型。 |
| state | String | 'theme' | 'theme'/'success'/'warning'/'error'/'info' | N | 状态。 |
| maxlength | Number | 24 | - | N | 最多可输入文本长度。 |
| rows | Number | 2 | - | N | textarea 时行数。 |
| autosize | Boolean | false | true/false | N | textarea 时是否自动调整高度。 |
| textareaMaxlength | Number | 200 | - | N | textarea 时最多可输入文本长度。 |
| clear | Boolean | false | true/false | N | 是否可清空。 |
| autocomplete | Boolean | true | true/false | N | 是否开启自动填充功能。 |
| disabled | Boolean | false | true/false | N | 是否禁用。 |
| label1 | String/Object/slot | '' | ''/Icon Props/slot | N | 标签 1 内容。 |
| label2 | String/slot | '' | ''/Any String/slot | N | 标签 2 内容。 |
| label3 | String/Object/slot | '' | ''/Icon Props/slot | N | 标签 3 内容。 |
| label4 | String/Object/slot | '' | ''/Icon Props/slot | N | 标签 4 内容。 |
| label5 | String/slot | '' | ''/Any String/slot | N | 标签 5 内容。 |
| label6 | String/Object/slot | '' | ''/Icon Props/slot | N | 标签 6 内容。 |
| tip | String/slot | '' | ''/Any String/slot | N | 提示信息内容。 |
| data1 | String/slot | '' | ''/Any String/slot | N | 数据项 1 内容。 |
| data2 | String/slot | '' | ''/Any String/slot | N | 数据项 2 内容。 |
| data3 | String/slot | '' | ''/Any String/slot | N | 数据项 3 内容。 |
| 属性 | 类型 | 默认值 | 可选值 | 必传 | 说明 |
| ----------------- | ------------------ | ------- | --------------------------------------------------------------------------------------------- | ---- | ------------------------------- |
| title | String/slot | '' | - | N | 标题内容。 |
| placeholder | String | '' | - | N | 输入框提示文本。 |
| titlePosition | String | 'out' | 'out'/'in'/'none' | N | 标题位置。 |
| inputPosition | String | 'left' | 'left'/'right' | N | 输入框文字位置。 |
| radius | String | 'base' | 'none'/'base'/'xl'/'full' | N | 圆角风格。 |
| inputStyle | String | 'block' | 'block'/'line' | N | 输入框风格。 |
| py | String | '2' | '0'/'0.5'/'1'/'2'/'3'/'4'/'6' | N | 垂直间距。 |
| lineTransition | String | 'none' | 'none'/'center'/'left' | N | 线性过渡位置。 |
| duration | String | 'base' | 'fast'/'base'/'slow'/'slower' | N | 过渡时间。 |
| value | String | '' | - | N | 输入框值。 |
| type | String | 'text' | 'text'/'decimal'/'email'/'none'/'numeric'/'search'/'tel'/'url'/'password'/'number'/'textarea' | N | 输入框类型。 |
| inputmode | String | '' | 'text'/'decimal'/'email'/'none'/'numeric'/'search'/'tel'/'url' | N | 指定输入的数据类型。 |
| state | String | 'theme' | 'theme'/'success'/'warning'/'error'/'info' | N | 状态。 |
| maxlength | Number | 24 | - | N | 最多可输入文本长度。 |
| rows | Number | 2 | - | N | textarea 时行数。 |
| autosize | Boolean | false | true/false | N | textarea 时是否自动调整高度。 |
| textareaMaxlength | Number | 200 | - | N | textarea 时最多可输入文本长度。 |
| clear | Boolean | false | true/false | N | 是否可清空。 |
| autocomplete | Boolean | true | true/false | N | 是否开启自动填充功能。 |
| disabled | Boolean | false | true/false | N | 是否禁用。 |
| label1 | String/Object/slot | '' | ''/Icon Props/slot | N | 标签 1 内容。 |
| label2 | String/slot | '' | ''/Any String/slot | N | 标签 2 内容。 |
| label3 | String/Object/slot | '' | ''/Icon Props/slot | N | 标签 3 内容。 |
| label4 | String/Object/slot | '' | ''/Icon Props/slot | N | 标签 4 内容。 |
| label5 | String/slot | '' | ''/Any String/slot | N | 标签 5 内容。 |
| label6 | String/Object/slot | '' | ''/Icon Props/slot | N | 标签 6 内容。 |
| tip | String/slot | '' | ''/Any String/slot | N | 提示信息内容。 |
| data1 | String/slot | '' | ''/Any String/slot | N | 数据项 1 内容。 |
| data2 | String/slot | '' | ''/Any String/slot | N | 数据项 2 内容。 |
| data3 | String/slot | '' | ''/Any String/slot | N | 数据项 3 内容。 |

## Input Events

Expand Down

0 comments on commit 30700c5

Please sign in to comment.