mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
docs(element): docs (#528)
This commit is contained in:
parent
229a4e37e2
commit
f3d381bab9
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
@ -16,6 +16,6 @@ basic
|
||||
|
||||
## Slots
|
||||
|
||||
| Name | Parameters | Description |
|
||||
| ------- | ---------- | ----------- |
|
||||
| default | `()` | |
|
||||
| Name | Parameters | Description |
|
||||
| ------- | ---------- | --------------------------- |
|
||||
| default | `()` | The content of the element. |
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
@ -16,6 +16,6 @@ basic
|
||||
|
||||
## Slots
|
||||
|
||||
| 名称 | 参数 | 说明 |
|
||||
| ------- | ---- | ---- |
|
||||
| default | `()` | |
|
||||
| 名称 | 参数 | 说明 |
|
||||
| ------- | ---- | -------- |
|
||||
| default | `()` | 元素内容 |
|
||||
|
Loading…
Reference in New Issue
Block a user