riku
2026-04-02 3282e95db0207ee133d1e98d9771dec9d83b0fc4
miniprogram_npm/tdesign-miniprogram/button/type.d.ts
@@ -1,7 +1,6 @@
import { LoadingProps } from '../loading/index';
import { SizeEnum } from '../common/common';
export interface TdButtonProps {
    tId?: {
    appParameter?: {
        type: StringConstructor;
        value?: string;
    };
@@ -14,64 +13,20 @@
        value?: string;
    };
    customDataset?: {
        type: ObjectConstructor;
        value?: any;
        type: null;
        value?: null;
    };
    disabled?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    externalClasses?: {
        type: ArrayConstructor;
        value?: ['t-class', 't-class-icon', 't-class-loading'];
    };
    ghost?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    icon?: {
        type: null;
        value?: string | object;
    };
    loading?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    loadingProps?: {
        type: ObjectConstructor;
        value?: LoadingProps;
    };
    shape?: {
        type: StringConstructor;
        value?: 'rectangle' | 'square' | 'round' | 'circle';
    };
    size?: {
        type: StringConstructor;
        value?: SizeEnum;
    };
    theme?: {
        type: StringConstructor;
        value?: 'default' | 'primary' | 'danger';
    };
    type?: {
        type: StringConstructor;
        value?: 'submit' | 'reset';
    };
    variant?: {
        type: StringConstructor;
        value?: 'base' | 'outline' | 'text';
    };
    openType?: {
        type: StringConstructor;
        value?: 'contact' | 'share' | 'getPhoneNumber' | 'getUserInfo' | 'launchApp' | 'openSetting' | 'feedback' | 'chooseAvatar' | 'agreePrivacyAuthorization';
    };
    hoverClass?: {
        type: StringConstructor;
        value?: string;
    };
    hoverStopPropagation?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    hoverStartTime?: {
        type: NumberConstructor;
@@ -81,15 +36,35 @@
        type: NumberConstructor;
        value?: number;
    };
    hoverStopPropagation?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    icon?: {
        type: null;
        value?: string | object;
    };
    lang?: {
        type: StringConstructor;
        value?: 'en' | 'zh_CN' | 'zh_TW';
    };
    sessionFrom?: {
        type: StringConstructor;
        value?: string;
    loading?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    sendMessageTitle?: {
    loadingProps?: {
        type: ObjectConstructor;
        value?: LoadingProps;
    };
    openType?: {
        type: StringConstructor;
        value?: 'contact' | 'share' | 'getPhoneNumber' | 'getUserInfo' | 'launchApp' | 'openSetting' | 'feedback' | 'chooseAvatar' | 'agreePrivacyAuthorization';
    };
    phoneNumberNoQuotaToast?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    sendMessageImg?: {
        type: StringConstructor;
        value?: string;
    };
@@ -97,16 +72,40 @@
        type: StringConstructor;
        value?: string;
    };
    sendMessageImg?: {
    sendMessageTitle?: {
        type: StringConstructor;
        value?: string;
    };
    appParameter?: {
    sessionFrom?: {
        type: StringConstructor;
        value?: string;
    };
    shape?: {
        type: StringConstructor;
        value?: 'rectangle' | 'square' | 'round' | 'circle';
    };
    showMessageCard?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    size?: {
        type: StringConstructor;
        value?: 'extra-small' | 'small' | 'medium' | 'large';
    };
    tId?: {
        type: StringConstructor;
        value?: string;
    };
    theme?: {
        type: StringConstructor;
        value?: 'default' | 'primary' | 'danger' | 'light';
    };
    type?: {
        type: StringConstructor;
        value?: 'submit' | 'reset';
    };
    variant?: {
        type: StringConstructor;
        value?: 'base' | 'outline' | 'dashed' | 'text';
    };
}