UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

38 lines (37 loc) 1.28 kB
/** * Combo Tree 组件提供下拉框形式选择树形数据。 * * @example * ```tsx * import { Ref, defineComponent, ref } from 'vue'; * import { FComboTree } from '../../components/combo-tree'; * * import { treedata } from './treedata'; * export default defineComponent({ * name: 'BasicTsxDemo', * setup() { * * * const selectedValue = ref(''); * * return () => ( * <> * <FComboTree data={treedata} modelValue={selectedValue.value} onUpdate:modelValue={(v: any) => { selectedValue.value = v; }} titleField={'name'} textField={'name'} valueField={'id'} idField={'id'} multiSelect={true} enableSearch={true} /> * 选中的Value: * {selectedValue.value} * </> * ); * } * }); * ``` * * @public */ declare const _default: import("vue").DefineComponent<{ [x: string]: any; }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, "clear" | "update:modelValue" | "change" | "search" | "expandNode", import("vue").PublicProps, Readonly<{ [x: string]: any; }> & Readonly<{}>, { [x: string]: any; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;