ソースを参照

docs(cell): edit api type

richard1015 3 年 前
コミット
7751243ac5

+ 39 - 39
src/packages/__VUE/cell/doc.en-US.md

@@ -209,24 +209,24 @@ You can center the left and right contents of the cell vertically through the 'c
 
 
 | Attribute | Description | Type   | Default |
 | Attribute | Description | Type   | Default |
 |-----------|-------------|--------|---------|
 |-----------|-------------|--------|---------|
-| title     | Title       | String | -       |
-| desc      | Description | String | -       |
+| title     | Title       | string | -       |
+| desc      | Description | string | -       |
 
 
 ### Cell Props
 ### Cell Props
 
 
 | Attribute       | Description                                                                                              | Type             | Default |
 | Attribute       | Description                                                                                              | Type             | Default |
 |-----------------|----------------------------------------------------------------------------------------------------------|------------------|---------|
 |-----------------|----------------------------------------------------------------------------------------------------------|------------------|---------|
-| title           | Title                                                                                                    | String           | -       |
-| sub-title       | Subtitle                                                                                                 | String           | -       |
-| desc            | Description                                                                                              | String           | -       |
-| desc-text-align | Right description text alignment [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp) | String           | right   |
-| is-link         | Whether to show the right arrow and turn on click feedback                                               | Boolean          | false   |
-| round-radius    | Corner radius                                                                                            | Number           | 6px     |
-| url             | Link URL                                                                                                 | String           | -       |
-| to              | Target route of the link, same as to of vue-router                                                       | String | Object | -       |
-| replace         | If true, the navigation will not leave a history record                                                  | Boolean          | false   |
-| center          | Whether to center content vertically                                                                     | Boolean          | false   |
-| size            | Size, can be set to `large`                                                                              | String           | ''      |
+| title           | Title                                                                                                    | string           | -       |
+| sub-title       | Subtitle                                                                                                 | string           | -       |
+| desc            | Description                                                                                              | string           | -       |
+| desc-text-align | Right description text alignment [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp) | string           | right   |
+| is-link         | Whether to show the right arrow and turn on click feedback                                               | boolean          | false   |
+| round-radius    | Corner radius                                                                                            | number           | 6px     |
+| url             | Link URL                                                                                                 | string           | -       |
+| to              | Target route of the link, same as to of vue-router                                                       | string \| object | -       |
+| replace         | If true, the navigation will not leave a history record                                                  | boolean          | false   |
+| center          | Whether to center content vertically                                                                     | boolean          | false   |
+| size            | Size, can be set to `large`                                                                              | string           | ''      |
 
 
 ### Cell Events
 ### Cell Events
 
 
@@ -256,29 +256,29 @@ You can center the left and right contents of the cell vertically through the 'c
 
 
 The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider).
 The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider).
 
 
-| Name | Default Value | Description |
-| --------------------------------------- | -------------------------- | ---- |
-| --nut-cell-color| _var(--nut-title-color2)_   | -  |
-| --nut-cell-title-font| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-title-desc-font| _var(--nut-font-size-1)_   | -  |
-| --nut-cell-desc-font| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-desc-color| _var(--nut-disable-color)_   | -  |
-| --nut-cell-border-radius| _6px_   | -  |
-| --nut-cell-padding| _13px 16px_   | -  |
-| --nut-cell-line-height| _20px_   | -  |
-| --nut-cell-after-right| _16px_   | -  |
-| --nut-cell-after-border-bottom| _1px solid #f5f6f7_   | -  |
-| --nut-cell-default-icon-margin| _0 4px 0 0px_   | -  |
-| --nut-cell-large-title-font| _var(--nut-font-size-large)_   | -  |
-| --nut-cell-large-title-desc-font| _var(--nut-font-size-base)_   | -  |
-| --nut-cell-large-padding| _15px 16px_   | -  |
-| --nut-cell-background| _var(--nut-white)_   | -  |
-| --nut-cell-group-title-padding| _0 10px_   | -  |
-| --nut-cell-group-title-color| _#909ca4_   | -  |
-| --nut-cell-group-title-font-size| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-group-title-line-height| _20px_   | -  |
-| --nut-cell-group-desc-padding| _0 10px_   | -  |
-| --nut-cell-group-desc-color| _#909ca4_   | -  |
-| --nut-cell-group-desc-font-size| _var(--nut-font-size-1)_   | -  |
-| --nut-cell-group-desc-line-height| _16px_   | -  |
-| --nut-cell-group-background-color| _var(--nut-white)_   | -  |
+| Name                               | Default Value                |
+|------------------------------------|------------------------------|
+| --nut-cell-color                   | _var(--nut-title-color2)_    |
+| --nut-cell-title-font              | _var(--nut-font-size-2)_     |
+| --nut-cell-title-desc-font         | _var(--nut-font-size-1)_     |
+| --nut-cell-desc-font               | _var(--nut-font-size-2)_     |
+| --nut-cell-desc-color              | _var(--nut-disable-color)_   |
+| --nut-cell-border-radius           | _6px_                        |
+| --nut-cell-padding                 | _13px 16px_                  |
+| --nut-cell-line-height             | _20px_                       |
+| --nut-cell-after-right             | _16px_                       |
+| --nut-cell-after-border-bottom     | _1px solid #f5f6f7_          |
+| --nut-cell-default-icon-margin     | _0 4px 0 0px_                |
+| --nut-cell-large-title-font        | _var(--nut-font-size-large)_ |
+| --nut-cell-large-title-desc-font   | _var(--nut-font-size-base)_  |
+| --nut-cell-large-padding           | _15px 16px_                  |
+| --nut-cell-background              | _var(--nut-white)_           |
+| --nut-cell-group-title-padding     | _0 10px_                     |
+| --nut-cell-group-title-color       | _#909ca4_                    |
+| --nut-cell-group-title-font-size   | _var(--nut-font-size-2)_     |
+| --nut-cell-group-title-line-height | _20px_                       |
+| --nut-cell-group-desc-padding      | _0 10px_                     |
+| --nut-cell-group-desc-color        | _#909ca4_                    |
+| --nut-cell-group-desc-font-size    | _var(--nut-font-size-1)_     |
+| --nut-cell-group-desc-line-height  | _16px_                       |
+| --nut-cell-group-background-color  | _var(--nut-white)_           |

