We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
control
string | number | AbstractControl
@idux/cdk/forms
v-model:value
key
VKey[]
v-model:expandedKeys
v-model:loadedKeys
v-model:open
boolean
autofocus
false
cascade
multiple
checkable
true
clearable
childrenKey
children
string
checkStrategy
'all' | 'parent' | 'child'
'all'
all
parent
child
dataSource
TreeSelectNode[]
[]
disabled
draggable
droppable
TreeDroppable
empty
string |
expandIcon
right
maxLabelCount
number
nodeKey
string | (node: TreeSelectNode) => VKey
labelKey
label
leafLineIcon
showLine
loadChildren
(node: TreeSelectNode) => Promise<TreeSelectNode[]>
searchFn
(node: TreeSelectNode, searchValue?: string) => boolean
searchable
boolean | 'overlay'
overlay
size
'sm' | 'md' | 'lg'
md
suffix
string | #suffix
down
target
string | HTMLElement | () => string | HTMLElement
treeDisabled
virtual
overlayClassName
class
overlayRender
(children:VNode[]) => VNodeTypes
placeholder
readonly
onChange
(value: any, oldValue: any, node: TreeSelectNode | TreeSelectNode[] => void
onCheck
(checked: boolean, node: TreeSelectNode) => void
onDragStart
dragstart
(options: TreeDragDropOptions) => void
onDragEnd
dragend
onDragEnter
dragenter
onDragLeave
dragleave
onDragOver
dragover
onDrop
drop
onExpand
(expanded: boolean, node: TreeSelectNode) => void
onExpandedChange
(expendedKeys: VKey[], expendedNodes: TreeSelectNode[]) => void
onLoaded
(loadedKeys: VKey[], node: TreeSelectNode) => void
onSearchedChange
(searchedKeys: VKey[], searchedNodes: TreeSelectNode[]) => void
onSelect
(selected: boolean, node: TreeSelectNode) => void
onNodeClick
(evt: Event, node: TreeSelectNode) => void
onNodeContextmenu
onScroll
(evt: Event) => void
onScrolledChange
(startIndex: number, endIndex: number, visibleNodes: TreeSelectNode[]) => void
onScrolledBottom
() => void
additional
object
style
TreeNode[]
boolean | TreeNodeDisabled
TreeProps
isLeaf
VKey
prefix
{key: VKey, expanded: boolean, node: TreeSelectNode}
{node: RawNode}
RawNode
showLine 时生效
maxLabel
{nodes: RawNode[]}
treeLabel
{node: TreeSelectNode}
treePrefix
{key: VKey, selected: boolean, node: TreeSelectNode}
treeSuffix
blur
focus
scrollTo
(option?: number | VirtualScrollToOptions) => void
setExpandAll
(isAll: boolean) => void
The text was updated successfully, but these errors were encountered:
feat(comp: tree-select): add tree-select comp
0710bab
fix IDuxFE#557
48ef6ca
3edd1c0
feat(comp: tree-select): add tree-select comp (#606)
a8cc003
fix #557
danranVm
Successfully merging a pull request may close this issue.
What problem does this feature solve?
What does the proposed API look like?
API
IxTreeSelect
TreeSelectProps
control
string | number | AbstractControl
@idux/cdk/forms
使用, 参考 Formv-model:value
key
数组VKey[]
v-model:expandedKeys
key
数组VKey[]
v-model:loadedKeys
key
数组VKey[]
v-model:open
boolean
autofocus
boolean
false
cascade
boolean
false
multiple
和checkable
为true
时生效clearable
boolean
false
checkable
boolean
false
multiple
为true
时生效childrenKey
children
字段string
children
checkStrategy
'all' | 'parent' | 'child'
'all'
all
表示显示全部选中节点;parent
表示只显示父节点(当父节点下所有子节点都选中时);child
表示只显示子节点,仅当cascade
为true
时,parent
和child
才生效dataSource
TreeSelectNode[]
[]
disabled
boolean
false
draggable
boolean
false
droppable
TreeDroppable
empty
string |
EmptyPropsexpandIcon
string
right
maxLabelCount
number
multiple
boolean
false
nodeKey
key
字段string | (node: TreeSelectNode) => VKey
key
labelKey
label
字段string
label
leafLineIcon
string
showLine
时生效loadChildren
(node: TreeSelectNode) => Promise<TreeSelectNode[]>
searchFn
(node: TreeSelectNode, searchValue?: string) => boolean
searchable
boolean | 'overlay'
true
时搜索功能集成在选择器上,当为overlay
时,搜索功能集成在悬浮层上showLine
boolean
false
size
'sm' | 'md' | 'lg'
md
suffix
string | #suffix
down
target
string | HTMLElement | () => string | HTMLElement
treeDisabled
virtual
boolean
false
overlayClassName
class
string
overlayRender
(children:VNode[]) => VNodeTypes
placeholder
string
readonly
boolean
onChange
(value: any, oldValue: any, node: TreeSelectNode | TreeSelectNode[] => void
onCheck
(checked: boolean, node: TreeSelectNode) => void
onDragStart
dragstart
触发时调用(options: TreeDragDropOptions) => void
onDragEnd
dragend
触发时调用(options: TreeDragDropOptions) => void
onDragEnter
dragenter
触发时调用(options: TreeDragDropOptions) => void
onDragLeave
dragleave
触发时调用(options: TreeDragDropOptions) => void
onDragOver
dragover
触发时调用(options: TreeDragDropOptions) => void
onDrop
drop
触发时调用(options: TreeDragDropOptions) => void
onExpand
(expanded: boolean, node: TreeSelectNode) => void
onExpandedChange
(expendedKeys: VKey[], expendedNodes: TreeSelectNode[]) => void
onLoaded
(loadedKeys: VKey[], node: TreeSelectNode) => void
onSearchedChange
(searchedKeys: VKey[], searchedNodes: TreeSelectNode[]) => void
onSelect
(selected: boolean, node: TreeSelectNode) => void
onNodeClick
(evt: Event, node: TreeSelectNode) => void
onNodeContextmenu
(evt: Event, node: TreeSelectNode) => void
onScroll
(evt: Event) => void
onScrolledChange
(startIndex: number, endIndex: number, visibleNodes: TreeSelectNode[]) => void
virtual
模式下可用onScrolledBottom
() => void
virtual
模式下可用TreeSelectNode
additional
object
class
,style
或者其他属性children
TreeNode[]
disabled
boolean | TreeNodeDisabled
true
时,优先级高于TreeProps
isLeaf
boolean
false
,且设置了loadChildren
时会强制将其作为父节点key
VKey
label
string
prefix
string
suffix
string
TreeSelectSlots
empty
expandIcon
{key: VKey, expanded: boolean, node: TreeSelectNode}
label
{node: RawNode}
RawNode
为用户传入的数据结构leafLineIcon
showLine 时生效
maxLabel
{nodes: RawNode[]}
suffix
placeholder
treeLabel
{node: TreeSelectNode}
treePrefix
{key: VKey, selected: boolean, node: TreeSelectNode}
treeSuffix
{key: VKey, selected: boolean, node: TreeSelectNode}
TreeSelectMethods
blur
focus
scrollTo
(option?: number | VirtualScrollToOptions) => void
virtual
模式下可用setExpandAll
(isAll: boolean) => void
The text was updated successfully, but these errors were encountered: