From f3d381bab93330919e855030b6f9a693e0f1346a Mon Sep 17 00:00:00 2001 From: Yugang Cao <34439652+Talljack@users.noreply.github.com> Date: Fri, 16 Jul 2021 23:16:19 +0800 Subject: [PATCH] docs(element): docs (#528) --- src/element/demos/enUS/basic.demo.md | 6 +++--- src/element/demos/enUS/index.demo-entry.md | 6 +++--- src/element/demos/zhCN/basic.demo.md | 6 +++--- src/element/demos/zhCN/index.demo-entry.md | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/element/demos/enUS/basic.demo.md b/src/element/demos/enUS/basic.demo.md index 942c19acf..541a91704 100644 --- a/src/element/demos/enUS/basic.demo.md +++ b/src/element/demos/enUS/basic.demo.md @@ -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) } } -} +}) ``` diff --git a/src/element/demos/enUS/index.demo-entry.md b/src/element/demos/enUS/index.demo-entry.md index 4684f81f6..8a6444efd 100644 --- a/src/element/demos/enUS/index.demo-entry.md +++ b/src/element/demos/enUS/index.demo-entry.md @@ -16,6 +16,6 @@ basic ## Slots -| Name | Parameters | Description | -| ------- | ---------- | ----------- | -| default | `()` | | +| Name | Parameters | Description | +| ------- | ---------- | --------------------------- | +| default | `()` | The content of the element. | diff --git a/src/element/demos/zhCN/basic.demo.md b/src/element/demos/zhCN/basic.demo.md index 3ef1dfe06..cfca2a1c0 100644 --- a/src/element/demos/zhCN/basic.demo.md +++ b/src/element/demos/zhCN/basic.demo.md @@ -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) } } -} +}) ``` diff --git a/src/element/demos/zhCN/index.demo-entry.md b/src/element/demos/zhCN/index.demo-entry.md index 9a715b094..01bba032d 100644 --- a/src/element/demos/zhCN/index.demo-entry.md +++ b/src/element/demos/zhCN/index.demo-entry.md @@ -16,6 +16,6 @@ basic ## Slots -| 名称 | 参数 | 说明 | -| ------- | ---- | ---- | -| default | `()` | | +| 名称 | 参数 | 说明 | +| ------- | ---- | -------- | +| default | `()` | 元素内容 |