y-design-ssr
Version:
SSR component library of YUI with Vue3
81 lines (80 loc) • 2.21 kB
TypeScript
declare const Switch: import("../utils/withInstall").WithInstall<import("vue").DefineComponent<{
size: {
type: import("vue").PropType<import("../utils").Size>;
default: null;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
readonly: {
type: BooleanConstructor;
default: boolean;
};
modelValue: {
type: BooleanConstructor;
default: boolean;
};
activeValue: {
type: BooleanConstructor;
default: boolean;
};
inactiveValue: {
type: BooleanConstructor;
default: boolean;
};
activeColor: {
type: StringConstructor;
default: string;
};
inactiveColor: {
type: StringConstructor;
default: string;
};
}, () => import("vue").VNodeChild, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
size: {
type: import("vue").PropType<import("../utils").Size>;
default: null;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
readonly: {
type: BooleanConstructor;
default: boolean;
};
modelValue: {
type: BooleanConstructor;
default: boolean;
};
activeValue: {
type: BooleanConstructor;
default: boolean;
};
inactiveValue: {
type: BooleanConstructor;
default: boolean;
};
activeColor: {
type: StringConstructor;
default: string;
};
inactiveColor: {
type: StringConstructor;
default: string;
};
}>> & {
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {
size: import("../utils").Size;
disabled: boolean;
modelValue: boolean;
activeColor: string;
inactiveColor: string;
readonly: boolean;
activeValue: boolean;
inactiveValue: boolean;
}>>;
export default Switch;