## tabs标签页
<br />
用于树形结构的数据展示，支持输入关键字过滤数据

### 基本用法

:::demo `props`配置树节点选项，`callBack`方法为选中节点回调
```html
<template>
    <div>
        <ve-tree-select :menuTree="menuTree" :props="{label: 'dptName'}"
                        @callBack="callBack($event)" />
    </div>
</template>

<script>
    const API = nlapp.GlobalLibraries.common

    export default {
       data() {
           return {
               menuTree : API.getDptTreeSync()
           }
       },
        methods: {
            callBack(e) {
                console.log(e);
                this.$message('选中了' + e.dptName)
            }
        }
    } 
</script>
```
:::


### 默认展开

:::demo 通过`default-expanded-keys`设置默认展开的节点，此时，必须配合设置`nodeKey`，其值为节点数据的一个字段名，且该值在整个树中都是唯一的
```html
<template>
    <div>
        <ve-tree-select :menuTree="menuTree" 
                        :nodeKey="'id'" 
                        :props="props"
                        :defaultExpandedKeys="defaultExpandedKeys" 
                        @callBack="callBack($event)" />
    </div>
</template>

<script>

    export default {
       data() {
           return {
               menuTree :  [{
                   id: 1,
                   label: '一级 1',
                   children: [{
                       id: 4,
                       label: '二级 1-1',
                       children: [{
                           id: 9,
                           label: '三级 1-1-1'
                       }, {
                           id: 10,
                           label: '三级 1-1-2'
                       }]
                   }]
               }, {
                   id: 2,
                   label: '一级 2',
                   children: [{
                       id: 5,
                       label: '二级 2-1'
                   }, {
                       id: 6,
                       label: '二级 2-2'
                   }]
               }, {
                   id: 3,
                   label: '一级 3',
                   children: [{
                       id: 7,
                       label: '二级 3-1'
                   }, {
                       id: 8,
                       label: '二级 3-2'
                   }]
               }],
               defaultExpandedKeys: [2],
               props: {label: 'label'}
               
           }
       },
        methods: {
            callBack(e) {
                console.log(e);
            }
        }
    } 
</script>
```
:::




### Attributes
| 参数      | 说明          | 类型      | 可选值                           | 默认值  |
|---------- |-------------- |---------- |--------------------------------  |-------- |
| menuTree | 树的数据源| array | — | — |
| props | 配置选项 | object | — | — |
| nodeKey | 树节点的唯一标识 | string | — | id |
| defaultExpandedKeys | 默认展开节点的key的数组 | array | — | — |


### props
| 参数      | 说明          | 类型      | 可选值                           | 默认值  |
|---------- |-------------- |---------- |--------------------------------  |-------- |
| label | 指定节点标签为节点对象的某个属性值| string/function(data,node) | — | — |
| children | 指定子树为节点对象的某个属性值 | string | — | — |


### Events
| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
| callBack | 选中树节点时的回调 | 被选中的节点的对象 |


