Browse Source

docs(tag): event edit

richard1015 3 years ago
parent
commit
5401632159
3 changed files with 81 additions and 81 deletions
  1. 29 29
      src/packages/__VUE/tag/doc.en-US.md
  2. 26 26
      src/packages/__VUE/tag/doc.md
  3. 26 26
      src/packages/__VUE/tag/doc.taro.md

+ 29 - 29
src/packages/__VUE/tag/doc.en-US.md

@@ -126,29 +126,29 @@ export default {
 ## API
 ### Props  
 
-| Attribute | Description | Type | Default |
-|------------|--------------------------------------------------|---------|-----------|
+| Attribute  | Description                                                   | Type    | Default   |
+|------------|---------------------------------------------------------------|---------|-----------|
 | type       | Label type,can be set `primary` `success` `danger` `warning` | string  | `default` |
-| color      | Label color                                         | string  | `-`         |
-| text-color | Text color, which takes precedence over the `color` attribute| string  | `white`   |
-| plain      | Whether it is plain | boolean | `false`   |
-| round      | Whether it is round                                   | boolean | `false`   |
-| mark       | Whether it is mark                                   | boolean | `false`   |
-| closeable  | Whether it is a closeable tag       | boolean | `false`   |
+| color      | Label color                                                   | string  | `-`       |
+| text-color | Text color, which takes precedence over the `color` attribute | string  | `white`   |
+| plain      | Whether it is plain                                           | boolean | `false`   |
+| round      | Whether it is round                                           | boolean | `false`   |
+| mark       | Whether it is mark                                            | boolean | `false`   |
+| closeable  | Whether it is a closeable tag                                 | boolean | `false`   |
 
 
 ### Slots
 
-| Name   | Description           |
-|---------|--------------|
+| Name    | Description           |
+|---------|-----------------------|
 | default | Label display content |
 
 ### Events
 
-| Event             | Description                     | Arguments        |
-|----------|----------|----------|
-| click    | click event | event    |
-| close    | close event | event    |
+| Event | Description | Arguments |
+|-------|-------------|-----------|
+| click | click event | `event`   |
+| close | close event | `event`   |
 
 ## Theming
 
@@ -156,18 +156,18 @@ export default {
 
 The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/component/configprovider).
 
-| Name | Default Value |
-| --------------------------------------- | -------------------------- |
-| --nut-tag-font-size| _12px_ |
-| --nut-tag-default-border-radius| _4px_ |
-| --nut-tag-round-border-radius| _8px_ |
-| --nut-tag-default-background-color| _#000000_ |
-| --nut-tag-primary-background-color| _#3460fa_ |
-| --nut-tag-success-background-color| _#4fc08d_ |
-| --nut-tag-danger-background-color| _linear-gradient(135deg,rgba(242, 20, 12, 1) 0%,rgba(232, 34, 14, 1) 70%,rgba(242, 77, 12, 1) 100%)_ |
-| --nut-tag-danger-background-color-plain| _#df3526_ |
-| --nut-tag-warning-background-color| _#f3812e_ |
-| --nut-tag-default-color| _#ffffff_ |
-| --nut-tag-border-width| _1px_ |
-| --nut-tag-plain-background-color| _#fff_ |
-| --nut-tag-height| _auto_ |
+| Name                                    | Default Value                                                                                        |
+|-----------------------------------------|------------------------------------------------------------------------------------------------------|
+| --nut-tag-font-size                     | _12px_                                                                                               |
+| --nut-tag-default-border-radius         | _4px_                                                                                                |
+| --nut-tag-round-border-radius           | _8px_                                                                                                |
+| --nut-tag-default-background-color      | _#000000_                                                                                            |
+| --nut-tag-primary-background-color      | _#3460fa_                                                                                            |
+| --nut-tag-success-background-color      | _#4fc08d_                                                                                            |
+| --nut-tag-danger-background-color       | _linear-gradient(135deg,rgba(242, 20, 12, 1) 0%,rgba(232, 34, 14, 1) 70%,rgba(242, 77, 12, 1) 100%)_ |
+| --nut-tag-danger-background-color-plain | _#df3526_                                                                                            |
+| --nut-tag-warning-background-color      | _#f3812e_                                                                                            |
+| --nut-tag-default-color                 | _#ffffff_                                                                                            |
+| --nut-tag-border-width                  | _1px_                                                                                                |
+| --nut-tag-plain-background-color        | _#fff_                                                                                               |
+| --nut-tag-height                        | _auto_                                                                                               |

+ 26 - 26
src/packages/__VUE/tag/doc.md

@@ -127,15 +127,15 @@ export default {
 ## API
 ### Props 
 
-| 参数       | 说明                                             | 类型    | 默认值    |
-|------------|--------------------------------------------------|---------|-----------|
+| 参数       | 说明                                                         | 类型    | 默认值    |
+|------------|--------------------------------------------------------------|---------|-----------|
 | type       | 标签类型,可选值为 `primary`、`success`、`danger`、`warning` | string  | `default` |
-| color      | 标签颜色                                         | string  | `-`         |
-| text-color | 文本颜色,优先级高于 `color` 属性                    | string  | `white`   |
-| plain      | 是否为空心样式                                   | boolean | `false`   |
-| round      | 是否为圆角样式                                   | boolean | `false`   |
-| mark       | 是否为标记样式                                   | boolean | `false`   |
-| closeable  | 是否为可关闭标签                                 | boolean | `false`   |
+| color      | 标签颜色                                                     | string  | `-`       |
+| text-color | 文本颜色,优先级高于 `color` 属性                            | string  | `white`   |
+| plain      | 是否为空心样式                                               | boolean | `false`   |
+| round      | 是否为圆角样式                                               | boolean | `false`   |
+| mark       | 是否为标记样式                                               | boolean | `false`   |
+| closeable  | 是否为可关闭标签                                             | boolean | `false`   |
 
 
 ### Slots
@@ -147,9 +147,9 @@ export default {
 ### Events
 
 | 事件名 | 说明     | 回调参数 |
-|----------|----------|----------|
-| click    | 点击事件 | event    |
-| close    | 关闭事件 | event    |
+|--------|----------|----------|
+| click  | 点击事件 | `event`  |
+| close  | 关闭事件 | `event`  |
 
 
 ## 主题定制
@@ -158,18 +158,18 @@ export default {
 
 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
 
-| 名称                                    | 默认值                     |
-| --------------------------------------- | -------------------------- |
-| --nut-tag-font-size| _12px_ |
-| --nut-tag-default-border-radius| _4px_ |
-| --nut-tag-round-border-radius| _8px_ |
-| --nut-tag-default-background-color| _#000000_ |
-| --nut-tag-primary-background-color| _#3460fa_ |
-| --nut-tag-success-background-color| _#4fc08d_ |
-| --nut-tag-danger-background-color| _linear-gradient(135deg,rgba(242, 20, 12, 1) 0%,rgba(232, 34, 14, 1) 70%,rgba(242, 77, 12, 1) 100%)_ |
-| --nut-tag-danger-background-color-plain| _#df3526_ |
-| --nut-tag-warning-background-color| _#f3812e_ |
-| --nut-tag-default-color| _#ffffff_ |
-| --nut-tag-border-width| _1px_ |
-| --nut-tag-plain-background-color| _#fff_ |
-| --nut-tag-height| _auto_ |
+| 名称                                    | 默认值                                                                                               |
+|-----------------------------------------|------------------------------------------------------------------------------------------------------|
+| --nut-tag-font-size                     | _12px_                                                                                               |
+| --nut-tag-default-border-radius         | _4px_                                                                                                |
+| --nut-tag-round-border-radius           | _8px_                                                                                                |
+| --nut-tag-default-background-color      | _#000000_                                                                                            |
+| --nut-tag-primary-background-color      | _#3460fa_                                                                                            |
+| --nut-tag-success-background-color      | _#4fc08d_                                                                                            |
+| --nut-tag-danger-background-color       | _linear-gradient(135deg,rgba(242, 20, 12, 1) 0%,rgba(232, 34, 14, 1) 70%,rgba(242, 77, 12, 1) 100%)_ |
+| --nut-tag-danger-background-color-plain | _#df3526_                                                                                            |
+| --nut-tag-warning-background-color      | _#f3812e_                                                                                            |
+| --nut-tag-default-color                 | _#ffffff_                                                                                            |
+| --nut-tag-border-width                  | _1px_                                                                                                |
+| --nut-tag-plain-background-color        | _#fff_                                                                                               |
+| --nut-tag-height                        | _auto_                                                                                               |

+ 26 - 26
src/packages/__VUE/tag/doc.taro.md

@@ -127,15 +127,15 @@ export default {
 ## API
 ### Props 
 
-| 参数       | 说明                                             | 类型    | 默认值    |
-|------------|--------------------------------------------------|---------|-----------|
+| 参数       | 说明                                                         | 类型    | 默认值    |
+|------------|--------------------------------------------------------------|---------|-----------|
 | type       | 标签类型,可选值为 `primary`、`success`、`danger`、`warning` | string  | `default` |
-| color      | 标签颜色                                         | string  | `- `        |
-| text-color | 文本颜色,优先级高于 `color` 属性                    | string  | `white`   |
-| plain      | 是否为空心样式                                   | boolean | `false`   |
-| round      | 是否为圆角样式                                   | boolean | `false`   |
-| mark       | 是否为标记样式                                   | boolean | `false`   |
-| closeable  | 是否为可关闭标签                                 | boolean | `false`   |
+| color      | 标签颜色                                                     | string  | `- `      |
+| text-color | 文本颜色,优先级高于 `color` 属性                            | string  | `white`   |
+| plain      | 是否为空心样式                                               | boolean | `false`   |
+| round      | 是否为圆角样式                                               | boolean | `false`   |
+| mark       | 是否为标记样式                                               | boolean | `false`   |
+| closeable  | 是否为可关闭标签                                             | boolean | `false`   |
 
 
 ### Slots
@@ -147,9 +147,9 @@ export default {
 ### Events
 
 | 事件名 | 说明     | 回调参数 |
-|----------|----------|----------|
-| click    | 点击事件 | event    |
-| close    | 关闭事件 | event    |
+|--------|----------|----------|
+| click  | 点击事件 | `event`  |
+| close  | 关闭事件 | `event`  |
 
 ## 主题定制
 
@@ -157,18 +157,18 @@ export default {
 
 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
 
-| 名称                                    | 默认值                     |
-| --------------------------------------- | -------------------------- |
-| --nut-tag-font-size| _12px_ |
-| --nut-tag-default-border-radius| _4px_ |
-| --nut-tag-round-border-radius| _8px_ |
-| --nut-tag-default-background-color| _#000000_ |
-| --nut-tag-primary-background-color| _#3460fa_ |
-| --nut-tag-success-background-color| _#4fc08d_ |
-| --nut-tag-danger-background-color| _linear-gradient(135deg,rgba(242, 20, 12, 1) 0%,rgba(232, 34, 14, 1) 70%,rgba(242, 77, 12, 1) 100%)_ |
-| --nut-tag-danger-background-color-plain| _#df3526_ |
-| --nut-tag-warning-background-color| _#f3812e_ |
-| --nut-tag-default-color| _#ffffff_ |
-| --nut-tag-border-width| _1px_ |
-| --nut-tag-plain-background-color| _#fff_ |
-| --nut-tag-height| _auto_ |
+| 名称                                    | 默认值                                                                                               |
+|-----------------------------------------|------------------------------------------------------------------------------------------------------|
+| --nut-tag-font-size                     | _12px_                                                                                               |
+| --nut-tag-default-border-radius         | _4px_                                                                                                |
+| --nut-tag-round-border-radius           | _8px_                                                                                                |
+| --nut-tag-default-background-color      | _#000000_                                                                                            |
+| --nut-tag-primary-background-color      | _#3460fa_                                                                                            |
+| --nut-tag-success-background-color      | _#4fc08d_                                                                                            |
+| --nut-tag-danger-background-color       | _linear-gradient(135deg,rgba(242, 20, 12, 1) 0%,rgba(232, 34, 14, 1) 70%,rgba(242, 77, 12, 1) 100%)_ |
+| --nut-tag-danger-background-color-plain | _#df3526_                                                                                            |
+| --nut-tag-warning-background-color      | _#f3812e_                                                                                            |
+| --nut-tag-default-color                 | _#ffffff_                                                                                            |
+| --nut-tag-border-width                  | _1px_                                                                                                |
+| --nut-tag-plain-background-color        | _#fff_                                                                                               |
+| --nut-tag-height                        | _auto_                                                                                               |