|
5 months ago | |
---|---|---|
.. | ||
README.en-US.md | 5 months ago | |
README.md | 5 months ago | |
index.wxs | 5 months ago | |
props.d.ts | 5 months ago | |
props.js | 5 months ago | |
tree-select.d.ts | 5 months ago | |
tree-select.js | 5 months ago | |
tree-select.json | 5 months ago | |
tree-select.wxml | 5 months ago | |
tree-select.wxss | 5 months ago | |
type.d.ts | 5 months ago | |
type.js | 5 months ago |
:: BASE_DOC ::
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。Typescript:KeysType
。see more ts definition | N
multiple | Boolean | false | - | N
options | Array | [] | Typescript:Array<DataOption>
| N
value | String / Number / Array | - | Typescript:TreeSelectValue
type TreeSelectValue = string \| number \| Array<TreeSelectValue>
。see more ts definition | N
default-value | String / Number / Array | undefined | uncontrolled property。Typescript:TreeSelectValue
type TreeSelectValue = string \| number \| Array<TreeSelectValue>
。see more ts definition | N
name | params | description
-- | -- | --
change | (value: TreeSelectValue, level: TreeLevel)
| see more ts definition。type TreeLevel = 0 \| 1 \| 2
className | Description -- | -- t-class | - t-class-left-column | - t-class-left-item | - t-class-middle-item | - t-class-right-column | - t-class-right-item | - t-class-right-item-label | -
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 | -