|
|
|
|
import type Switch from './switch.vue';
|
|
|
|
|
import type { ExtractPropTypes, PropType } from 'vue';
|
|
|
|
|
export declare const switchProps: {
|
|
|
|
|
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
|
|
|
readonly disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
|
|
|
readonly loading: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
|
|
|
readonly size: {
|
|
|
|
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large") | ((new (...args: any[]) => ("" | "default" | "small" | "large") & {}) | (() => "" | "default" | "small" | "large"))[], unknown, "" | "default" | "small" | "large">>;
|
|
|
|
|
readonly required: false;
|
|
|
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
|
|
|
__epPropKey: true;
|
|
|
|
|
};
|
|
|
|
|
readonly width: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
|
|
|
readonly inlinePrompt: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
|
|
|
readonly inactiveActionIcon: {
|
|
|
|
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
|
|
|
readonly required: false;
|
|
|
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
|
|
|
__epPropKey: true;
|
|
|
|
|
};
|
|
|
|
|
readonly activeActionIcon: {
|
|
|
|
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
|
|
|
readonly required: false;
|
|
|
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
|
|
|
__epPropKey: true;
|
|
|
|
|
};
|
|
|
|
|
readonly activeIcon: {
|
|
|
|
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
|
|
|
readonly required: false;
|
|
|
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
|
|
|
__epPropKey: true;
|
|
|
|
|
};
|
|
|
|
|
readonly inactiveIcon: {
|
|
|
|
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
|
|
|
readonly required: false;
|
|
|
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
|
|
|
__epPropKey: true;
|
|
|
|
|
};
|
|
|
|
|
readonly activeText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
|
|
|
readonly inactiveText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
|
|
|
readonly activeValue: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, true, boolean>;
|
|
|
|
|
readonly inactiveValue: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
|
|
|
readonly activeColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
|
|
|
readonly inactiveColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
|
|
|
readonly borderColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
|
|
|
readonly name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
|
|
|
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
|
|
|
readonly beforeChange: {
|
|
|
|
|
readonly type: PropType<() => Promise<boolean> | boolean>;
|
|
|
|
|
readonly required: false;
|
|
|
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
|
|
|
__epPropKey: true;
|
|
|
|
|
};
|
|
|
|
|
readonly id: StringConstructor;
|
|
|
|
|
readonly tabindex: {
|
|
|
|
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
|
|
|
readonly required: false;
|
|
|
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
|
|
|
__epPropKey: true;
|
|
|
|
|
};
|
|
|
|
|
readonly value: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
|
|
|
readonly label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
|
|
|
};
|
|
|
|
|
export declare type SwitchProps = ExtractPropTypes<typeof switchProps>;
|
|
|
|
|
export declare const switchEmits: {
|
|
|
|
|
"update:modelValue": (val: boolean | string | number) => boolean;
|
|
|
|
|
change: (val: boolean | string | number) => boolean;
|
|
|
|
|
input: (val: boolean | string | number) => boolean;
|
|
|
|
|
};
|
|
|
|
|
export declare type SwitchEmits = typeof switchEmits;
|
|
|
|
|
export declare type SwitchInstance = InstanceType<typeof Switch>;
|