From 3e2ed483341ba58ff864e1bcb184e84fde67c20a Mon Sep 17 00:00:00 2001 From: kagol Date: Wed, 6 Oct 2021 19:26:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Danchor=E7=BB=84?= =?UTF-8?q?=E4=BB=B6demo=E6=A0=BC=E5=BC=8F=E5=AF=BC=E8=87=B4=E7=9A=84warni?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AlgoliaSearchBox.vue | 2 +- .../devui-theme/components/BuySellAds.vue | 2 +- .../devui-theme/components/CarbonAds.vue | 2 +- .../devui-theme/components/NavBar.vue | 2 +- .../components/NavDropdownLink.vue | 2 +- .../components/NavDropdownLinkItem.vue | 2 +- .../devui-theme/components/NavLink.vue | 2 +- .../devui-theme/components/SideBar.vue | 1 - docs/components/anchor/index.md | 25 ++++++++++++------- 9 files changed, 23 insertions(+), 17 deletions(-) diff --git a/docs/.vitepress/devui-theme/components/AlgoliaSearchBox.vue b/docs/.vitepress/devui-theme/components/AlgoliaSearchBox.vue index fee1c1c2..89023a2e 100644 --- a/docs/.vitepress/devui-theme/components/AlgoliaSearchBox.vue +++ b/docs/.vitepress/devui-theme/components/AlgoliaSearchBox.vue @@ -2,7 +2,7 @@ import '@docsearch/css' import docsearch from '@docsearch/js' import { useRoute, useRouter, useData } from 'vitepress' -import { defineProps, getCurrentInstance, onMounted, watch } from 'vue' +import { getCurrentInstance, onMounted, watch } from 'vue' import type { DefaultTheme } from '../config' import type { DocSearchHit } from '@docsearch/react/dist/esm/types' diff --git a/docs/.vitepress/devui-theme/components/BuySellAds.vue b/docs/.vitepress/devui-theme/components/BuySellAds.vue index 9a73a60c..60e1a692 100644 --- a/docs/.vitepress/devui-theme/components/BuySellAds.vue +++ b/docs/.vitepress/devui-theme/components/BuySellAds.vue @@ -1,5 +1,5 @@ -# 如何使用 +### 基本用法 在页面中使用: @@ -41,15 +48,15 @@ ``` -# dAnchor +### dAnchor 定义一个锚点。 ### dAnchor 参数 | 参数 | 类型 | 默认 | 说明 | 跳转 Demo |全局配置项| | :----------------: | :----------: | :------: | :--: | :---------------------------------------------------: | ---------------------------- | -| dAnchor | `string` | -- | 必选,设置一个锚点的名字 | [基本用法](demo#basic-usage) | -| anchorActive | `string` | -- | 可选,锚点处于激活状态的时候,模块生效对应的 css 类名 | [基本用法](demo#basic-usage) | +| dAnchor | `string` | -- | 必选,设置一个锚点的名字 | [基本用法](#基本用法) | +| anchorActive | `string` | -- | 可选,锚点处于激活状态的时候,模块生效对应的 css 类名 | [基本用法](#基本用法) | ### dAnchor 锚点激活事件 @@ -62,7 +69,7 @@ | anchor-active-by-click-inside | 点击锚点内部内容激活 | | anchor-active-by-initial | 初始化滚动条位置激活 | -# dAnchorLink +### dAnchorLink 定义一个锚点的链接,点击链接会滑动到锚点,锚点处于页面顶部的时候也会激活链接的 class。 @@ -70,10 +77,10 @@ | 参数 | 类型 | 默认 | 说明 | 跳转 Demo |全局配置项| | :----------------: | :----------: | :------: | :--: | :---------------------------------------------------: | ---------------------------- | -| dAnchorLink | `string` | -- | 必选,点击滑动的目标锚点的名字 | [基本用法](demo#basic-usage) | -| anchorActive | `string` | -- | 可选,锚点处于激活状态的时候,链接生效对应的 css 类名 | [基本用法](demo#basic-usage) | +| dAnchorLink | `string` | -- | 必选,点击滑动的目标锚点的名字 | [基本用法](#基本用法) | +| anchorActive | `string` | -- | 可选,锚点处于激活状态的时候,链接生效对应的 css 类名 | [基本用法](#基本用法) | -# dAnchorBox +### dAnchorBox 必须有一个容器,否则功能无法使用。 -- Gitee From df7de1f256c8abb91a88fde695754511a1a200a0 Mon Sep 17 00:00:00 2001 From: kagol Date: Wed, 6 Oct 2021 19:34:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20=E4=BF=AE=E5=A4=8D=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E7=BD=91=E7=AB=99demo=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/breadcrumb/index.md | 4 ++-- docs/components/cascader/index.md | 8 +++++++- docs/components/date-picker/index.md | 12 ++++++++---- docs/components/input-number/index.md | 7 +++++-- docs/components/rate/index.md | 3 ++- docs/components/search/index.md | 6 ++++++ docs/components/select/index.md | 6 +++++- docs/components/sticky/index.md | 5 ++++- 8 files changed, 39 insertions(+), 12 deletions(-) diff --git a/docs/components/breadcrumb/index.md b/docs/components/breadcrumb/index.md index fd4499ac..2289ae81 100644 --- a/docs/components/breadcrumb/index.md +++ b/docs/components/breadcrumb/index.md @@ -1,8 +1,8 @@ -# Breadcrumb +# Breadcrumb 面包屑 显示当前页面层级的组件。 -**何时使用** +### 何时使用 1. 用户需要了解当前出于什么层级时; 2. 用户需要快速返回之前的层级时; diff --git a/docs/components/cascader/index.md b/docs/components/cascader/index.md index 88e98169..1c310e94 100644 --- a/docs/components/cascader/index.md +++ b/docs/components/cascader/index.md @@ -1,6 +1,12 @@ -# 级联菜单 +# Cascader 级联菜单 + 下拉级联菜单。 +### 何时使用 + +1. 需要从一组相关联的数据集合进行选择,例如省市区,公司层级,事物分类等。 +2. 从一个较大的数据集合中进行选择时,用多级分类进行分隔,方便选择。 + ### 基本用法 :::demo diff --git a/docs/components/date-picker/index.md b/docs/components/date-picker/index.md index f9701f65..bbc53a7a 100644 --- a/docs/components/date-picker/index.md +++ b/docs/components/date-picker/index.md @@ -1,3 +1,11 @@ +# DatePicker 日期选择器 + +输入或选择日期的组件。 + +### 何时使用 + +当用户需要输入一个日期时;需要点击标准输入框,弹出日期面板进行选择时。 + -# DatePicker 日期选择器 - -日期、时间可视化输入。 - ### 属性 auto-close |项目|说明| diff --git a/docs/components/input-number/index.md b/docs/components/input-number/index.md index 60b0f366..74bc4c9b 100644 --- a/docs/components/input-number/index.md +++ b/docs/components/input-number/index.md @@ -1,7 +1,10 @@ -# InputNum 数字输入框 +# InputNumber 数字输入框 -数字输入框仅允许输入标准的数字值,可定义范围。 +数字输入框组件。 +### 何时使用 + +当需要获取标准数值时。 ### 基本用法 diff --git a/docs/components/rate/index.md b/docs/components/rate/index.md index 021bf9cb..ab3f6ff3 100644 --- a/docs/components/rate/index.md +++ b/docs/components/rate/index.md @@ -2,7 +2,8 @@ 等级评估。 -何时使用 +### 何时使用 + 用户对一个产品进行评分时可以使用。 ### Demo diff --git a/docs/components/search/index.md b/docs/components/search/index.md index a47a8355..97d61245 100644 --- a/docs/components/search/index.md +++ b/docs/components/search/index.md @@ -1,5 +1,11 @@ # Search 搜索框 +搜索框。 + +### 何时使用 + +当用户需要在数据集中搜索所需数据时,输入所需数据的内容(或部分内容),返回所有匹配内容的搜索结果。 + ### 基本用法 :::demo 使用`sm`,`''`,`lg`来定义`Search`基本类型 diff --git a/docs/components/select/index.md b/docs/components/select/index.md index 5440b1c7..2cac4481 100644 --- a/docs/components/select/index.md +++ b/docs/components/select/index.md @@ -1,6 +1,10 @@ # Select 下拉选择框 -用于从列表中选择单个或者多个数据 +下拉选择框。 + +### 何时使用 + +用户可以从多个选项中选择一项或几项;仅支持用户在下拉选项中选择和搜索系统提供的选项,不支持输入。 ### 基本用法 diff --git a/docs/components/sticky/index.md b/docs/components/sticky/index.md index e3acf7c0..9839071b 100644 --- a/docs/components/sticky/index.md +++ b/docs/components/sticky/index.md @@ -1,6 +1,9 @@ -# sticky 便贴 +# Sticky 便贴 + +便签组件。 ### 何时使用 + 当用户在滚动屏幕时,需要某个区域内容在段落或者浏览器可视区域可见时。 ### 基本用法 -- Gitee