UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

53 lines (52 loc) 2.11 kB
import { ExtractPropTypes, PropType } from 'vue'; import { ConfigurableProps } from '@vexip-ui/config'; export declare const checkboxProps: { inherit: PropType<boolean>; size: PropType<"default" | "small" | "large">; state: PropType<"default" | "success" | "error" | "warning">; checked: PropType<boolean>; label: PropType<string>; value: PropType<string | number>; labelClass: PropType<string | Record<string, any> | (string | Record<string, any>)[]>; disabled: PropType<boolean>; border: PropType<boolean>; control: PropType<boolean>; partial: PropType<boolean>; tabIndex: PropType<string | number>; loading: PropType<boolean>; loadingLock: PropType<boolean>; name: PropType<string>; color: PropType<string>; stateColor: PropType<boolean>; onChange: PropType<((checked: boolean) => void) | ((checked: boolean) => void)[]>; onClick: PropType<((event: MouseEvent) => void) | ((event: MouseEvent) => void)[]>; }; export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>; export type CheckboxCProps = ConfigurableProps<CheckboxProps>; export type RawOption = string | { value: string | number; label?: string; control?: boolean; disabled?: boolean; }; export declare const checkboxGroupProps: { inherit: PropType<boolean>; size: PropType<"default" | "small" | "large">; state: PropType<"default" | "success" | "error" | "warning">; locale: PropType<Partial<{ all: string; }>>; value: PropType<(string | number)[]>; vertical: PropType<boolean>; disabled: PropType<boolean>; border: PropType<boolean>; options: PropType<RawOption[]>; loading: PropType<boolean>; loadingLock: PropType<boolean>; control: PropType<string | boolean>; color: PropType<string>; stateColor: PropType<boolean>; onChange: PropType<((value: (string | number)[]) => void) | ((value: (string | number)[]) => void)[]>; }; export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>; export type CheckboxGroupCProps = ConfigurableProps<CheckboxGroupProps>;