docs(tree-select): add doc for height (#3460)

This commit is contained in:
rex 2020-07-31 14:17:58 +08:00 committed by GitHub
parent 87c6ef6d9e
commit 53e4f3bf89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -6,6 +6,7 @@
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": true,
"enhance": false,
"postcss": true, "postcss": true,
"preloadBackgroundData": false, "preloadBackgroundData": false,
"minified": true, "minified": true,
@ -15,20 +16,19 @@
"autoAudits": false, "autoAudits": false,
"showShadowRootInWxmlPanel": true, "showShadowRootInWxmlPanel": true,
"scopeDataCheck": false, "scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true, "checkInvalidKey": true,
"checkSiteMap": true, "checkSiteMap": true,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"useCompilerModule": false, "useIsolateContext": true,
"userConfirmedUseCompilerModuleSwitch": false, "useCompilerModule": true,
"enhance": false, "userConfirmedUseCompilerModuleSwitch": false
"uglifyFileName": false,
"compileHotReLoad": false,
"useIsolateContext": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"cloudfunctionRoot": "functions/", "cloudfunctionRoot": "functions/",

View File

@ -94,6 +94,7 @@ Page({
```html ```html
<van-tree-select <van-tree-select
items="{{ items }}" items="{{ items }}"
height="55vw"
main-active-index="{{ mainActiveIndex }}" main-active-index="{{ mainActiveIndex }}"
active-id="{{ activeId }}" active-id="{{ activeId }}"
bind:click-nav="onClickNav" bind:click-nav="onClickNav"
@ -110,6 +111,7 @@ Page({
| 参数 | 说明 | 类型 | 默认值 | 版本 | | 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- |
| items | 分类显示所需的数据 | _Array_ | `[]` | - | | items | 分类显示所需的数据 | _Array_ | `[]` | - |
| height | 高度,默认单位为`px` | _number \| string_ | `300` |
| main-active-index | 左侧选中项的索引 | _number_ | `0` | - | | main-active-index | 左侧选中项的索引 | _number_ | `0` | - |
| active-id | 右侧选中项的 id支持传入数组 | _string \| number \| Array_ | `0` | - | | active-id | 右侧选中项的 id支持传入数组 | _string \| number \| Array_ | `0` | - |
| max | 右侧项最大选中个数 | _number_ | _Infinity_ | - | | max | 右侧项最大选中个数 | _number_ | _Infinity_ | - |