tdesign-vue-next
Version:
TDesign Component for vue-next
11 lines (10 loc) • 459 B
TypeScript
import { TreeStore } from 'tdesign-vue-next/esm/common/js/tree/tree-store';
import { TreeProps, TypeTreeState } from '../types';
export default function useTreeStore(state: TypeTreeState): {
store: TreeStore;
rebuild: (list: TreeProps["data"]) => void;
checkFilterExpand: (newFilter: null | Function, previousFilter: null | Function) => void;
updateStoreConfig: () => void;
updateExpanded: () => void;
expandFilterPath: () => void;
};