tass-ui
Version:
A high quality UI Toolkit built on Vue.js3+.
144 lines (143 loc) • 3.92 kB
TypeScript
import { SwitchSize } from "./interface";
export interface SwitchProps {
name?: string;
disabled?: boolean;
modelValue?: string | number | boolean;
onswitchText?: string;
unswitchText?: string;
onswitchColor?: string;
unswitchColor?: string;
onswitchValue?: string | number | boolean;
unswitchValue?: string | number | boolean;
size?: SwitchSize;
loadingIcon?: string;
loading?: boolean;
}
declare const _sfc_main: 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 _sfc_main;