comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
27 lines (25 loc) • 1.13 kB
TypeScript
import { PropType, ExtractPropTypes, Component } from 'vue';
import { ComicSize } from '../../../utils';
export declare const switchProps: {
readonly modelValue: PropType<boolean | string | number>;
readonly onText: StringConstructor;
readonly offText: StringConstructor;
readonly onValue: PropType<string | number>;
readonly offValue: PropType<string | number>;
readonly onColor: StringConstructor;
readonly offColor: StringConstructor;
readonly disabled: BooleanConstructor;
readonly square: BooleanConstructor;
readonly inlineText: BooleanConstructor;
readonly onIcon: PropType<string | Component>;
readonly offIcon: PropType<string | Component>;
readonly beforeChange: PropType<() => boolean | Promise<any>>;
readonly loading: BooleanConstructor;
readonly size: PropType<ComicSize>;
};
export type SwitchProps = ExtractPropTypes<typeof switchProps>;
export declare const switchEmits: {
"update:modelValue": (val: boolean | string | number) => boolean;
change: (val: boolean | string | number) => boolean;
};
export type SwitchEmits = typeof switchEmits;