jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/es/Button/props.d.ts

86 lines
2.4 KiB
TypeScript
Raw Normal View History

2024-12-01 11:56:54 +00:00
import { IBaseProps } from '../_util/base';
2024-11-10 07:01:22 +00:00
/**
* @description
* button button
* loading
*/
export interface IButtonProps extends IBaseProps {
2024-12-01 11:56:54 +00:00
/**
* @description
* @default default
*/
type?: 'default' | 'primary' | 'text';
/**
* @description
* @default false
*/
disabled?: boolean;
/**
* @description
*/
activeClassName?: string;
/**
* @description
*/
subText?: string;
/**
* @description
* @default false
*/
inline?: boolean;
/**
* @description
* @default medium
*/
size?: 'small' | 'medium' | 'large';
/**
* @description
*/
icon?: string;
/**
* @description
* @default false
*/
loading?: boolean;
/**
* @description
* @default false
*/
danger?: boolean;
/**
* @description
* @default button
*/
formType?: 'button' | 'submit' | 'reset';
/**
* @description
*/
onTap?: (event: any) => void;
/**
* @description
*/
catchTap?: (event: any) => void;
/**
* @description
*/
onDisabledTap?: (event: any) => void;
/**
* @description idopen-type="lifestyle"
*/
publicId?: string;
/**
* @description
*/
openType?: string;
/**
* @description openType getAuthorize
*/
scope?: string;
onGetAuthorize?: (event: any) => void;
onFollowLifestyle?: (event: any) => void;
onError?: (event: any) => void;
onGetUserInfo?: (event: any) => void;
onGetPhoneNumber?: (event: any) => void;
2024-11-10 07:01:22 +00:00
}
export declare const ButtonDefaultProps: Partial<IButtonProps>;