@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
42 lines (41 loc) • 1.28 kB
TypeScript
/**
* Tree View 组件以树形式展现层级结构数据。
*
* @example
* ```vue
* <script setup lang="ts">
* import { customIconData } from './demo-data';
* import { ref } from 'vue';
*
*
* const showTreeNodeIcons = ref(true);
* </script>
*
* <template>
* <div class="custom-control custom-checkbox custom-control-inline">
* <label class="col-form-label"><span class="farris-label-text">显示动态图标:</span></label>
* <div class="farris-input-wrap">
* <f-switch v-model="showTreeNodeIcons"></f-switch>
* </div>
* </div>
* <div class="fv-tree-demo">
* <f-tree-view :data="customIconData" :show-tree-node-icons="showTreeNodeIcons" icon-field="departmentIcon"></f-tree-view>
* </div>
* </template>
* <style>
* .fv-tree-demo {
* height: 480px;
* }
* </style>
* ```
*
* @public
*/
declare const _default: import("vue").DefineComponent<{
[x: string]: any;
}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
[x: string]: any;
}> & Readonly<{}>, {
[x: string]: any;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;