import type { BasicType } from '../../_utils'; import type { PropType, ExtractPropTypes } from 'vue'; import type { ButtonNative } from './interface'; import type { VmSize, VmType, VmIcon, HandleMouse, VmTarget } from '../../_interface'; export declare const Props: { /** 是否加粗 */ readonly bold: BasicType; /** 是否为圆形 */ readonly circle: BasicType; /** 是否为圆角 */ readonly round: BasicType; /** 是否带有扩散效果 */ readonly spread: BasicType; /** 文字大小 */ readonly fontSize: BasicType, string | number | null>; /** 字体颜色 */ readonly fontColor: BasicType, string | null>; /** * 按钮尺寸 * * @values large middle small mini * @default null */ readonly size: BasicType, VmSize | null>; /** 是否为块级元素 */ readonly block: BasicType; /** 跳转的连接地址 */ readonly href: BasicType, string | null>; /** * 针对 href 处理的跳转方式 * * 原生属性 * * @values _blank _self _parent _top * @default _self * @see target https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/a#attr-target */ readonly target: BasicType, VmTarget | null>; /** 是否为 loading 状态 */ readonly loading: BasicType; /** 是否禁用 */ readonly disabled: BasicType; /** 自定义 loading icon */ readonly loadingIcon: BasicType, null>; /** * 按钮的类型(非自定义按钮颜色时有效) * * @values default primary success danger warning info * @default null */ readonly type: BasicType, VmType | null>; /** 是否自动获取焦点 */ readonly autofocus: BasicType; /** * 原生 name 属性 * * @see name https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/button#attr-name */ readonly name: BasicType, string | null>; /** 自定义阴影样式 */ readonly shadow: BasicType, string | null>; /** 是否为文字按钮(非自定义按钮颜色时有效) */ readonly text: BasicType; /** * 原生 type 属性 * * @values button submit reset * @default button * @see type https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/button#attr-type */ readonly nativeType: BasicType, ButtonNative | null>; /** 是否为简约的按钮(非自定义按钮颜色时有效) */ readonly simple: BasicType; /** 自定义之前的 icon */ readonly beforeIcon: BasicType, null>; /** 自定义之后的 icon */ readonly afterIcon: BasicType, null>; /** 是否为涟漪效果 */ readonly ripples: BasicType; /** 自定义涟漪效果颜色 */ readonly ripplesColor: BasicType, string | null>; /** 自定义按钮颜色 */ readonly color: BasicType, string | null>; /** 点击之后的回调函数 */ readonly onClick: BasicType, null>; }; /** button 组件 props 类型 */ export type ButtonProps = ExtractPropTypes;