Browse Source

docs(grid): upd docs

eiinu 3 years ago
parent
commit
306848a33f

+ 1 - 1
src/packages/__VUE/grid/doc.en-US.md

@@ -230,7 +230,7 @@ app.use(GridItem);
 | Attribute | Description | Type | Default |
 |-|-|-|-|
 | text | text | string | - |
-| url | Link URL | string | - |
+| url | Link URL | string | `''` |
 | to | Target route of the link, same as [to](https://router.vuejs.org/zh/api/#to) of vue-router | string \| object| - |
 | replace  | If true, the navigation will not leave a history record | boolean | `false` |
 

+ 1 - 1
src/packages/__VUE/grid/doc.md

@@ -228,7 +228,7 @@ app.use(GridItem);
 | 参数                  | 说明                                                                                     | 类型               | 默认值      |
 |----------------------|-----------------------------------------------------------------------------------------|--------------------|------------|
 | text                 | 文字                                                                                     | string             | -          |
-| url     | 点击后跳转的链接地址                                                                        | string            | -           |
+| url     | 点击后跳转的链接地址                                                                        | string            | `''`           |
 | to      | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) 属性 | string \| object  | -           |
 | replace | 是否在跳转时替换当前页面历史                                                                 | boolean           | `false`     |
 

+ 0 - 23
src/packages/__VUE/grid/doc.taro.md

@@ -169,29 +169,6 @@ app.use(GridItem);
 ```
 :::
 
-### 页面导航
-
-:::demo
-```html
-<template>
-  <nut-grid :column-num="2">
-    <nut-grid-item text="路由跳转" to="/">
-      <Home />
-    </nut-grid-item>
-    <nut-grid-item text="链接跳转" url="https://jd.com">
-      <Search />
-    </nut-grid-item>
-  </nut-grid>
-</template>
-<script lang="ts">
-  import { Home, Search } from '@nutui/icons-vue-taro';
-  export default {
-    components: { Home, Search },
-  };
-</script>
-```
-:::
-
 ### 自定义内容
 
 :::demo