mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 11:18:14 +08:00
docs(input): add placeholder (#45643)
* docs(input): add placeholder * chore: update input-number
This commit is contained in:
parent
d9902eb367
commit
56c2b56bf2
@ -44,6 +44,7 @@ Common props ref:[Common props](/docs/react/common-props)
|
|||||||
| bordered | Whether has border style | boolean | true | 4.12.0 |
|
| bordered | Whether has border style | boolean | true | 4.12.0 |
|
||||||
| controls | Whether to show `+-` controls, or set custom arrows icon | boolean \| { upIcon?: React.ReactNode; downIcon?: React.ReactNode; } | - | 4.19.0 |
|
| controls | Whether to show `+-` controls, or set custom arrows icon | boolean \| { upIcon?: React.ReactNode; downIcon?: React.ReactNode; } | - | 4.19.0 |
|
||||||
| decimalSeparator | Decimal separator | string | - | - |
|
| decimalSeparator | Decimal separator | string | - | - |
|
||||||
|
| placeholder | placeholder | string | - | |
|
||||||
| defaultValue | The initial value | number | - | - |
|
| defaultValue | The initial value | number | - | - |
|
||||||
| disabled | If disable the input | boolean | false | - |
|
| disabled | If disable the input | boolean | false | - |
|
||||||
| formatter | Specifies the format of the value presented | function(value: number \| string, info: { userTyping: boolean, input: string }): string | - | info: 4.17.0 |
|
| formatter | Specifies the format of the value presented | function(value: number \| string, info: { userTyping: boolean, input: string }): string | - | info: 4.17.0 |
|
||||||
|
@ -45,6 +45,7 @@ demo:
|
|||||||
| bordered | 是否有边框 | boolean | true | 4.12.0 |
|
| bordered | 是否有边框 | boolean | true | 4.12.0 |
|
||||||
| controls | 是否显示增减按钮,也可设置自定义箭头图标 | boolean \| { upIcon?: React.ReactNode; downIcon?: React.ReactNode; } | - | 4.19.0 |
|
| controls | 是否显示增减按钮,也可设置自定义箭头图标 | boolean \| { upIcon?: React.ReactNode; downIcon?: React.ReactNode; } | - | 4.19.0 |
|
||||||
| decimalSeparator | 小数点 | string | - | - |
|
| decimalSeparator | 小数点 | string | - | - |
|
||||||
|
| placeholder | 占位符 | string | - | |
|
||||||
| defaultValue | 初始值 | number | - | - |
|
| defaultValue | 初始值 | number | - | - |
|
||||||
| disabled | 禁用 | boolean | false | - |
|
| disabled | 禁用 | boolean | false | - |
|
||||||
| formatter | 指定输入框展示值的格式 | function(value: number \| string, info: { userTyping: boolean, input: string }): string | - | info: 4.17.0 |
|
| formatter | 指定输入框展示值的格式 | function(value: number \| string, info: { userTyping: boolean, input: string }): string | - | info: 4.17.0 |
|
||||||
|
@ -55,6 +55,7 @@ Common props ref:[Common props](/docs/react/common-props)
|
|||||||
| allowClear | If allow to remove input content with clear icon | boolean \| { clearIcon: ReactNode } | false | |
|
| allowClear | If allow to remove input content with clear icon | boolean \| { clearIcon: ReactNode } | false | |
|
||||||
| bordered | Whether has border style | boolean | true | 4.5.0 |
|
| bordered | Whether has border style | boolean | true | 4.5.0 |
|
||||||
| classNames | Semantic DOM class | Record<[SemanticDOM](#input-1), string> | - | 5.4.0 |
|
| classNames | Semantic DOM class | Record<[SemanticDOM](#input-1), string> | - | 5.4.0 |
|
||||||
|
| placeholder | placeholder | string | - | |
|
||||||
| defaultValue | The initial input content | string | - | |
|
| defaultValue | The initial input content | string | - | |
|
||||||
| disabled | Whether the input is disabled | boolean | false | |
|
| disabled | Whether the input is disabled | boolean | false | |
|
||||||
| id | The ID for input | string | - | |
|
| id | The ID for input | string | - | |
|
||||||
@ -82,6 +83,7 @@ The rest of the props of Input are exactly the same as the original [input](http
|
|||||||
| autoSize | Height autosize feature, can be set to true \| false or an object { minRows: 2, maxRows: 6 } | boolean \| object | false | |
|
| autoSize | Height autosize feature, can be set to true \| false or an object { minRows: 2, maxRows: 6 } | boolean \| object | false | |
|
||||||
| bordered | Whether has border style | boolean | true | 4.5.0 |
|
| bordered | Whether has border style | boolean | true | 4.5.0 |
|
||||||
| classNames | Semantic DOM class | Record<[SemanticDOM](#inputtextarea-1), string> | - | 5.4.0 |
|
| classNames | Semantic DOM class | Record<[SemanticDOM](#inputtextarea-1), string> | - | 5.4.0 |
|
||||||
|
| placeholder | placeholder | string | - | |
|
||||||
| defaultValue | The initial input content | string | - | |
|
| defaultValue | The initial input content | string | - | |
|
||||||
| maxLength | The maximum number of characters in TextArea | number | - | 4.7.0 |
|
| maxLength | The maximum number of characters in TextArea | number | - | 4.7.0 |
|
||||||
| showCount | Whether to show character count | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string } | false | 4.7.0 formatter: 4.10.0 info.value: 4.23.0 |
|
| showCount | Whether to show character count | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string } | false | 4.7.0 formatter: 4.10.0 info.value: 4.23.0 |
|
||||||
|
@ -56,6 +56,7 @@ demo:
|
|||||||
| allowClear | 可以点击清除图标删除内容 | boolean \| { clearIcon: ReactNode } | - | |
|
| allowClear | 可以点击清除图标删除内容 | boolean \| { clearIcon: ReactNode } | - | |
|
||||||
| bordered | 是否有边框 | boolean | true | 4.5.0 |
|
| bordered | 是否有边框 | boolean | true | 4.5.0 |
|
||||||
| classNames | 语义化结构 class | Record<[SemanticDOM](#input-1), string> | - | 5.4.0 |
|
| classNames | 语义化结构 class | Record<[SemanticDOM](#input-1), string> | - | 5.4.0 |
|
||||||
|
| placeholder | 占位符 | string | - | |
|
||||||
| defaultValue | 输入框默认内容 | string | - | |
|
| defaultValue | 输入框默认内容 | string | - | |
|
||||||
| disabled | 是否禁用状态,默认为 false | boolean | false | |
|
| disabled | 是否禁用状态,默认为 false | boolean | false | |
|
||||||
| id | 输入框的 id | string | - | |
|
| id | 输入框的 id | string | - | |
|
||||||
@ -83,6 +84,7 @@ Input 的其他属性和 React 自带的 [input](https://reactjs.org/docs/dom-el
|
|||||||
| autoSize | 自适应内容高度,可设置为 true \| false 或对象:{ minRows: 2, maxRows: 6 } | boolean \| object | false | |
|
| autoSize | 自适应内容高度,可设置为 true \| false 或对象:{ minRows: 2, maxRows: 6 } | boolean \| object | false | |
|
||||||
| bordered | 是否有边框 | boolean | true | 4.5.0 |
|
| bordered | 是否有边框 | boolean | true | 4.5.0 |
|
||||||
| classNames | 语义化结构 class | Record<[SemanticDOM](#inputtextarea-1), string> | - | 5.4.0 |
|
| classNames | 语义化结构 class | Record<[SemanticDOM](#inputtextarea-1), string> | - | 5.4.0 |
|
||||||
|
| placeholder | 占位符 | string | - | |
|
||||||
| defaultValue | 输入框默认内容 | string | - | |
|
| defaultValue | 输入框默认内容 | string | - | |
|
||||||
| maxLength | 内容最大长度 | number | - | 4.7.0 |
|
| maxLength | 内容最大长度 | number | - | 4.7.0 |
|
||||||
| showCount | 是否展示字数 | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string } | false | 4.7.0 formatter: 4.10.0 info.value: 4.23.0 |
|
| showCount | 是否展示字数 | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string } | false | 4.7.0 formatter: 4.10.0 info.value: 4.23.0 |
|
||||||
|
Loading…
Reference in New Issue
Block a user