riku
9 小时以前 8e3f3890e93d097df4be744648b9ac404d20a558
miniprogram_npm/tdesign-miniprogram/checkbox/checkbox.d.ts
@@ -1,4 +1,6 @@
import { SuperComponent, ComponentsOptionsType, RelationsOptions } from '../common/src/index';
import { TdCheckboxProps } from './type';
export declare type CheckboxProps = TdCheckboxProps;
export default class CheckBox extends SuperComponent {
    externalClasses: string[];
    behaviors: string[];
@@ -9,15 +11,14 @@
            type: StringConstructor;
            value: string;
        };
        borderless: {
            type: BooleanConstructor;
            value: boolean;
        };
        placement?: {
        tId: {
            type: StringConstructor;
            value?: "left" | "right";
        };
        block?: {
            type: BooleanConstructor;
            value?: boolean;
        };
        borderless?: {
            type: BooleanConstructor;
            value?: boolean;
        };
@@ -41,21 +42,13 @@
            type: BooleanConstructor;
            value?: boolean;
        };
        style?: {
            type: StringConstructor;
            value?: string;
        };
        disabled?: {
            type: BooleanConstructor;
            value?: boolean;
        };
        externalClasses?: {
            type: ArrayConstructor;
            value?: ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"];
        };
        icon?: {
            type: null;
            value?: string[] | "circle" | "rectangle" | "line";
            value?: import("./type").CheckboxIconType;
        };
        indeterminate?: {
            type: BooleanConstructor;
@@ -77,6 +70,10 @@
            type: StringConstructor;
            value?: string;
        };
        placement?: {
            type: StringConstructor;
            value?: "left" | "right";
        };
        readonly?: {
            type: BooleanConstructor;
            value?: boolean;
@@ -89,12 +86,17 @@
    data: {
        prefix: string;
        classPrefix: string;
        _disabled: boolean;
    };
    observers: {
        disabled(v: any): void;
    };
    controlledProps: {
        key: string;
        event: string;
    }[];
    methods: {
        onChange(e: WechatMiniprogram.TouchEvent): void;
        handleTap(e: WechatMiniprogram.TouchEvent): void;
        setDisabled(disabled: Boolean): void;
    };
}