tass-ui
Version:
A high quality UI Toolkit built on Vue.js3+.
129 lines (128 loc) • 3.49 kB
TypeScript
export declare const TassSwitch: import("vue").DefineComponent<{
name: {
type: StringConstructor;
required: false;
};
disabled: {
type: BooleanConstructor;
required: false;
default: boolean;
};
modelValue: {
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
required: false;
};
onswitchText: {
type: StringConstructor;
required: false;
};
unswitchText: {
type: StringConstructor;
required: false;
};
onswitchColor: {
type: StringConstructor;
required: false;
};
unswitchColor: {
type: StringConstructor;
required: false;
};
onswitchValue: {
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
required: false;
default: boolean;
};
unswitchValue: {
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
required: false;
default: boolean;
};
size: {
type: null;
required: false;
default: string;
};
loadingIcon: {
type: StringConstructor;
required: false;
default: string;
};
loading: {
type: BooleanConstructor;
required: false;
};
}, {
props: any;
emit: (event: "update:modelValue" | "change", ...args: any[]) => void;
isActive: import("vue").WritableComputedRef<boolean>;
handleClick: () => void;
styles: import("vue").ComputedRef<{
"background-color": string | undefined;
}>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
name: {
type: StringConstructor;
required: false;
};
disabled: {
type: BooleanConstructor;
required: false;
default: boolean;
};
modelValue: {
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
required: false;
};
onswitchText: {
type: StringConstructor;
required: false;
};
unswitchText: {
type: StringConstructor;
required: false;
};
onswitchColor: {
type: StringConstructor;
required: false;
};
unswitchColor: {
type: StringConstructor;
required: false;
};
onswitchValue: {
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
required: false;
default: boolean;
};
unswitchValue: {
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
required: false;
default: boolean;
};
size: {
type: null;
required: false;
default: string;
};
loadingIcon: {
type: StringConstructor;
required: false;
default: string;
};
loading: {
type: BooleanConstructor;
required: false;
};
}>> & {
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {
size: any;
loading: boolean;
disabled: boolean;
onswitchValue: string | number | boolean;
unswitchValue: string | number | boolean;
loadingIcon: string;
}>;
export default TassSwitch;