+ 39 - 40
src/packages/__VUE/cell/doc.md

@@ -211,25 +211,24 @@ export default {
 
 
 | 字段  | 说明     | 类型   | 默认值 |
 | 字段  | 说明     | 类型   | 默认值 |
 |-------|----------|--------|--------|
 |-------|----------|--------|--------|
-| title | 分组标题 | String | -      |
-| desc  | 分组描述 | String | -      |
+| title | 分组标题 | string | -      |
+| desc  | 分组描述 | string | -      |
 
 
 ### Cell Props
 ### Cell Props
 
 
 | 字段            | 说明                                                                                           | 类型             | 默认值 |
 | 字段            | 说明                                                                                           | 类型             | 默认值 |
 |-----------------|------------------------------------------------------------------------------------------------|------------------|--------|
 |-----------------|------------------------------------------------------------------------------------------------|------------------|--------|
-| title           | 标题名称                                                                                       | String           | -      |
-| sub-title       | 左侧副标题                                                                                     | String           | -      |
-| desc            | 右侧描述                                                                                       | String           | -      |
-| desc-text-align | 右侧描述文本对齐方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp)   | String           | right  |
-| is-link         | 是否展示右侧箭头并开启点击反馈                                                                 | Boolean          | false  |
-| round-radius    | 圆角半径                                                                                       | Number           | 6px    |
-| url             | 点击后跳转的链接地址                                                                           | String           | -      |
-| to              | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) 属性 | String | Object | -      |
-| replace         | 是否在跳转时替换当前页面历史                                                                   | Boolean          | false  |
-| center          | 是否使内容垂直居中                                                                             | Boolean          | false  |
-| size            | 单元格大小,可选值为 `large`                                                                   | String           | -      |
-
+| title           | 标题名称                                                                                       | string           | -      |
+| sub-title       | 左侧副标题                                                                                     | string           | -      |
+| desc            | 右侧描述                                                                                       | string           | -      |
+| desc-text-align | 右侧描述文本对齐方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp)   | string           | right  |
+| is-link         | 是否展示右侧箭头并开启点击反馈                                                                 | boolean          | false  |
+| round-radius    | 圆角半径                                                                                       | number           | 6px    |
+| url             | 点击后跳转的链接地址                                                                           | string           | -      |
+| to              | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) 属性 | string \| object | -      |
+| replace         | 是否在跳转时替换当前页面历史                                                                   | boolean          | false  |
+| center          | 是否使内容垂直居中                                                                             | boolean          | false  |
+| size            | 单元格大小,可选值为 `large`                                                                   | string           | -      |
 
 
 ### Cell Events
 ### Cell Events
 
 
