tdesign-mobile-vue
Version:
tdesign-mobile-vue
756 lines (755 loc) • 26.3 kB
TypeScript
import './style';
import { TdCheckboxProps, TdCheckboxGroupProps } from './type';
export * from './type';
export type CheckboxProps = TdCheckboxProps;
export type CheckboxGroupProps = TdCheckboxGroupProps;
export declare const Checkbox: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
block: {
type: BooleanConstructor;
default: boolean;
};
borderless: {
type: BooleanConstructor;
default: any;
};
checkAll: BooleanConstructor;
checked: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultChecked: BooleanConstructor;
content: {
type: import("vue").PropType<TdCheckboxProps['content']>;
};
contentDisabled: BooleanConstructor;
default: {
type: import("vue").PropType<TdCheckboxProps['default']>;
};
disabled: {
type: BooleanConstructor;
default: any;
};
icon: {
type: import("vue").PropType<TdCheckboxProps['icon']>;
default: TdCheckboxProps['icon'];
};
indeterminate: BooleanConstructor;
label: {
type: import("vue").PropType<TdCheckboxProps['label']>;
};
maxContentRow: {
type: NumberConstructor;
default: number;
};
maxLabelRow: {
type: NumberConstructor;
default: number;
};
name: {
type: StringConstructor;
default: string;
};
placement: {
type: import("vue").PropType<TdCheckboxProps['placement']>;
default: TdCheckboxProps['placement'];
validator(val: TdCheckboxProps['placement']): boolean;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxProps['value']>;
};
onChange: import("vue").PropType<TdCheckboxProps['onChange']>;
}>> & Readonly<{
onChange?: (...args: any[]) => any;
"onUpdate:checked"?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:checked" | "update:modelValue")[], import("vue").PublicProps, {
block: boolean;
borderless: boolean;
checkAll: boolean;
checked: boolean;
modelValue: boolean;
defaultChecked: boolean;
contentDisabled: boolean;
disabled: boolean;
icon: "circle" | "line" | "rectangle" | boolean | (String | ((h: typeof import('vue').h) => import("@/common").TNodeReturnValue))[];
indeterminate: boolean;
maxContentRow: number;
maxLabelRow: number;
name: string;
placement: "left" | "right";
readonly: boolean;
}, true, {}, {}, {
TNode: {
(props: {
content: any;
}): any;
props: string[];
};
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
block: {
type: BooleanConstructor;
default: boolean;
};
borderless: {
type: BooleanConstructor;
default: any;
};
checkAll: BooleanConstructor;
checked: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultChecked: BooleanConstructor;
content: {
type: import("vue").PropType<TdCheckboxProps['content']>;
};
contentDisabled: BooleanConstructor;
default: {
type: import("vue").PropType<TdCheckboxProps['default']>;
};
disabled: {
type: BooleanConstructor;
default: any;
};
icon: {
type: import("vue").PropType<TdCheckboxProps['icon']>;
default: TdCheckboxProps['icon'];
};
indeterminate: BooleanConstructor;
label: {
type: import("vue").PropType<TdCheckboxProps['label']>;
};
maxContentRow: {
type: NumberConstructor;
default: number;
};
maxLabelRow: {
type: NumberConstructor;
default: number;
};
name: {
type: StringConstructor;
default: string;
};
placement: {
type: import("vue").PropType<TdCheckboxProps['placement']>;
default: TdCheckboxProps['placement'];
validator(val: TdCheckboxProps['placement']): boolean;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxProps['value']>;
};
onChange: import("vue").PropType<TdCheckboxProps['onChange']>;
}>> & Readonly<{
onChange?: (...args: any[]) => any;
"onUpdate:checked"?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
block: boolean;
borderless: boolean;
checkAll: boolean;
checked: boolean;
modelValue: boolean;
defaultChecked: boolean;
contentDisabled: boolean;
disabled: boolean;
icon: "circle" | "line" | "rectangle" | boolean | (String | ((h: typeof import('vue').h) => import("@/common").TNodeReturnValue))[];
indeterminate: boolean;
maxContentRow: number;
maxLabelRow: number;
name: string;
placement: "left" | "right";
readonly: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
block: {
type: BooleanConstructor;
default: boolean;
};
borderless: {
type: BooleanConstructor;
default: any;
};
checkAll: BooleanConstructor;
checked: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultChecked: BooleanConstructor;
content: {
type: import("vue").PropType<TdCheckboxProps['content']>;
};
contentDisabled: BooleanConstructor;
default: {
type: import("vue").PropType<TdCheckboxProps['default']>;
};
disabled: {
type: BooleanConstructor;
default: any;
};
icon: {
type: import("vue").PropType<TdCheckboxProps['icon']>;
default: TdCheckboxProps['icon'];
};
indeterminate: BooleanConstructor;
label: {
type: import("vue").PropType<TdCheckboxProps['label']>;
};
maxContentRow: {
type: NumberConstructor;
default: number;
};
maxLabelRow: {
type: NumberConstructor;
default: number;
};
name: {
type: StringConstructor;
default: string;
};
placement: {
type: import("vue").PropType<TdCheckboxProps['placement']>;
default: TdCheckboxProps['placement'];
validator(val: TdCheckboxProps['placement']): boolean;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxProps['value']>;
};
onChange: import("vue").PropType<TdCheckboxProps['onChange']>;
}>> & Readonly<{
onChange?: (...args: any[]) => any;
"onUpdate:checked"?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:checked" | "update:modelValue")[], "change" | "update:checked" | "update:modelValue", {
block: boolean;
borderless: boolean;
checkAll: boolean;
checked: boolean;
modelValue: boolean;
defaultChecked: boolean;
contentDisabled: boolean;
disabled: boolean;
icon: "circle" | "line" | "rectangle" | boolean | (String | ((h: typeof import('vue').h) => import("@/common").TNodeReturnValue))[];
indeterminate: boolean;
maxContentRow: number;
maxLabelRow: number;
name: string;
placement: "left" | "right";
readonly: boolean;
}, {}, string, {}, {
TNode: {
(props: {
content: any;
}): any;
props: string[];
};
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
export declare const CheckboxGroup: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
borderless: BooleanConstructor;
disabled: {
type: BooleanConstructor;
default: any;
};
keys: {
type: import("vue").PropType<TdCheckboxGroupProps['keys']>;
};
max: {
type: NumberConstructor;
default: any;
};
name: {
type: StringConstructor;
default: string;
};
options: {
type: import("vue").PropType<TdCheckboxGroupProps['options']>;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxGroupProps['value']>;
default: TdCheckboxGroupProps['value'];
};
modelValue: {
type: import("vue").PropType<TdCheckboxGroupProps['value']>;
default: TdCheckboxGroupProps['value'];
};
defaultValue: {
type: import("vue").PropType<TdCheckboxGroupProps['defaultValue']>;
default: () => TdCheckboxGroupProps['defaultValue'];
};
onChange: import("vue").PropType<TdCheckboxGroupProps['onChange']>;
}>> & Readonly<{
onChange?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
"onUpdate:value"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:value")[], import("vue").PublicProps, {
borderless: boolean;
disabled: boolean;
max: number;
name: string;
readonly: boolean;
value: import("@/components").CheckboxGroupValue;
modelValue: import("@/components").CheckboxGroupValue;
defaultValue: import("@/components").CheckboxGroupValue;
}, true, {}, {}, {
Checkbox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
block: {
type: BooleanConstructor;
default: boolean;
};
borderless: {
type: BooleanConstructor;
default: any;
};
checkAll: BooleanConstructor;
checked: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultChecked: BooleanConstructor;
content: {
type: import("vue").PropType<TdCheckboxProps['content']>;
};
contentDisabled: BooleanConstructor;
default: {
type: import("vue").PropType<TdCheckboxProps['default']>;
};
disabled: {
type: BooleanConstructor;
default: any;
};
icon: {
type: import("vue").PropType<TdCheckboxProps['icon']>;
default: TdCheckboxProps['icon'];
};
indeterminate: BooleanConstructor;
label: {
type: import("vue").PropType<TdCheckboxProps['label']>;
};
maxContentRow: {
type: NumberConstructor;
default: number;
};
maxLabelRow: {
type: NumberConstructor;
default: number;
};
name: {
type: StringConstructor;
default: string;
};
placement: {
type: import("vue").PropType<TdCheckboxProps['placement']>;
default: TdCheckboxProps['placement'];
validator(val: TdCheckboxProps['placement']): boolean;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxProps['value']>;
};
onChange: import("vue").PropType<TdCheckboxProps['onChange']>;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:checked" | "update:modelValue")[], "change" | "update:checked" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
block: {
type: BooleanConstructor;
default: boolean;
};
borderless: {
type: BooleanConstructor;
default: any;
};
checkAll: BooleanConstructor;
checked: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultChecked: BooleanConstructor;
content: {
type: import("vue").PropType<TdCheckboxProps['content']>;
};
contentDisabled: BooleanConstructor;
default: {
type: import("vue").PropType<TdCheckboxProps['default']>;
};
disabled: {
type: BooleanConstructor;
default: any;
};
icon: {
type: import("vue").PropType<TdCheckboxProps['icon']>;
default: TdCheckboxProps['icon'];
};
indeterminate: BooleanConstructor;
label: {
type: import("vue").PropType<TdCheckboxProps['label']>;
};
maxContentRow: {
type: NumberConstructor;
default: number;
};
maxLabelRow: {
type: NumberConstructor;
default: number;
};
name: {
type: StringConstructor;
default: string;
};
placement: {
type: import("vue").PropType<TdCheckboxProps['placement']>;
default: TdCheckboxProps['placement'];
validator(val: TdCheckboxProps['placement']): boolean;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxProps['value']>;
};
onChange: import("vue").PropType<TdCheckboxProps['onChange']>;
}>> & Readonly<{
onChange?: (...args: any[]) => any;
"onUpdate:checked"?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
}>, {
block: boolean;
borderless: boolean;
checkAll: boolean;
checked: boolean;
modelValue: boolean;
defaultChecked: boolean;
contentDisabled: boolean;
disabled: boolean;
icon: "circle" | "line" | "rectangle" | boolean | (String | ((h: typeof import('vue').h) => import("@/common").TNodeReturnValue))[];
indeterminate: boolean;
maxContentRow: number;
maxLabelRow: number;
name: string;
placement: "left" | "right";
readonly: boolean;
}, {}, {
TNode: {
(props: {
content: any;
}): any;
props: string[];
};
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
borderless: BooleanConstructor;
disabled: {
type: BooleanConstructor;
default: any;
};
keys: {
type: import("vue").PropType<TdCheckboxGroupProps['keys']>;
};
max: {
type: NumberConstructor;
default: any;
};
name: {
type: StringConstructor;
default: string;
};
options: {
type: import("vue").PropType<TdCheckboxGroupProps['options']>;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxGroupProps['value']>;
default: TdCheckboxGroupProps['value'];
};
modelValue: {
type: import("vue").PropType<TdCheckboxGroupProps['value']>;
default: TdCheckboxGroupProps['value'];
};
defaultValue: {
type: import("vue").PropType<TdCheckboxGroupProps['defaultValue']>;
default: () => TdCheckboxGroupProps['defaultValue'];
};
onChange: import("vue").PropType<TdCheckboxGroupProps['onChange']>;
}>> & Readonly<{
onChange?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
"onUpdate:value"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
borderless: boolean;
disabled: boolean;
max: number;
name: string;
readonly: boolean;
value: import("@/components").CheckboxGroupValue;
modelValue: import("@/components").CheckboxGroupValue;
defaultValue: import("@/components").CheckboxGroupValue;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
borderless: BooleanConstructor;
disabled: {
type: BooleanConstructor;
default: any;
};
keys: {
type: import("vue").PropType<TdCheckboxGroupProps['keys']>;
};
max: {
type: NumberConstructor;
default: any;
};
name: {
type: StringConstructor;
default: string;
};
options: {
type: import("vue").PropType<TdCheckboxGroupProps['options']>;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxGroupProps['value']>;
default: TdCheckboxGroupProps['value'];
};
modelValue: {
type: import("vue").PropType<TdCheckboxGroupProps['value']>;
default: TdCheckboxGroupProps['value'];
};
defaultValue: {
type: import("vue").PropType<TdCheckboxGroupProps['defaultValue']>;
default: () => TdCheckboxGroupProps['defaultValue'];
};
onChange: import("vue").PropType<TdCheckboxGroupProps['onChange']>;
}>> & Readonly<{
onChange?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
"onUpdate:value"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:value")[], "change" | "update:modelValue" | "update:value", {
borderless: boolean;
disabled: boolean;
max: number;
name: string;
readonly: boolean;
value: import("@/components").CheckboxGroupValue;
modelValue: import("@/components").CheckboxGroupValue;
defaultValue: import("@/components").CheckboxGroupValue;
}, {}, string, {}, {
Checkbox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
block: {
type: BooleanConstructor;
default: boolean;
};
borderless: {
type: BooleanConstructor;
default: any;
};
checkAll: BooleanConstructor;
checked: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultChecked: BooleanConstructor;
content: {
type: import("vue").PropType<TdCheckboxProps['content']>;
};
contentDisabled: BooleanConstructor;
default: {
type: import("vue").PropType<TdCheckboxProps['default']>;
};
disabled: {
type: BooleanConstructor;
default: any;
};
icon: {
type: import("vue").PropType<TdCheckboxProps['icon']>;
default: TdCheckboxProps['icon'];
};
indeterminate: BooleanConstructor;
label: {
type: import("vue").PropType<TdCheckboxProps['label']>;
};
maxContentRow: {
type: NumberConstructor;
default: number;
};
maxLabelRow: {
type: NumberConstructor;
default: number;
};
name: {
type: StringConstructor;
default: string;
};
placement: {
type: import("vue").PropType<TdCheckboxProps['placement']>;
default: TdCheckboxProps['placement'];
validator(val: TdCheckboxProps['placement']): boolean;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxProps['value']>;
};
onChange: import("vue").PropType<TdCheckboxProps['onChange']>;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:checked" | "update:modelValue")[], "change" | "update:checked" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
block: {
type: BooleanConstructor;
default: boolean;
};
borderless: {
type: BooleanConstructor;
default: any;
};
checkAll: BooleanConstructor;
checked: {
type: BooleanConstructor;
default: any;
};
modelValue: {
type: BooleanConstructor;
default: any;
};
defaultChecked: BooleanConstructor;
content: {
type: import("vue").PropType<TdCheckboxProps['content']>;
};
contentDisabled: BooleanConstructor;
default: {
type: import("vue").PropType<TdCheckboxProps['default']>;
};
disabled: {
type: BooleanConstructor;
default: any;
};
icon: {
type: import("vue").PropType<TdCheckboxProps['icon']>;
default: TdCheckboxProps['icon'];
};
indeterminate: BooleanConstructor;
label: {
type: import("vue").PropType<TdCheckboxProps['label']>;
};
maxContentRow: {
type: NumberConstructor;
default: number;
};
maxLabelRow: {
type: NumberConstructor;
default: number;
};
name: {
type: StringConstructor;
default: string;
};
placement: {
type: import("vue").PropType<TdCheckboxProps['placement']>;
default: TdCheckboxProps['placement'];
validator(val: TdCheckboxProps['placement']): boolean;
};
readonly: {
type: BooleanConstructor;
default: any;
};
value: {
type: import("vue").PropType<TdCheckboxProps['value']>;
};
onChange: import("vue").PropType<TdCheckboxProps['onChange']>;
}>> & Readonly<{
onChange?: (...args: any[]) => any;
"onUpdate:checked"?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
}>, {
block: boolean;
borderless: boolean;
checkAll: boolean;
checked: boolean;
modelValue: boolean;
defaultChecked: boolean;
contentDisabled: boolean;
disabled: boolean;
icon: "circle" | "line" | "rectangle" | boolean | (String | ((h: typeof import('vue').h) => import("@/common").TNodeReturnValue))[];
indeterminate: boolean;
maxContentRow: number;
maxLabelRow: number;
name: string;
placement: "left" | "right";
readonly: boolean;
}, {}, {
TNode: {
(props: {
content: any;
}): any;
props: string[];
};
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
export default Checkbox;