mj-button 按钮组件 #
快捷展示 #
mj-button
按钮类型
primary unfold_more
按钮尺寸
normal unfold_more
按钮文案
按钮类型 #
查看代码
vue
<template>
<mj-button type="neutral">neutral</mj-button>
<mj-button type="primary">primary</mj-button>
<mj-button type="success">success</mj-button>
<mj-button type="warning">warning</mj-button>
<mj-button type="danger">danger</mj-button>
</template>
按钮组 #
查看代码
vue
<template>
<mj-button-group>
<mj-button type="primary">primary</mj-button>
<mj-button type="success">success</mj-button>
<mj-button type="warning">warning</mj-button>
</mj-button-group>
<br />
<mj-button-group :vertical="true">
<mj-button type="primary">primary</mj-button>
<mj-button type="success">success</mj-button>
<mj-button type="warning">warning</mj-button>
</mj-button-group>
</template>
API文档 #
Props
名称 | 类型 | 默认值 | 描述说明 | 是否必填 |
---|---|---|---|---|