@@ -260,29 +259,29 @@ export default {
 
 
 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
 
 
-| 名称                                    | 默认值                     | 描述 |
-| --------------------------------------- | -------------------------- | ---- |
-| --nut-cell-color| _var(--nut-title-color2)_   | -  |
-| --nut-cell-title-font| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-title-desc-font| _var(--nut-font-size-1)_   | -  |
-| --nut-cell-desc-font| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-desc-color| _var(--nut-disable-color)_   | -  |
-| --nut-cell-border-radius| _6px_   | -  |
-| --nut-cell-padding| _13px 16px_   | -  |
-| --nut-cell-line-height| _20px_   | -  |
-| --nut-cell-after-right| _16px_   | -  |
-| --nut-cell-after-border-bottom| _1px solid #f5f6f7_   | -  |
-| --nut-cell-default-icon-margin| _0 4px 0 0px_   | -  |
-| --nut-cell-large-title-font| _var(--nut-font-size-large)_   | -  |
-| --nut-cell-large-title-desc-font| _var(--nut-font-size-base)_   | -  |
-| --nut-cell-large-padding| _15px 16px_   | -  |
-| --nut-cell-background| _var(--nut-white)_   | -  |
-| --nut-cell-group-title-padding| _0 10px_   | -  |
-| --nut-cell-group-title-color| _#909ca4_   | -  |
-| --nut-cell-group-title-font-size| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-group-title-line-height| _20px_   | -  |
-| --nut-cell-group-desc-padding| _0 10px_   | -  |
-| --nut-cell-group-desc-color| _#909ca4_   | -  |
-| --nut-cell-group-desc-font-size| _var(--nut-font-size-1)_   | -  |
-| --nut-cell-group-desc-line-height| _16px_   | -  |
-| --nut-cell-group-background-color| _var(--nut-white)_   | -  |
+| 名称                               | 默认值                       |
+|------------------------------------|------------------------------|
+| --nut-cell-color                   | _var(--nut-title-color2)_    |
+| --nut-cell-title-font              | _var(--nut-font-size-2)_     |
+| --nut-cell-title-desc-font         | _var(--nut-font-size-1)_     |
+| --nut-cell-desc-font               | _var(--nut-font-size-2)_     |
+| --nut-cell-desc-color              | _var(--nut-disable-color)_   |
+| --nut-cell-border-radius           | _6px_                        |
+| --nut-cell-padding                 | _13px 16px_                  |
+| --nut-cell-line-height             | _20px_                       |
+| --nut-cell-after-right             | _16px_                       |
+| --nut-cell-after-border-bottom     | _1px solid #f5f6f7_          |
+| --nut-cell-default-icon-margin     | _0 4px 0 0px_                |
+| --nut-cell-large-title-font        | _var(--nut-font-size-large)_ |
+| --nut-cell-large-title-desc-font   | _var(--nut-font-size-base)_  |
+| --nut-cell-large-padding           | _15px 16px_                  |
+| --nut-cell-background              | _var(--nut-white)_           |
+| --nut-cell-group-title-padding     | _0 10px_                     |
+| --nut-cell-group-title-color       | _#909ca4_                    |
+| --nut-cell-group-title-font-size   | _var(--nut-font-size-2)_     |
+| --nut-cell-group-title-line-height | _20px_                       |
+| --nut-cell-group-desc-padding      | _0 10px_                     |
+| --nut-cell-group-desc-color        | _#909ca4_                    |
+| --nut-cell-group-desc-font-size    | _var(--nut-font-size-1)_     |
+| --nut-cell-group-desc-line-height  | _16px_                       |
+| --nut-cell-group-background-color  | _var(--nut-white)_           |

+ 36 - 36
src/packages/__VUE/cell/doc.taro.md

@@ -198,21 +198,21 @@ app.use(CellGroup);
 
 
 | 字段  | 说明     | 类型   | 默认值 |
 | 字段  | 说明     | 类型   | 默认值 |
 |-------|----------|--------|--------|
 |-------|----------|--------|--------|
-| title | 分组标题 | String | -      |
-| desc  | 分组描述 | String | -      |
+| title | 分组标题 | string | -      |
+| desc  | 分组描述 | string | -      |
 
 
 ### Cell Props
 ### Cell Props
 
 
 | 字段            | 说明                                                                                         | 类型    | 默认值 |
 | 字段            | 说明                                                                                         | 类型    | 默认值 |
 |-----------------|----------------------------------------------------------------------------------------------|---------|--------|
 |-----------------|----------------------------------------------------------------------------------------------|---------|--------|
-| title           | 标题名称                                                                                     | String  | -      |
-| sub-title       | 左侧副标题                                                                                   | String  | -      |
-| desc            | 右侧描述                                                                                     | String  | -      |
-| desc-text-align | 右侧描述文本对齐方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp) | String  | right  |
-| is-link         | 是否展示右侧箭头并开启点击反馈                                                               | Boolean | false  |
-| round-radius    | 圆角半径                                                                                     | Number  | 6px    |
-| center          | 是否使内容垂直居中                                                                           | Boolean | false  |
-| size            | 单元格大小,可选值为 `large`                                                                 | String  | -      |
+| title           | 标题名称                                                                                     | string  | -      |
+| sub-title       | 左侧副标题                                                                                   | string  | -      |
+| desc            | 右侧描述                                                                                     | string  | -      |
+| desc-text-align | 右侧描述文本对齐方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp) | string  | right  |
+| is-link         | 是否展示右侧箭头并开启点击反馈                                                               | boolean | false  |
+| round-radius    | 圆角半径                                                                                     | number  | 6px    |
+| center          | 是否使内容垂直居中                                                                           | boolean | false  |
+| size            | 单元格大小,可选值为 `large`                                                                 | string  | -      |
 
 
 
 
 ### Cell Events
 ### Cell Events
