From 6f8aa12fbb378041a65318946bfdb8d40c043892 Mon Sep 17 00:00:00 2001 From: caoyugang_1 <34439652+Talljack@users.noreply.github.com> Date: Wed, 14 Jul 2021 23:48:57 +0800 Subject: [PATCH] docs(dynamic-tags): add docs (#512) * docs: add dynamic-input docs * docs: add dynamic-tag docs --- .../demos/enUS/index.demo-entry.md | 20 +++++++++---------- .../demos/zhCN/index.demo-entry.md | 20 +++++++++---------- src/tag/demos/enUS/index.demo-entry.md | 6 +++--- src/tag/demos/zhCN/index.demo-entry.md | 6 +++--- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/dynamic-tags/demos/enUS/index.demo-entry.md b/src/dynamic-tags/demos/enUS/index.demo-entry.md index 2e4706736..d24a3bb70 100644 --- a/src/dynamic-tags/demos/enUS/index.demo-entry.md +++ b/src/dynamic-tags/demos/enUS/index.demo-entry.md @@ -13,13 +13,13 @@ form | Name | Type | Default | Description | | --- | --- | --- | --- | -| closable | `boolean` | `true` | | -| default-value | `string[]` | `[]` | | -| disabled | `boolean` | `false` | | -| input-style | `string \| Object` | `undefined` | | -| round | `boolean` | `false` | | -| size | `'small' \| 'medium' \| 'large'` | `'medium'` | | -| tag-style | `string \| Object` | `undefined` | | -| type | `'default' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'default'` | | -| value | `string[]` | `undefined` | | -| on-update:value | `(value: boolean) => void` | `undefined` | | +| closable | `boolean` | `true` | Whether the tag is closable. | +| default-value | `string[]` | `[]` | Default value in uncontrolled mode. | +| disabled | `boolean` | `false` | Whether the tag is disabled. | +| input-style | `string \| Object` | `undefined` | Customize the style of the input. | +| round | `boolean` | `false` | Whether the tag has round corner. | +| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Size of the tag. | +| tag-style | `string \| Object` | `undefined` | Customize the style of the tag. | +| type | `'default' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'default'` | Type of the tag. | +| value | `string[]` | `undefined` | Value in controlled mode. | +| on-update:value | `(value: boolean) => void` | `undefined` | Callback when the component's value changes. | diff --git a/src/dynamic-tags/demos/zhCN/index.demo-entry.md b/src/dynamic-tags/demos/zhCN/index.demo-entry.md index e0840178a..c4e038bd4 100644 --- a/src/dynamic-tags/demos/zhCN/index.demo-entry.md +++ b/src/dynamic-tags/demos/zhCN/index.demo-entry.md @@ -13,13 +13,13 @@ form | 名称 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | -| closable | `boolean` | `true` | | -| default-value | `string[]` | `[]` | | -| disabled | `boolean` | `false` | | -| input-style | `string \| Object` | `undefined` | | -| round | `boolean` | `false` | | -| size | `'small' \| 'medium' \| 'large'` | `'medium'` | | -| tag-style | `string \| Object` | `undefined` | | -| type | `'default' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'default'` | | -| value | `string[]` | `undefined` | | -| on-update:value | `(value: boolean) => void` | `undefined` | | +| closable | `boolean` | `true` | 是否可关闭 | +| default-value | `string[]` | `[]` | 非受控模式下的默认值 | +| disabled | `boolean` | `false` | 是否禁用 | +| input-style | `string \| Object` | `undefined` | 自定义输入框的样式 | +| round | `boolean` | `false` | 是否圆角 | +| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 尺寸大小 | +| tag-style | `string \| Object` | `undefined` | 自定义标签的样式 | +| type | `'default' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'default'` | 标签类型 | +| value | `string[]` | `undefined` | 受控模式下的值 | +| on-update:value | `(value: boolean) => void` | `undefined` | 组件值发生变化时的回调 | diff --git a/src/tag/demos/enUS/index.demo-entry.md b/src/tag/demos/enUS/index.demo-entry.md index d58a72c6b..3e2b4fd38 100644 --- a/src/tag/demos/enUS/index.demo-entry.md +++ b/src/tag/demos/enUS/index.demo-entry.md @@ -32,6 +32,6 @@ shape ## Slots -| Name | Parameters | Description | -| ------- | ---------- | ----------- | -| default | `()` | | +| Name | Parameters | Description | +| ------- | ---------- | -------------- | +| default | `()` | Tag's content. | diff --git a/src/tag/demos/zhCN/index.demo-entry.md b/src/tag/demos/zhCN/index.demo-entry.md index ca156d3a4..ead2bf5eb 100644 --- a/src/tag/demos/zhCN/index.demo-entry.md +++ b/src/tag/demos/zhCN/index.demo-entry.md @@ -33,6 +33,6 @@ rtl-debug ## Slots -| 名称 | 参数 | 说明 | -| ------- | ---- | ---- | -| default | `()` | | +| 名称 | 参数 | 说明 | +| ------- | ---- | -------- | +| default | `()` | 标签内容 |