Skip to content

button 按钮

二次封装按钮组件,且使用相同的组件名替换全局的 a-button 组件

Usage

<template>
<a-button color="success">成功按钮</a-button>
<a-button color="error">错误按钮</a-button>
<a-button color="warning">警告按钮</a-button>
</template>

Props

属性类型默认值说明
color'error','warning', 'success'-按钮的颜色场景状态颜色,
preIconstring-按钮文本前图标,参考 Icon 组件
postIconstring-按钮文本后图标,参考 Icon 组件
iconSizenumber14按钮图标大小