sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
58 lines (57 loc) • 1.9 kB
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
export interface ButtonProps {
rootStyle?: StyleValue;
rootClass?: string;
type?: 'default' | 'pale' | 'mild' | 'outline' | 'text' | 'pale-text';
theme?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'neutral';
size?: 'mini' | 'small' | 'medium' | 'large';
round?: boolean;
square?: boolean;
disabled?: boolean;
loading?: boolean;
loadingType?: 'clock' | 'circular';
color?: string;
background?: string;
block?: boolean;
inline?: boolean;
icon?: string;
iconFamily?: string;
iconSize?: string;
formType?: string;
openType?: string;
appParameter?: string;
hoverStopPropagation?: boolean;
lang?: string;
scope?: string;
sessionFrom?: string;
sendMessageTitle?: string;
sendMessagePath?: string;
sendMessageImg?: string;
showMessageCard?: boolean;
groupId?: string;
guildId?: string;
publicId?: string;
}
export declare const defaultButtonProps: () => DefaultProps<ButtonProps>;
export interface ButtonSlots {
default?(props: Record<string, never>): any;
}
export interface ButtonEmits {
(e: 'click', event: any): void;
(e: 'getphonenumber', event: any): void;
(e: 'getAuthorize', event: any): void;
(e: 'followLifestyle', event: any): void;
(e: 'getuserinfo', event: any): void;
(e: 'error', event: any): void;
(e: 'opensetting', event: any): void;
(e: 'launchapp', event: any): void;
(e: 'contact', event: any): void;
(e: 'chooseavatar', event: any): void;
(e: 'agreeprivacyauthorization', event: any): void;
(e: 'addgroupapp', event: any): void;
(e: 'chooseaddress', event: any): void;
(e: 'chooseinvoicetitle', event: any): void;
(e: 'subscribe', event: any): void;
(e: 'login', event: any): void;
}