Skip to content

Commit a4cc00b

Browse files
committed
docs: update docs #71
1 parent c65e1de commit a4cc00b

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

components/card/index.en-US.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
| actions | The action list, shows at the bottom of the Card. | slot | - |
88
| bodyStyle | Inline style to apply to the card content | object | - |
99
| bordered | Toggles rendering of the border around the card | boolean | `true` |
10-
| cover | Card cover | ReactNode | - |
11-
| extra | Content to render in the top-right corner of the card | string\|ReactNode | - |
10+
| cover | Card cover | slot | - |
11+
| extra | Content to render in the top-right corner of the card | string\|slot | - |
1212
| hoverable | Lift up when hovering card | boolean | false |
1313
| loading | Shows a loading indicator while the contents of the card are being fetched | boolean | false |
1414
| tabList | List of TabPane's head. | Array<{key: string, tab: ReactNode}> | - |
1515
| activeTabKey | Current TabPane's key | string | - |
1616
| defaultActiveTabKey | Initial active TabPane's key, if `activeTabKey` is not set. | string | - |
17-
| title | Card title | string\|ReactNode | - |
17+
| title | Card title | string\|slot | - |
1818
| type | Card style type, can be set to `inner` or not set | string | - |
1919
| onTabChange | Callback when tab is switched | (key) => void | - |
2020

@@ -29,8 +29,8 @@
2929

3030
| Property | Description | Type | Default |
3131
| -------- | ----------- | ---- | ------- |
32-
| avatar | avatar or icon | ReactNode | - |
32+
| avatar | avatar or icon | slot | - |
3333
| className | className of container | string | - |
34-
| description | description content | ReactNode | - |
34+
| description | description content | slot | - |
3535
| style | style object of container | object | - |
36-
| title | title content | ReactNode | - |
36+
| title | title content | slot | - |

components/card/index.zh-CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
| actions | 卡片操作组,位置在卡片底部 |slot | - |
99
| bodyStyle | 内容区域自定义样式 | object | - |
1010
| bordered | 是否有边框 | boolean | true |
11-
| cover | 卡片封面 | ReactNode | - |
11+
| cover | 卡片封面 | slot | - |
1212
| extra | 卡片右上角的操作区域 | string\|slot | - |
1313
| hoverable | 鼠标移过时可浮起 | boolean | false |
1414
| loading | 当卡片内容还在加载中时,可以用 loading 展示一个占位 | boolean | false |
1515
| tabList | 页签标题列表 | Array<{key: string, tab: ReactNode}> | - |
1616
| activeTabKey | 当前激活页签的 key | string | - |
1717
| defaultActiveTabKey | 初始化选中页签的 key,如果没有设置 activeTabKey | string | 第一个页签 |
18-
| title | 卡片标题 | string\|ReactNode | - |
18+
| title | 卡片标题 | string\|slot | - |
1919
| type | 卡片类型,可设置为 `inner` 或 不设置 | string | - |
2020
| onTabChange | 页签切换的回调 | (key) => void | - |
2121

@@ -30,8 +30,8 @@
3030

3131
| Property | Description | Type | Default |
3232
| -------- | ----------- | ---- | ------- |
33-
| avatar | 头像/图标 | ReactNode | - |
33+
| avatar | 头像/图标 | slot | - |
3434
| className | 容器类名 | string | - |
35-
| description | 描述内容 | ReactNode | - |
35+
| description | 描述内容 | slot | - |
3636
| style | 定义容器类名的样式 | object | - |
37-
| title | 标题内容 | ReactNode | - |
37+
| title | 标题内容 | slot | - |

components/input/Search.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
default: 'ant-input',
2121
type: String,
2222
},
23-
enterButton: PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.object]),
23+
enterButton: PropTypes.any,
2424
},
2525
model: {
2626
prop: 'value',

components/input/index.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| id | 输入框的 id | string | |
1313
| prefix | 带有前缀图标的 input | string\|slot | |
1414
| size | 控件大小。注:标准表单内的输入框大小限制为 `large`。可选 `large` `default` `small` | string | `default` |
15-
| suffix | 带有后缀图标的 input | string\|ReactNode | |
15+
| suffix | 带有后缀图标的 input | string\|slot | |
1616
| type | 声明 input 类型,同原生 input 标签的 type 属性,见:[MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#属性)(请直接使用 `Input.TextArea` 代替 `type="textarea"`)。 | string | `text` |
1717
| value(v-model) | 输入框内容 | string | |
1818

@@ -43,7 +43,7 @@
4343

4444
| 参数 | 说明 | 类型 | 默认值 |
4545
| --- | --- | --- | --- |
46-
| enterButton | 是否有确认按钮,可设为按钮文字 | boolean\|ReactNode | false |
46+
| enterButton | 是否有确认按钮,可设为按钮文字 | boolean\|slot | false |
4747

4848
### Input.Search 事件
4949
| 事件名称 | 说明 | 回调参数 |

components/layout/index.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The sidebar.
3939
| defaultCollapsed | to set the initial status | boolean | false |
4040
| reverseArrow | reverse direction of arrow, for a sider that expands from the right | boolean | false |
4141
| style | to customize the styles | object\|string | - |
42-
| trigger | specify the customized trigger, set to null to hide the trigger | string\|ReactNode | - |
42+
| trigger | specify the customized trigger, set to null to hide the trigger | string\|slot | - |
4343
| width | width of the sidebar | number\|string | 200 |
4444

4545
### Events

0 commit comments

Comments
 (0)