mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
Removed version cloumn in 4.0 (#19872)
This commit is contained in:
parent
060b7ded20
commit
84c4e1e10f
@ -89,7 +89,7 @@ If the Ant Design grid layout component does not meet your needs, you can use th
|
||||
| Property | Description | Type | Default | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| align | vertical alignment | `top` `middle` `bottom` | `top` | |
|
||||
| gutter | spacing between grids, could be a number or a object like `{ xs: 8, sm: 16, md: 24}`. or you can use array to make horizontal and vertical spacing work at the same time `[horizontal, vertical]` (supported after `3.24.0`) | number/object/array | 0 | | |
|
||||
| gutter | spacing between grids, could be a number or a object like `{ xs: 8, sm: 16, md: 24}`. or you can use array to make horizontal and vertical spacing work at the same time `[horizontal, vertical]` | number/object/array | 0 | | |
|
||||
| justify | horizontal arrangement | `start` `end` `center` `space-around` `space-between` | `start` | |
|
||||
|
||||
### Col
|
||||
|
@ -88,7 +88,7 @@ Ant Design 的布局组件若不能满足你的需求,你也可以直接使用
|
||||
| 成员 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| align | 垂直对齐方式 | `top` `middle` `bottom` | `top` | |
|
||||
| gutter | 栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 `{ xs: 8, sm: 16, md: 24}`。或者使用数组形式同时设置 `[水平间距, 垂直间距]`(`3.24.0 后支持`)。 | number/object/array | 0 | |
|
||||
| gutter | 栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 `{ xs: 8, sm: 16, md: 24}`。或者使用数组形式同时设置 `[水平间距, 垂直间距]`。 | number/object/array | 0 | |
|
||||
| justify | 水平排列方式 | `start` `end` `center` `space-around` `space-between` | `start` | |
|
||||
|
||||
### Col
|
||||
|
@ -46,7 +46,7 @@ More layouts with navigation: [Layout](/components/layout).
|
||||
| onDeselect | Called when a menu item is deselected (multiple mode only) | function({ item, key, keyPath, selectedKeys, domEvent }) | - | |
|
||||
| onOpenChange | Called when sub-menus are opened or closed | function(openKeys: string\[]) | noop | |
|
||||
| onSelect | Called when a menu item is selected | function({ item, key, keyPath, selectedKeys, domEvent }) | none | |
|
||||
| overflowedIndicator | Customized icon when menu is collapsed | ReactNode | - | 3.16.0 |
|
||||
| overflowedIndicator | Customized icon when menu is collapsed | ReactNode | - | |
|
||||
|
||||
> More options in [rc-menu](https://github.com/react-component/menu#api)
|
||||
|
||||
@ -56,13 +56,13 @@ More layouts with navigation: [Layout](/components/layout).
|
||||
| -------- | ------------------------------------ | ------- | ------------- | ------- |
|
||||
| disabled | Whether menu item is disabled | boolean | false | |
|
||||
| key | Unique ID of the menu item | string | | |
|
||||
| title | Set display title for collapsed item | string | | 3.11.0 |
|
||||
| title | Set display title for collapsed item | string | | |
|
||||
|
||||
### Menu.SubMenu
|
||||
|
||||
| Param | Description | Type | Default value | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| popupClassName | Sub-menu class name | string | | 3.22.0 |
|
||||
| popupClassName | Sub-menu class name | string | | |
|
||||
| children | Sub-menus or sub-menu items | Array<MenuItem\|SubMenu> | | |
|
||||
| disabled | Whether sub-menu is disabled | boolean | false | |
|
||||
| key | Unique ID of the sub-menu | string | | |
|
||||
|
@ -47,28 +47,28 @@ subtitle: 导航菜单
|
||||
| onDeselect | 取消选中时调用,仅在 multiple 生效 | function({ item, key, keyPath, selectedKeys, domEvent }) | - | |
|
||||
| onOpenChange | SubMenu 展开/关闭的回调 | function(openKeys: string\[]) | noop | |
|
||||
| onSelect | 被选中时调用 | function({ item, key, keyPath, selectedKeys, domEvent }) | 无 | |
|
||||
| overflowedIndicator | 自定义 Menu 折叠时的图标 | ReactNode | - | 3.16.0 |
|
||||
| overflowedIndicator | 自定义 Menu 折叠时的图标 | ReactNode | - | |
|
||||
|
||||
> More options in [rc-menu](https://github.com/react-component/menu#api)
|
||||
|
||||
### Menu.Item
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| -------- | ------------------------ | ------- | ------ | ------ |
|
||||
| disabled | 是否禁用 | boolean | false | |
|
||||
| key | item 的唯一标志 | string | | |
|
||||
| title | 设置收缩时展示的悬浮标题 | string | | 3.11.0 |
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| -------- | ------------------------ | ------- | ------ | ---- |
|
||||
| disabled | 是否禁用 | boolean | false | |
|
||||
| key | item 的唯一标志 | string | | |
|
||||
| title | 设置收缩时展示的悬浮标题 | string | | |
|
||||
|
||||
### Menu.SubMenu
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| -------------- | -------------- | --------------------------- | ------ | ------ |
|
||||
| popupClassName | 子菜单样式 | string | | 3.22.0 |
|
||||
| children | 子菜单的菜单项 | Array<MenuItem\|SubMenu> | | |
|
||||
| disabled | 是否禁用 | boolean | false | |
|
||||
| key | 唯一标志 | string | | |
|
||||
| title | 子菜单项值 | string\|ReactNode | | |
|
||||
| onTitleClick | 点击子菜单标题 | function({ key, domEvent }) | | |
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| -------------- | -------------- | --------------------------- | ------ | ---- |
|
||||
| popupClassName | 子菜单样式 | string | | |
|
||||
| children | 子菜单的菜单项 | Array<MenuItem\|SubMenu> | | |
|
||||
| disabled | 是否禁用 | boolean | false | |
|
||||
| key | 唯一标志 | string | | |
|
||||
| title | 子菜单项值 | string\|ReactNode | | |
|
||||
| onTitleClick | 点击子菜单标题 | function({ key, domEvent }) | | |
|
||||
|
||||
### Menu.ItemGroup
|
||||
|
||||
|
@ -16,13 +16,13 @@ PageHeader can be used to highlight the page topic, display important informatio
|
||||
|
||||
| Param | Description | Type | Default value | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| title | Custom title text | ReactNode | - | 3.14.0 |
|
||||
| subTitle | Custom subtitle text | ReactNode | - | 3.14.0 |
|
||||
| ghost | PageHeader type, will change background color | boolean | true | 3.24.0 |
|
||||
| avatar | Avatar next to the title bar | [avatar props](/components/avatar/) | - | 3.22.0 |
|
||||
| backIcon | Custom back icon, if false the back icon will not be displayed | ReactNode | `<ArrowLeft />` | 3.14.0 |
|
||||
| tags | Tag list next to title | [Tag](https://ant.design/components/tag-cn/)[] \| [Tag](https://ant.design/components/tag-cn/) | - | 3.14.0 |
|
||||
| extra | Operating area, at the end of the line of the title line | ReactNode | - | 3.14.0 |
|
||||
| breadcrumb | Breadcrumb configuration | [breadcrumb](https://ant.design/components/breadcrumb-cn/) | - | 3.14.0 |
|
||||
| footer | PageHeader's footer, generally used to render TabBar | ReactNode | - | 3.14.0 |
|
||||
| onBack | Back icon click event | `()=>void` | `()=>history.back()` | 3.14.0 |
|
||||
| title | Custom title text | ReactNode | - | |
|
||||
| subTitle | Custom subtitle text | ReactNode | - | |
|
||||
| ghost | PageHeader type, will change background color | boolean | true | |
|
||||
| avatar | Avatar next to the title bar | [avatar props](/components/avatar/) | - | |
|
||||
| backIcon | Custom back icon, if false the back icon will not be displayed | ReactNode | `<ArrowLeft />` | |
|
||||
| tags | Tag list next to title | [Tag](https://ant.design/components/tag-cn/)[] \| [Tag](https://ant.design/components/tag-cn/) | - | |
|
||||
| extra | Operating area, at the end of the line of the title line | ReactNode | - | |
|
||||
| breadcrumb | Breadcrumb configuration | [breadcrumb](https://ant.design/components/breadcrumb-cn/) | - | |
|
||||
| footer | PageHeader's footer, generally used to render TabBar | ReactNode | - | |
|
||||
| onBack | Back icon click event | `()=>void` | `()=>history.back()` | |
|
||||
|
@ -16,13 +16,13 @@ subtitle: 页头
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| title | 自定义标题文字 | ReactNode | - | 3.14.0 |
|
||||
| subTitle | 自定义的二级标题文字 | ReactNode | - | 3.14.0 |
|
||||
| ghost | pageHeader 的类型,将会改变背景颜色 | boolean | true | 3.24.0 |
|
||||
| avatar | 标题栏旁的头像 | [avatar props](/components/avatar/) | - | 3.22.0 |
|
||||
| backIcon | 自定义 back icon ,如果为 false 不渲染 back icon | ReactNode | `<ArrowLeft />` | 3.14.0 |
|
||||
| tags | title 旁的 tag 列表 | [Tag](https://ant.design/components/tag-cn/)[] \| [Tag](https://ant.design/components/tag-cn/) | - | 3.14.0 |
|
||||
| extra | 操作区,位于 title 行的行尾 | ReactNode | - | 3.14.0 |
|
||||
| breadcrumb | 面包屑的配置 | [breadcrumb](https://ant.design/components/breadcrumb-cn/) | - | 3.14.0 |
|
||||
| footer | PageHeader 的页脚,一般用于渲染 TabBar | ReactNode | - | 3.14.0 |
|
||||
| onBack | 返回按钮的点击事件 | `()=>void` | `()=>history.back()` | 3.14.0 |
|
||||
| title | 自定义标题文字 | ReactNode | - | |
|
||||
| subTitle | 自定义的二级标题文字 | ReactNode | - | |
|
||||
| ghost | pageHeader 的类型,将会改变背景颜色 | boolean | true | |
|
||||
| avatar | 标题栏旁的头像 | [avatar props](/components/avatar/) | - | |
|
||||
| backIcon | 自定义 back icon ,如果为 false 不渲染 back icon | ReactNode | `<ArrowLeft />` | |
|
||||
| tags | title 旁的 tag 列表 | [Tag](https://ant.design/components/tag-cn/)[] \| [Tag](https://ant.design/components/tag-cn/) | - | |
|
||||
| extra | 操作区,位于 title 行的行尾 | ReactNode | - | |
|
||||
| breadcrumb | 面包屑的配置 | [breadcrumb](https://ant.design/components/breadcrumb-cn/) | - | |
|
||||
| footer | PageHeader 的页脚,一般用于渲染 TabBar | ReactNode | - | |
|
||||
| onBack | 返回按钮的点击事件 | `()=>void` | `()=>history.back()` | |
|
||||
|
@ -23,12 +23,12 @@ A long list can be divided into several pages using `Pagination`, and only one p
|
||||
| current | Current page number | number | - | |
|
||||
| defaultCurrent | Default initial page number | number | 1 | |
|
||||
| defaultPageSize | Default number of data items per page | number | 10 | |
|
||||
| disabled | Disable pagination | boolean | - | 3.18.0 |
|
||||
| hideOnSinglePage | Whether to hide pager on single page | boolean | false | 3.1.0 |
|
||||
| disabled | Disable pagination | boolean | - | |
|
||||
| hideOnSinglePage | Whether to hide pager on single page | boolean | false | |
|
||||
| itemRender | To customize item's innerHTML | (page, type: 'page' \| 'prev' \| 'next', originalElement) => React.ReactNode | - | |
|
||||
| pageSize | Number of data items per page | number | - | |
|
||||
| pageSizeOptions | Specify the sizeChanger options | string\[] | \['10', '20', '30', '40'] | |
|
||||
| showLessItems | Show less page items | boolean | false | 3.16.3 |
|
||||
| showLessItems | Show less page items | boolean | false | |
|
||||
| showQuickJumper | Determine whether you can jump to pages directly | boolean \| `{ goButton: ReactNode }` | false | |
|
||||
| showSizeChanger | Determine whether `pageSize` can be changed | boolean | false | |
|
||||
| showTitle | Show page item's title | boolean | true | |
|
||||
|
@ -24,12 +24,12 @@ cols: 1
|
||||
| current | 当前页数 | number | - | |
|
||||
| defaultCurrent | 默认的当前页数 | number | 1 | |
|
||||
| defaultPageSize | 默认的每页条数 | number | 10 | |
|
||||
| disabled | 禁用分页 | boolean | - | 3.18.0 |
|
||||
| hideOnSinglePage | 只有一页时是否隐藏分页器 | boolean | false | 3.1.0 |
|
||||
| disabled | 禁用分页 | boolean | - | |
|
||||
| hideOnSinglePage | 只有一页时是否隐藏分页器 | boolean | false | |
|
||||
| itemRender | 用于自定义页码的结构,可用于优化 SEO | (page, type: 'page' \| 'prev' \| 'next', originalElement) => React.ReactNode | - | |
|
||||
| pageSize | 每页条数 | number | - | |
|
||||
| pageSizeOptions | 指定每页可以显示多少条 | string\[] | \['10', '20', '30', '40'] | |
|
||||
| showLessItems | show less page items | boolean | false | 3.16.3 |
|
||||
| showLessItems | show less page items | boolean | false | |
|
||||
| showQuickJumper | 是否可以快速跳转至某页 | boolean \| `{ goButton: ReactNode }` | false | |
|
||||
| showSizeChanger | 是否可以改变 pageSize | boolean | false | |
|
||||
| showTotal | 用于显示数据总量和当前数据顺序 | Function(total, range) | - | |
|
||||
|
@ -27,16 +27,16 @@ The whole of the step bar.
|
||||
|
||||
| Property | Description | Type | Default | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| className | Additional class to Steps | string | - | 3.11.3 |
|
||||
| type | Type of steps, can be set to one of the following values: `default`, `navigation` | string | `default` | 3.22.0 |
|
||||
| className | Additional class to Steps | string | - | |
|
||||
| type | Type of steps, can be set to one of the following values: `default`, `navigation` | string | `default` | |
|
||||
| current | To set the current step, counting from 0. You can overwrite this state by using `status` of `Step` | number | 0 | |
|
||||
| direction | To specify the direction of the step bar, `horizontal` or `vertical` | string | `horizontal` | |
|
||||
| labelPlacement | Place title and description with `horizontal` or `vertical` direction | string | `horizontal` | 3.7.3 |
|
||||
| labelPlacement | Place title and description with `horizontal` or `vertical` direction | string | `horizontal` | |
|
||||
| progressDot | Steps with progress dot style, customize the progress dot by setting it to a function. labelPlacement will be `vertical` | Boolean or (iconDot, {index, status, title, description}) => ReactNode | false | |
|
||||
| size | To specify the size of the step bar, `default` and `small` are currently supported | string | `default` | |
|
||||
| status | To specify the status of current step, can be set to one of the following values: `wait` `process` `finish` `error` | string | `process` | |
|
||||
| initial | Set the initial step, counting from 0 | number | 0 | 3.9.0 |
|
||||
| onChange | Trigger when Step is changed | (current) => void | - | 3.19.0 |
|
||||
| initial | Set the initial step, counting from 0 | number | 0 | |
|
||||
| onChange | Trigger when Step is changed | (current) => void | - | |
|
||||
|
||||
### Steps.Step
|
||||
|
||||
@ -48,5 +48,5 @@ A single step in the step bar.
|
||||
| icon | Icon of the step, optional property | string\|ReactNode | - | |
|
||||
| status | To specify the status. It will be automatically set by `current` of `Steps` if not configured. Optional values are: `wait` `process` `finish` `error` | string | `wait` | |
|
||||
| title | Title of the step | string\|ReactNode | - | |
|
||||
| subTitle | Subtitle of the step | string\|ReactNode | - | 3.22.0 |
|
||||
| disabled | Disable click | boolean | false | 3.22.0 |
|
||||
| subTitle | Subtitle of the step | string\|ReactNode | - | |
|
||||
| disabled | Disable click | boolean | false | |
|
||||
|
@ -28,16 +28,16 @@ title: Steps
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| className | 步骤条类名 | string | - | 3.11.3 |
|
||||
| type | 步骤条类型,有 `default` 和 `navigation` 两种 | string | `default` | 3.22.0 |
|
||||
| className | 步骤条类名 | string | - | |
|
||||
| type | 步骤条类型,有 `default` 和 `navigation` 两种 | string | `default` | |
|
||||
| current | 指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 `status` 属性覆盖状态 | number | 0 | |
|
||||
| direction | 指定步骤条方向。目前支持水平(`horizontal`)和竖直(`vertical`)两种方向 | string | horizontal | |
|
||||
| labelPlacement | 指定标签放置位置,默认水平放图标右侧,可选 `vertical` 放图标下方 | string | `horizontal` | 3.7.3 |
|
||||
| labelPlacement | 指定标签放置位置,默认水平放图标右侧,可选 `vertical` 放图标下方 | string | `horizontal` | |
|
||||
| progressDot | 点状步骤条,可以设置为一个 function,labelPlacement 将强制为 `vertical` | Boolean or (iconDot, {index, status, title, description}) => ReactNode | false | |
|
||||
| size | 指定大小,目前支持普通(`default`)和迷你(`small`) | string | default | |
|
||||
| status | 指定当前步骤的状态,可选 `wait` `process` `finish` `error` | string | process | |
|
||||
| initial | 起始序号,从 0 开始记数 | number | 0 | 3.9.0 |
|
||||
| onChange | 点击切换步骤时触发 | (current) => void | - | 3.19.0 |
|
||||
| initial | 起始序号,从 0 开始记数 | number | 0 | |
|
||||
| onChange | 点击切换步骤时触发 | (current) => void | - | |
|
||||
|
||||
### Steps.Step
|
||||
|
||||
@ -49,5 +49,5 @@ title: Steps
|
||||
| icon | 步骤图标的类型,可选 | ReactNode | - | |
|
||||
| status | 指定状态。当不配置该属性时,会使用 Steps 的 `current` 来自动指定状态。可选:`wait` `process` `finish` `error` | string | wait | |
|
||||
| title | 标题 | string\|ReactNode | - | |
|
||||
| subTitle | 子标题 | string\|ReactNode | - | 3.22.0 |
|
||||
| disabled | 禁用点击 | boolean | false | 3.22.0 |
|
||||
| subTitle | 子标题 | string\|ReactNode | - | |
|
||||
| disabled | 禁用点击 | boolean | false | |
|
||||
|
@ -18,46 +18,46 @@ Basic text writing, including headings, body text, lists, and more.
|
||||
|
||||
| Property | Description | Type | Default | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| code | Code style | boolean | false | 3.15.1 |
|
||||
| copyable | Config copy. Can set copy text and callback when is an object | boolean \| { text: string, onCopy: Function } | false | 3.14.0 |
|
||||
| delete | Deleted line style | boolean | false | 3.14.0 |
|
||||
| disabled | Disabled content | boolean | false | 3.14.0 |
|
||||
| editable | Editable. Can control edit state when is object | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | 3.14.0 |
|
||||
| ellipsis | Display ellipsis when text overflows | boolean | false | 3.14.0 |
|
||||
| mark | Marked style | boolean | false | 3.14.0 |
|
||||
| underline | Underlined style | boolean | false | 3.14.0 |
|
||||
| onChange | Trigger when user edits the content | Function(string) | - | 3.14.0 |
|
||||
| strong | Bold style | boolean | false | 3.14.0 |
|
||||
| type | Content type | `secondary`, `warning`, `danger` | - | 3.14.0 |
|
||||
| code | Code style | boolean | false | |
|
||||
| copyable | Config copy. Can set copy text and callback when is an object | boolean \| { text: string, onCopy: Function } | false | |
|
||||
| delete | Deleted line style | boolean | false | |
|
||||
| disabled | Disabled content | boolean | false | |
|
||||
| editable | Editable. Can control edit state when is object | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | |
|
||||
| ellipsis | Display ellipsis when text overflows | boolean | false | |
|
||||
| mark | Marked style | boolean | false | |
|
||||
| underline | Underlined style | boolean | false | |
|
||||
| onChange | Trigger when user edits the content | Function(string) | - | |
|
||||
| strong | Bold style | boolean | false | |
|
||||
| type | Content type | `secondary`, `warning`, `danger` | - | |
|
||||
|
||||
### Typography.Title
|
||||
|
||||
| Property | Description | Type | Default | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| code | Code style | boolean | false | 3.15.1 |
|
||||
| copyable | Config copy. Can set copy text and callback when is an object | boolean \| { text: string, onCopy: Function } | false | 3.14.0 |
|
||||
| delete | Deleted line style | boolean | false | 3.14.0 |
|
||||
| disabled | Disabled content | boolean | false | 3.14.0 |
|
||||
| editable | Editable. Can control edit state when is object | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | 3.14.0 |
|
||||
| ellipsis | Display ellipsis when text overflows. Can configure rows and expandable by using object | boolean \| { rows: number, expandable: boolean, onExpand: Function } | false | 3.14.0 |
|
||||
| level | Set content importance. Match with `h1`, `h2`, `h3`, `h4` | number: `1`, `2`, `3`, `4` | 1 | 3.14.0 |
|
||||
| mark | Marked style | boolean | false | 3.14.0 |
|
||||
| underline | Underlined style | boolean | false | 3.14.0 |
|
||||
| onChange | Trigger when user edits the content | Function(string) | - | 3.14.0 |
|
||||
| type | Content type | `secondary`, `warning`, `danger` | - | 3.14.0 |
|
||||
| code | Code style | boolean | false | |
|
||||
| copyable | Config copy. Can set copy text and callback when is an object | boolean \| { text: string, onCopy: Function } | false | |
|
||||
| delete | Deleted line style | boolean | false | |
|
||||
| disabled | Disabled content | boolean | false | |
|
||||
| editable | Editable. Can control edit state when is object | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | |
|
||||
| ellipsis | Display ellipsis when text overflows. Can configure rows and expandable by using object | boolean \| { rows: number, expandable: boolean, onExpand: Function } | false | |
|
||||
| level | Set content importance. Match with `h1`, `h2`, `h3`, `h4` | number: `1`, `2`, `3`, `4` | 1 | |
|
||||
| mark | Marked style | boolean | false | |
|
||||
| underline | Underlined style | boolean | false | |
|
||||
| onChange | Trigger when user edits the content | Function(string) | - | |
|
||||
| type | Content type | `secondary`, `warning`, `danger` | - | |
|
||||
|
||||
### Typography.Paragraph
|
||||
|
||||
| Property | Description | Type | Default | Version |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| code | Code style | boolean | false | 3.15.1 |
|
||||
| copyable | Config copy. Can set copy text and callback when is an object | boolean \| { text: string, onCopy: Function } | false | 3.14.0 |
|
||||
| delete | Deleted line style | boolean | false | 3.14.0 |
|
||||
| disabled | Disabled content | boolean | false | 3.14.0 |
|
||||
| editable | Editable. Can control edit state when is object | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | 3.14.0 |
|
||||
| ellipsis | Display ellipsis when text overflows. Can configure rows and expandable by using object | boolean \| { rows: number, expandable: boolean, onExpand: Function } | false | 3.14.0 |
|
||||
| mark | Marked style | boolean | false | 3.14.0 |
|
||||
| underline | Underlined style | boolean | false | 3.14.0 |
|
||||
| onChange | Trigger when user edits the content | Function(string) | - | 3.14.0 |
|
||||
| strong | Bold style | boolean | false | 3.14.0 |
|
||||
| type | Content type | `secondary`, `warning`, `danger` | - | 3.14.0 |
|
||||
| code | Code style | boolean | false | |
|
||||
| copyable | Config copy. Can set copy text and callback when is an object | boolean \| { text: string, onCopy: Function } | false | |
|
||||
| delete | Deleted line style | boolean | false | |
|
||||
| disabled | Disabled content | boolean | false | |
|
||||
| editable | Editable. Can control edit state when is object | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | |
|
||||
| ellipsis | Display ellipsis when text overflows. Can configure rows and expandable by using object | boolean \| { rows: number, expandable: boolean, onExpand: Function } | false | |
|
||||
| mark | Marked style | boolean | false | |
|
||||
| underline | Underlined style | boolean | false | |
|
||||
| onChange | Trigger when user edits the content | Function(string) | - | |
|
||||
| strong | Bold style | boolean | false | |
|
||||
| type | Content type | `secondary`, `warning`, `danger` | - | |
|
||||
|
@ -19,42 +19,42 @@ cols: 1
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| copyable | 是否可拷贝,为对象时可设置复制文本以回调函数 | boolean \| { text: string, onCopy: Function } | false | 3.14.0 |
|
||||
| delete | 添加删除线样式 | boolean | false | 3.14.0 |
|
||||
| disabled | 禁用文本 | boolean | false | 3.14.0 |
|
||||
| editable | 是否可编辑,为对象时可对编辑进行控制 | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | 3.14.0 |
|
||||
| ellipsis | 设置自动溢出省略 | boolean | false | 3.14.0 |
|
||||
| mark | 添加标记样式 | boolean | false | 3.14.0 |
|
||||
| underline | 添加下划线样式 | boolean | false | 3.14.0 |
|
||||
| strong | 是否加粗 | boolean | false | 3.14.0 |
|
||||
| type | 文本类型 | `secondary`, `warning`, `danger` | - | 3.14.0 |
|
||||
| copyable | 是否可拷贝,为对象时可设置复制文本以回调函数 | boolean \| { text: string, onCopy: Function } | false | |
|
||||
| delete | 添加删除线样式 | boolean | false | |
|
||||
| disabled | 禁用文本 | boolean | false | |
|
||||
| editable | 是否可编辑,为对象时可对编辑进行控制 | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | |
|
||||
| ellipsis | 设置自动溢出省略 | boolean | false | |
|
||||
| mark | 添加标记样式 | boolean | false | |
|
||||
| underline | 添加下划线样式 | boolean | false | |
|
||||
| strong | 是否加粗 | boolean | false | |
|
||||
| type | 文本类型 | `secondary`, `warning`, `danger` | - | |
|
||||
|
||||
### Typography.Title
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| copyable | 是否可拷贝,为对象时可设置复制文本以回调函数 | boolean \| { text: string, onCopy: Function } | false | 3.14.0 |
|
||||
| delete | 添加删除线样式 | boolean | false | 3.14.0 |
|
||||
| disabled | 禁用文本 | boolean | false | 3.14.0 |
|
||||
| editable | 是否可编辑,为对象时可对编辑进行控制 | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | 3.14.0 |
|
||||
| ellipsis | 自动溢出省略,为对象时可设置省略行数与是否可展开等 | boolean \| { rows: number, expandable: boolean, onExpand: Function } | false | 3.14.0 |
|
||||
| level | 重要程度,相当于 `h1`、`h2`、`h3`、`h4` | number: `1`, `2`, `3`, `4` | 1 | 3.14.0 |
|
||||
| mark | 添加标记样式 | boolean | false | 3.14.0 |
|
||||
| underline | 添加下划线样式 | boolean | false | 3.14.0 |
|
||||
| onChange | 当用户提交编辑内容时触发 | Function(string) | - | 3.14.0 |
|
||||
| type | 文本类型 | `secondary`, `warning`, `danger` | - | 3.14.0 |
|
||||
| copyable | 是否可拷贝,为对象时可设置复制文本以回调函数 | boolean \| { text: string, onCopy: Function } | false | |
|
||||
| delete | 添加删除线样式 | boolean | false | |
|
||||
| disabled | 禁用文本 | boolean | false | |
|
||||
| editable | 是否可编辑,为对象时可对编辑进行控制 | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | |
|
||||
| ellipsis | 自动溢出省略,为对象时可设置省略行数与是否可展开等 | boolean \| { rows: number, expandable: boolean, onExpand: Function } | false | |
|
||||
| level | 重要程度,相当于 `h1`、`h2`、`h3`、`h4` | number: `1`, `2`, `3`, `4` | 1 | |
|
||||
| mark | 添加标记样式 | boolean | false | |
|
||||
| underline | 添加下划线样式 | boolean | false | |
|
||||
| onChange | 当用户提交编辑内容时触发 | Function(string) | - | |
|
||||
| type | 文本类型 | `secondary`, `warning`, `danger` | - | |
|
||||
|
||||
### Typography.Paragraph
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| copyable | 是否可拷贝,为对象时可设置复制文本以回调函数 | boolean \| { text: string, onCopy: Function } | false | 3.14.1 |
|
||||
| delete | 添加删除线样式 | boolean | false | 3.14.0 |
|
||||
| disabled | 禁用文本 | boolean | false | 3.14.0 |
|
||||
| editable | 是否可编辑,为对象时可对编辑进行控制 | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | 3.14.0 |
|
||||
| ellipsis | 自动溢出省略,为对象时可设置省略行数与是否可展开等 | boolean \| { rows: number, expandable: boolean, onExpand: Function } | false | 3.14.0 |
|
||||
| mark | 添加标记样式 | boolean | false | 3.14.0 |
|
||||
| underline | 添加下划线样式 | boolean | false | 3.14.0 |
|
||||
| onChange | 当用户提交编辑内容时触发 | Function(string) | - | 3.14.0 |
|
||||
| strong | 是否加粗 | boolean | false | 3.14.0 |
|
||||
| type | 文本类型 | `secondary`, `warning`, `danger` | - | 3.14.0 |
|
||||
| copyable | 是否可拷贝,为对象时可设置复制文本以回调函数 | boolean \| { text: string, onCopy: Function } | false | |
|
||||
| delete | 添加删除线样式 | boolean | false | |
|
||||
| disabled | 禁用文本 | boolean | false | |
|
||||
| editable | 是否可编辑,为对象时可对编辑进行控制 | boolean \| { editing: boolean, onStart: Function, onChange: Function(string) } | false | |
|
||||
| ellipsis | 自动溢出省略,为对象时可设置省略行数与是否可展开等 | boolean \| { rows: number, expandable: boolean, onExpand: Function } | false | |
|
||||
| mark | 添加标记样式 | boolean | false | |
|
||||
| underline | 添加下划线样式 | boolean | false | |
|
||||
| onChange | 当用户提交编辑内容时触发 | Function(string) | - | |
|
||||
| strong | 是否加粗 | boolean | false | |
|
||||
| type | 文本类型 | `secondary`, `warning`, `danger` | - | |
|
||||
|
Loading…
Reference in New Issue
Block a user