docs(element): docs (#528)

This commit is contained in:
Yugang Cao 2021-07-16 23:16:19 +08:00 committed by GitHub
parent 229a4e37e2
commit f3d381bab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 12 deletions

View File

@ -22,15 +22,15 @@ You can use CSS variables from it. If you need to use those variables in JS, ple
```
```js
import { ref } from 'vue'
import { defineComponent, ref } from 'vue'
import { darkTheme } from 'naive-ui'
export default {
export default defineComponent({
setup () {
return {
darkTheme,
theme: ref(null)
}
}
}
})
```

View File

@ -16,6 +16,6 @@ basic
## Slots
| Name | Parameters | Description |
| ------- | ---------- | ----------- |
| default | `()` | |
| Name | Parameters | Description |
| ------- | ---------- | --------------------------- |
| default | `()` | The content of the element. |

View File

@ -22,15 +22,15 @@
```
```js
import { ref } from 'vue'
import { defineComponent, ref } from 'vue'
import { darkTheme } from 'naive-ui'
export default {
export default defineComponent({
setup () {
return {
darkTheme,
theme: ref(null)
}
}
}
})
```

View File

@ -16,6 +16,6 @@ basic
## Slots
| 名称 | 参数 | 说明 |
| ------- | ---- | ---- |
| default | `()` | |
| 名称 | 参数 | 说明 |
| ------- | ---- | -------- |
| default | `()` | 元素内容 |