sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
30 lines (29 loc) • 842 B
TypeScript
import { type MaybeRef } from 'vue';
export interface OptionKeys {
label?: string;
value?: string;
disabled?: string;
children?: string;
isLeaf?: string;
}
export declare const defaultOptonKeys: Required<OptionKeys>;
export declare function useOptionKeys(props: MaybeRef<{
fieldKeys?: OptionKeys;
optionKeys?: OptionKeys;
valueKey?: any;
}>): {
aliasProps: import("vue").ComputedRef<{
label: string;
value: string;
disabled: string;
children: string;
isLeaf: string;
}>;
getLabel: (option: any) => any;
getValue: (option: any) => any;
getIsLeaf: (option: any) => any;
getDisabled: (option: any) => any;
getChildren: (option: any) => any;
getKey: (value: any) => any;
};
export type UseOptionKeysReturn = ReturnType<typeof useOptionKeys>;