UNPKG

@aplus-frontend/ui

Version:

22 lines (21 loc) 871 B
import { ApFieldSelectProps } from '../interface'; import { DefaultOptionType } from '@aplus-frontend/antdv/es/select'; import { Ref } from 'vue'; export declare const SELECT_ALL_VALUE_KEY = "SELECTABLE_ALL_VALUE_KEY"; export declare const useSelectOptions: (props: ApFieldSelectProps) => { options: Ref<{ [x: string]: any; label?: any; value?: string | number | null | undefined; children?: Omit<DefaultOptionType, "children">[] | undefined; disabled?: boolean | undefined; }[], DefaultOptionType[] | { [x: string]: any; label?: any; value?: string | number | null | undefined; children?: Omit<DefaultOptionType, "children">[] | undefined; disabled?: boolean | undefined; }[]>; updateOptions: (nextOptions?: DefaultOptionType[]) => void; }; export default useSelectOptions;