UNPKG

rtaro-ui

Version:
65 lines (46 loc) 1.43 kB
import { MouseEvent, ComponentClass } from 'react' import { CommonEventFunction } from '@rtarojs/components/types/common' import AtComponent from './base' export interface AtButtonProps extends AtComponent { itemData?: object disabled?: boolean readOnly?: boolean htmlType?: 'submit' | 'button' | 'reset' icon?: string loading?: boolean shape?: 'circle-outline' | 'circle' | 'round' size?: 'small' | 'xsmiddle' | 'smiddle' | 'middle' | 'large' inline?: boolean type?: 'default' | 'primary' | 'plain' | 'ghost' | 'dashed' | 'danger' | 'image' backgroundImg?: string bubble?: boolean onClick?: CommonEventFunction full?: boolean // start Button props openType?: | 'contact' | 'share' | 'getUserInfo' | 'getPhoneNumber' | 'launchApp' | 'openSetting' | 'feedback' | 'getRealnameAuthInfo' | 'contactShare' | 'getAuthorize' lang?: string sessionFrom?: string sendMessageTitle?: string sendMessagePath?: string sendMessageImg?: string showMessageCard?: boolean appParameter?: string onGetUserInfo?: CommonEventFunction onContact?: CommonEventFunction onGetPhoneNumber?: CommonEventFunction onError?: CommonEventFunction onOpenSetting?: CommonEventFunction // end Button props } declare const AtButton: ComponentClass<AtButtonProps> export default AtButton