fix: to prop of n-a don't support object

This commit is contained in:
07akioni 2020-06-05 23:03:45 +08:00
parent 30368e12bc
commit 513be202e7
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ text
### A Props
|Name|Type|Default|Description|
|-|-|-|-|
|to|`string`|`null`|If the prop is set, it will be rendered as a Vue Router `router-link`s component. Make sure you don't want to use `href` attr.|
|to|`string \| Object`|`null`|If the prop is set, it will be rendered as a Vue Router `router-link`s component. Make sure you don't want to use `href` attr.|
### Ul, Ol Props
|Name|Type|Default|Description|

View File

@ -45,7 +45,7 @@ text
### A Props
|名称|类型|默认值|说明|
|-|-|-|-|
|to|`string`|`null`|如果设定了 to propa 会被渲染为一个 Vue Router 的 `router-link` 标签。确保你想用的不是 href 属性|
|to|`string \| Object`|`null`|如果设定了 to propa 会被渲染为一个 Vue Router 的 `router-link` 标签。确保你想用的不是 href 属性|
### Ul, Ol Props
|名称|类型|默认值|说明|

View File

@ -27,7 +27,7 @@ export default {
mixins: [ withapp, themeable ],
props: {
to: {
type: String,
type: [String, Object],
default: null
}
}