riku
9 小时以前 8e3f3890e93d097df4be744648b9ac404d20a558
miniprogram_npm/tdesign-miniprogram/checkbox-group/type.d.ts
@@ -1,11 +1,17 @@
export interface TdCheckboxGroupProps {
    style?: {
        type: StringConstructor;
        value?: string;
import { CheckboxIconType } from '../checkbox/index';
import { KeysType } from '../common/common';
export interface TdCheckboxGroupProps<T = CheckboxGroupValue> {
    borderless?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    disabled?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    keys?: {
        type: ObjectConstructor;
        value?: KeysType;
    };
    max?: {
        type: NumberConstructor;
@@ -19,13 +25,17 @@
        type: ArrayConstructor;
        value?: Array<CheckboxOption>;
    };
    readonly?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    value?: {
        type: ArrayConstructor;
        value?: CheckboxGroupValue;
        value?: T;
    };
    defaultValue?: {
        type: ArrayConstructor;
        value?: CheckboxGroupValue;
        value?: T;
    };
}
export declare type CheckboxOption = string | number | CheckboxOptionObj;
@@ -33,6 +43,7 @@
    label?: string;
    value?: string | number;
    disabled?: boolean;
    icon?: CheckboxIconType;
    checkAll?: true;
}
export declare type CheckboxGroupValue = Array<string | number>;
export declare type CheckboxGroupValue = Array<string | number | boolean>;