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

83 lines
2.1 KiB
TypeScript
Raw Normal View History

2024-11-10 07:01:22 +00:00
/* eslint-disable @typescript-eslint/no-explicit-any */
import { IBaseProps } from '../_base';
/**
* @description
* button button
* loading
*/
export interface IButtonProps extends IBaseProps {
/**
* @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 15
*/
size?: number;
/**
* @description
*/
icon?: string;
/**
* @description
* @default false
*/
loading?: boolean;
/**
* @description
* @default "button"
*/
htmlType?: 'button' | 'submit' | 'reset';
/**
* @description
*/
onTap?: (event: any) => void;
/**
* @description
*/
catchTap?: (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;
}
export declare const ButtonDefaultProps: Partial<IButtonProps>;