Browse Source

docs: cell、temp

richard1015 5 years ago
parent
commit
2a0eb51667
2 changed files with 16 additions and 17 deletions
  1. 6 6
      src/packages/cell/doc.md
  2. 10 11
      src/packages/temp/doc.md

+ 6 - 6
src/packages/cell/doc.md

@@ -61,14 +61,14 @@ setup() {
 
 | 字段            | 说明                                                                                           | 类型    | 默认值  |
 |-----------------|------------------------------------------------------------------------------------------------|---------|---------|
-| title           | 标题名称                                                                                       | String  | ""      |
-| sub-title        | 左侧副标题                                                                                     | String  | ""      |
-| desc            | 右侧描述                                                                                       | 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   |
-| icon            | 左侧 [图标名称](#/icon) 或图片链接                                                             | String  | ""      |
-| url             | 点击后跳转的链接地址                                                                           | String  | ""      |
-| to              | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) 属性 | String  | ""      |
+| icon            | 左侧 [图标名称](#/icon) 或图片链接                                                             | String  | -       |
+| url             | 点击后跳转的链接地址                                                                           | String  | -       |
+| to              | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) 属性 | String  | -       |
 | replace         | 是否在跳转时替换当前页面历史                                                                   | Boolean | false   |
 
 ### Event

+ 10 - 11
src/packages/temp/doc.md

@@ -49,17 +49,16 @@ app.use(Temp);
 
 ### Props
 
-| 参数 | 说明 | 类型 | 默认值 |
-| --- | --- | --- | --- |
-| name | 图标名称或图片链接 | String | - |
-| color | 图标颜色 | string | - |
-| size | 图标大小,如 `20px` `2em`,默认单位为`px` | Number \| string_ | - |
-| class-prefix | 类名前缀,用于使用自定义图标 | _string_ | `nutui-icon` |
-| tag | HTML 标签 | _string_ | `i` |
+| 参数         | 说明                             | 类型   | 默认值           |
+|--------------|----------------------------------|--------|------------------|
+| name         | 图标名称或图片链接               | String | -                |
+| color        | 图标颜色                         | String | -                |
+| size         | 图标大小,如 `20px` `2em` `2rem` | String | -                |
+| class-prefix | 类名前缀,用于使用自定义图标     | String | `nutui-iconfont` |
+| tag          | HTML 标签                        | String | `i`              |
 
 ### Events
 
-| 事件名 | 说明           | 回调参数       |
-| ------ | -------------- | -------------- |
-| click  | 点击图标时触发 | _event: Event_ |
-
+| 事件名 | 说明           | 回调参数     |
+|--------|----------------|--------------|
+| click  | 点击图标时触发 | event: Event |