WGShare.Client.Wx/miniprogram_npm/tdesign-miniprogram/tree-select
yj dd589f646c 初始化 2024-11-20 17:29:49 +08:00
..
README.en-US.md 初始化 2024-11-20 17:29:49 +08:00
README.md 初始化 2024-11-20 17:29:49 +08:00
index.wxs Initial Commit 2024-11-11 14:16:29 +08:00
props.d.ts Initial Commit 2024-11-11 14:16:29 +08:00
props.js Initial Commit 2024-11-11 14:16:29 +08:00
tree-select.d.ts 初始化 2024-11-20 17:29:49 +08:00
tree-select.js 初始化 2024-11-20 17:29:49 +08:00
tree-select.json 初始化 2024-11-20 17:29:49 +08:00
tree-select.wxml 初始化 2024-11-20 17:29:49 +08:00
tree-select.wxss 初始化 2024-11-20 17:29:49 +08:00
type.d.ts 初始化 2024-11-20 17:29:49 +08:00
type.js Initial Commit 2024-11-11 14:16:29 +08:00

README.en-US.md

:: BASE_DOC ::

API

TreeSelect Props

name type default description required
style Object - CSS(Cascading Style Sheets) N
custom-style Object - CSS(Cascading Style Sheets)used to set style on virtual component N
height String / Number 336 - N
keys Object - alias filed name in data。TypescriptKeysTypesee more ts definition N
multiple Boolean false - N
options Array [] TypescriptArray<DataOption> N
value String / Number / Array - TypescriptTreeSelectValue type TreeSelectValue = string | number | Array<TreeSelectValue>see more ts definition N
default-value String / Number / Array undefined uncontrolled property。TypescriptTreeSelectValue type TreeSelectValue = string | number | Array<TreeSelectValue>see more ts definition N

TreeSelect Events

name params description
change (value: TreeSelectValue, level: TreeLevel) see more ts definition
type TreeLevel = 0 | 1 | 2

CSS Variables

The component provides the following CSS variables, which can be used to customize styles.

Name Default Value Description
--td-tree-bg-color @bg-color-container -
--td-tree-colum-width 206rpx -
--td-tree-item-active-color @brand-color -
--td-tree-item-font-size 32rpx -
--td-tree-item-height 112rpx -
--td-tree-root-bg-color @bg-color-secondarycontainer -