t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
128 lines (127 loc) • 4.55 kB
TypeScript
import type { CheckboxGroupLabelType, CheckboxGroupSizeType, CheckboxGroupChangeInterface, ChangeEventInterface } from './src/interface.d';
import type { DefineComponent, PropType, ComputedRef, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
import type { InstallType, ClassListInterface } from '../_interface';
import CheckboxGroup from "./src/checkbox-group";
export declare const FCheckboxGroup: InstallType<DefineComponent<{
readonly modelValue: {
readonly type: PropType<CheckboxGroupLabelType>;
readonly default: () => [];
};
readonly disabled: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly vertical: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly label: {
readonly type: StringConstructor;
readonly default: () => string;
};
readonly changeEvent: {
readonly type: FunctionConstructor;
readonly default: () => null;
};
readonly border: {
readonly type: BooleanConstructor;
readonly default: () => boolean;
};
readonly size: {
readonly type: PropType<CheckboxGroupSizeType>;
readonly default: () => CheckboxGroupSizeType;
readonly validator: (val: CheckboxGroupSizeType) => boolean;
};
readonly columnGap: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly rowGap: {
readonly type: PropType<string | number>;
readonly default: () => string;
};
readonly change: {
readonly type: PropType<CheckboxGroupChangeInterface>;
readonly default: () => null;
};
}, {
prop: {
readonly modelValue?: unknown;
readonly disabled?: unknown;
readonly vertical?: unknown;
readonly label?: unknown;
readonly changeEvent?: unknown;
readonly border?: unknown;
readonly size?: unknown;
readonly columnGap?: unknown;
readonly rowGap?: unknown;
readonly change?: unknown;
} & {
size: CheckboxGroupSizeType;
disabled: boolean;
vertical: boolean;
border: boolean;
modelValue: CheckboxGroupLabelType;
label: string;
changeEvent: Function;
columnGap: string | number;
rowGap: string | number;
change: CheckboxGroupChangeInterface;
} & {};
emit: (event: "update:modelValue", val: CheckboxGroupLabelType) => void;
changeEvent: ChangeEventInterface;
checkboxGroupProps: {
readonly changeEvent: ChangeEventInterface;
readonly modelValue: CheckboxGroupLabelType;
readonly disabled: boolean;
readonly vertical: boolean;
readonly label: string;
readonly border: boolean;
readonly size: CheckboxGroupSizeType;
readonly columnGap: string | number;
readonly rowGap: string | number;
readonly change: CheckboxGroupChangeInterface;
};
styleList: ComputedRef<CSSProperties>;
classList: ComputedRef<ClassListInterface>;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
readonly 'update:modelValue': (val: CheckboxGroupLabelType) => boolean;
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
readonly modelValue?: unknown;
readonly disabled?: unknown;
readonly vertical?: unknown;
readonly label?: unknown;
readonly changeEvent?: unknown;
readonly border?: unknown;
readonly size?: unknown;
readonly columnGap?: unknown;
readonly rowGap?: unknown;
readonly change?: unknown;
} & {
size: CheckboxGroupSizeType;
disabled: boolean;
vertical: boolean;
border: boolean;
modelValue: CheckboxGroupLabelType;
label: string;
changeEvent: Function;
columnGap: string | number;
rowGap: string | number;
change: CheckboxGroupChangeInterface;
} & {}> & {
"onUpdate:modelValue"?: ((val: CheckboxGroupLabelType) => any) | undefined;
}, {
size: CheckboxGroupSizeType;
disabled: boolean;
vertical: boolean;
border: boolean;
modelValue: CheckboxGroupLabelType;
label: string;
changeEvent: Function;
columnGap: string | number;
rowGap: string | number;
change: CheckboxGroupChangeInterface;
}>>;
export declare type CheckboxGroupInstance = InstanceType<typeof CheckboxGroup>;
export * from './src/interface.d';
export default CheckboxGroup;