From db6bca0fcdb452b3d73752aa0de83e1600e5e38c Mon Sep 17 00:00:00 2001 From: Huangyilin19 Date: Thu, 7 Mar 2024 17:12:53 +0800 Subject: [PATCH] docs(steps): optimization of steps docs --- examples/sites/demos/apis/steps.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/sites/demos/apis/steps.js b/examples/sites/demos/apis/steps.js index 7d2478e5b0..3cd02a7b55 100644 --- a/examples/sites/demos/apis/steps.js +++ b/examples/sites/demos/apis/steps.js @@ -41,8 +41,8 @@ export default { }, { name: 'data', - typeAnchorName: 'IStepsItem[]', - type: 'IStepsItem', + typeAnchorName: 'IStepsItem', + type: 'IStepsItem[]', defaultValue: '[]', desc: { 'zh-CN': '步骤条的数据', @@ -227,11 +227,11 @@ export default { type: 'interface', code: ` interface IStepsItem { - // 条形步骤条数据项 + // 节点数据 name: string, // 节点名称 - description: string, // 描述,仅用于单链型步骤条 - status: IStepsStatus, // 节点状态,取值见下面IStepsStatus类型说明 - count: number // 节点右上角徽标计数,仅用于默认条形步骤条 + status?: IStepsStatus, // 节点状态,取值见下面IStepsStatus类型说明 + description?: string, // 描述,仅用于单链型步骤条 + count?: number // 节点右上角徽标计数,仅用于默认条形步骤条 } ` },