From 39731f88f2407f873d193e7096038d4403f256f4 Mon Sep 17 00:00:00 2001 From: leejimqiu Date: Wed, 28 Dec 2022 11:26:32 +0800 Subject: [PATCH] chore: update website readme (#1301) --- src/empty/README.md | 2 +- src/fab/README.md | 2 +- src/indexes/README.md | 6 +++++- src/notice-bar/README.md | 2 +- src/progress/README.md | 7 +++---- src/steps/README.md | 15 ++++++++++++++- .../__test__/__snapshots__/demo.test.js.snap | 2 +- src/steps/_example/special/index.wxml | 2 +- 8 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/empty/README.md b/src/empty/README.md index 8cae17400..2b6e4cfa2 100644 --- a/src/empty/README.md +++ b/src/empty/README.md @@ -1,5 +1,5 @@ --- -title: Empty 空内容 +title: Empty 空状态 description: 用于空状态时的占位提示。 spline: data isComponent: true diff --git a/src/fab/README.md b/src/fab/README.md index a75f2ce0d..ba809e19d 100644 --- a/src/fab/README.md +++ b/src/fab/README.md @@ -1,5 +1,5 @@ --- -title: Fab +title: Fab 悬浮按钮 description: 当功能使用图标即可表意清楚时,可使用纯图标悬浮按钮,例如:添加、发布。 spline: form isComponent: true diff --git a/src/indexes/README.md b/src/indexes/README.md index 38567a766..06c592ea5 100644 --- a/src/indexes/README.md +++ b/src/indexes/README.md @@ -22,7 +22,11 @@ isComponent: true ### 基础索引 -{{ display }} +{{ base }} + +### 自定义索引 + +{{ custom }} ### API ### Indexes Props diff --git a/src/notice-bar/README.md b/src/notice-bar/README.md index 50a25aaa3..0888282ea 100644 --- a/src/notice-bar/README.md +++ b/src/notice-bar/README.md @@ -1,5 +1,5 @@ --- -title: NoticeBar 消息通知 +title: NoticeBar 公告栏 description: 在导航栏下方,用于给用户显示提示消息。 spline: message isComponent: true diff --git a/src/progress/README.md b/src/progress/README.md index cdfd3e415..ea8178fdc 100644 --- a/src/progress/README.md +++ b/src/progress/README.md @@ -1,6 +1,6 @@ --- -title: Progress -description: 进度条。 +title: Progress 进度条 +description: 用于展示任务当前的进度。 spline: message isComponent: true --- @@ -21,6 +21,7 @@ isComponent: true ## 代码演示 ### 01 组件类型 + 基础进度条 {{ base }} @@ -33,8 +34,6 @@ isComponent: true {{ custom }} - - ### 02 组件状态 线性进度条 diff --git a/src/steps/README.md b/src/steps/README.md index f5c49a23a..af5a316aa 100644 --- a/src/steps/README.md +++ b/src/steps/README.md @@ -25,9 +25,13 @@ isComponent: true #### 水平步骤条 +支持三种类型:序号、图标、简略 + {{ horizontal }} -#### 竖向只读步骤条 +#### 垂直步骤条 + +支持三种类型:序号、图标、简略 {{ vertical }} @@ -35,10 +39,19 @@ isComponent: true #### 选项卡状态 +共支持 4 种状态:未完成(default)、已完成(finish)、进行中(process)、错误(error) + {{ status }} ### 特殊类型 +通过已有特性,改造出两种常见类型: + +- 垂直自定义(在 Cascader 中使用) +- 纯展示步骤条 + +可以参考以下代码实现 + {{ special }} ## API diff --git a/src/steps/__test__/__snapshots__/demo.test.js.snap b/src/steps/__test__/__snapshots__/demo.test.js.snap index e5c1a6909..9b8d622ba 100644 --- a/src/steps/__test__/__snapshots__/demo.test.js.snap +++ b/src/steps/__test__/__snapshots__/demo.test.js.snap @@ -105,7 +105,7 @@ exports[`Steps Steps special demo works fine 1`] = ` - 纵向自定义步骤条 + 垂直自定义步骤条 -纵向自定义步骤条 +垂直自定义步骤条