mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
fix: to prop of n-a don't support object
This commit is contained in:
parent
30368e12bc
commit
513be202e7
@ -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|
|
||||
|
@ -45,7 +45,7 @@ text
|
||||
### A Props
|
||||
|名称|类型|默认值|说明|
|
||||
|-|-|-|-|
|
||||
|to|`string`|`null`|如果设定了 to prop,a 会被渲染为一个 Vue Router 的 `router-link` 标签。确保你想用的不是 href 属性|
|
||||
|to|`string \| Object`|`null`|如果设定了 to prop,a 会被渲染为一个 Vue Router 的 `router-link` 标签。确保你想用的不是 href 属性|
|
||||
|
||||
### Ul, Ol Props
|
||||
|名称|类型|默认值|说明|
|
||||
|
@ -27,7 +27,7 @@ export default {
|
||||
mixins: [ withapp, themeable ],
|
||||
props: {
|
||||
to: {
|
||||
type: String,
|
||||
type: [String, Object],
|
||||
default: null
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user