@@ -243,29 +243,29 @@ app.use(CellGroup);
 
 
 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
 
 
-| 名称                                    | 默认值                     | 描述 |
-| --------------------------------------- | -------------------------- | ---- |
-| --nut-cell-color| _var(--nut-title-color2)_   | -  |
-| --nut-cell-title-font| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-title-desc-font| _var(--nut-font-size-1)_   | -  |
-| --nut-cell-desc-font| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-desc-color| _var(--nut-disable-color)_   | -  |
-| --nut-cell-border-radius| _6px_   | -  |
-| --nut-cell-padding| _13px 16px_   | -  |
-| --nut-cell-line-height| _20px_   | -  |
-| --nut-cell-after-right| _16px_   | -  |
-| --nut-cell-after-border-bottom| _1px solid #f5f6f7_   | -  |
-| --nut-cell-default-icon-margin| _0 4px 0 0px_   | -  |
-| --nut-cell-large-title-font| _var(--nut-font-size-large)_   | -  |
-| --nut-cell-large-title-desc-font| _var(--nut-font-size-base)_   | -  |
-| --nut-cell-large-padding| _15px 16px_   | -  |
-| --nut-cell-background| _var(--nut-white)_   | -  |
-| --nut-cell-group-title-padding| _0 10px_   | -  |
-| --nut-cell-group-title-color| _#909ca4_   | -  |
-| --nut-cell-group-title-font-size| _var(--nut-font-size-2)_   | -  |
-| --nut-cell-group-title-line-height| _20px_   | -  |
-| --nut-cell-group-desc-padding| _0 10px_   | -  |
-| --nut-cell-group-desc-color| _#909ca4_   | -  |
-| --nut-cell-group-desc-font-size| _var(--nut-font-size-1)_   | -  |
-| --nut-cell-group-desc-line-height| _16px_   | -  |
-| --nut-cell-group-background-color| _var(--nut-white)_   | -  |
+| 名称                               | 默认值                       |
+|------------------------------------|------------------------------|
+| --nut-cell-color                   | _var(--nut-title-color2)_    |
+| --nut-cell-title-font              | _var(--nut-font-size-2)_     |
+| --nut-cell-title-desc-font         | _var(--nut-font-size-1)_     |
+| --nut-cell-desc-font               | _var(--nut-font-size-2)_     |
+| --nut-cell-desc-color              | _var(--nut-disable-color)_   |
+| --nut-cell-border-radius           | _6px_                        |
+| --nut-cell-padding                 | _13px 16px_                  |
+| --nut-cell-line-height             | _20px_                       |
+| --nut-cell-after-right             | _16px_                       |
+| --nut-cell-after-border-bottom     | _1px solid #f5f6f7_          |
+| --nut-cell-default-icon-margin     | _0 4px 0 0px_                |
+| --nut-cell-large-title-font        | _var(--nut-font-size-large)_ |
+| --nut-cell-large-title-desc-font   | _var(--nut-font-size-base)_  |
+| --nut-cell-large-padding           | _15px 16px_                  |
+| --nut-cell-background              | _var(--nut-white)_           |
+| --nut-cell-group-title-padding     | _0 10px_                     |
+| --nut-cell-group-title-color       | _#909ca4_                    |
+| --nut-cell-group-title-font-size   | _var(--nut-font-size-2)_     |
+| --nut-cell-group-title-line-height | _20px_                       |
+| --nut-cell-group-desc-padding      | _0 10px_                     |
+| --nut-cell-group-desc-color        | _#909ca4_                    |
+| --nut-cell-group-desc-font-size    | _var(--nut-font-size-1)_     |
+| --nut-cell-group-desc-line-height  | _16px_                       |
+| --nut-cell-group-background-color  | _var(--nut-white)_           |