@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
27 lines (26 loc) • 1.07 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { ConfigurableProps } from '@vexip-ui/config';
import { SwitchSlots } from './symbol';
export declare const switchProps: {
inherit: PropType<boolean>;
size: PropType<"default" | "small" | "large">;
state: PropType<"default" | "success" | "error" | "warning">;
value: PropType<boolean>;
disabled: PropType<boolean>;
openColor: PropType<string>;
closeColor: PropType<string>;
loading: PropType<boolean>;
loadingIcon: PropType<any>;
loadingEffect: PropType<string>;
openIcon: PropType<any>;
closeIcon: PropType<any>;
openText: PropType<string>;
closeText: PropType<string>;
onBeforeChange: PropType<(checked: boolean) => unknown>;
rectangle: PropType<boolean>;
name: PropType<string>;
slots: PropType<SwitchSlots>;
onChange: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
};
export type SwitchProps = ExtractPropTypes<typeof switchProps>;
export type SwitchCProps = ConfigurableProps<SwitchProps, never, 'onBeforeChange'>;