UNPKG

various-ui

Version:

This is a test version of the Vue 3 component library

91 lines (90 loc) 2.68 kB
import { ExtractPropTypes, PropType } from "vue"; import { UiTypes } from "@various/constants"; export declare const UiSelectPropsOption: { readonly classExtraName: { readonly type: StringConstructor; }; /**候选项类名 */ readonly loadingIcon: { readonly type: StringConstructor; readonly default: "loading"; }; readonly placeholder: { readonly type: StringConstructor; }; /**提示文本 */ readonly modelValue: { readonly required: true; }; /**选中项绑定值 */ readonly widthExtra: { readonly type: PropType<number | "content" | "auto">; readonly default: "content"; readonly validator: (value: unknown) => boolean; }; readonly candidates: { readonly type: PropType<UiTypes.candidate[]>; readonly required: true; }; /**候选项 */ readonly closeIcon: { readonly type: StringConstructor; readonly default: "error"; }; readonly clearable: { readonly type: BooleanConstructor; readonly default: false; }; readonly animation: { readonly type: BooleanConstructor; readonly default: true; }; readonly disabled: { readonly type: BooleanConstructor; readonly default: false; }; readonly readonly: { readonly type: BooleanConstructor; readonly default: false; }; readonly loading: { readonly type: BooleanConstructor; readonly default: false; }; readonly resolve: { readonly type: PropType<() => string>; }; readonly height: { readonly type: NumberConstructor; readonly default: 240; }; readonly zIndex: { readonly type: NumberConstructor; readonly default: 66; }; readonly detach: { readonly type: BooleanConstructor; readonly default: true; }; readonly width: { readonly type: PropType<string | number>; readonly default: 264; }; readonly size: { readonly type: PropType<UiTypes.size>; readonly default: "default"; }; readonly icon: { readonly type: StringConstructor; readonly default: "arrow"; }; readonly name: { readonly type: StringConstructor; }; }; export type UiSelectProps = ExtractPropTypes<typeof UiSelectPropsOption>; export declare const UiSelectEmits: { "update:modelValue": (_ev: any) => boolean; "before-enter": () => boolean; "before-leave": () => boolean; "after-enter": () => boolean; "after-leave": () => boolean; change: (_ev?: Event) => boolean; clear: (_ev?: any) => boolean; };