docs(components): [tree-v2] add some disabled nodes (#13484)

* docs(components): [tree-v2] add some disabled nodes

* docs(components): [tree-v2] add some disabled nodes
This commit is contained in:
zepeng 2023-07-06 19:06:34 +08:00 committed by GitHub
parent a5970049d5
commit 6256bde3a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ interface Tree {
id: string
label: string
children?: Tree[]
disabled: boolean
}
const getKey = (prefix: string, id: number) => {
@ -32,6 +33,7 @@ const createData = (
children: childrenNumber
? createData(maxDeep, maxChildren, childrenNumber, deep + 1, nodeKey)
: undefined,
disabled: nodeKey.includes('2'),
}
})
}