docs(steps): optimization of steps docs (#1474)

This commit is contained in:
黄怡林 2024-03-08 10:31:53 +08:00 committed by GitHub
parent 5d9f44423c
commit d72a5f381a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -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 // 节点右上角徽标计数,仅用于默认条形步骤条
}
`
},