Skip to content
On this page

按钮 -- Button

这是按钮组件
<template>
  <div class="demo-button">
    <MButton type="primary">主要按钮</MButton>
    <MButton type="success">成功按钮</MButton>
    <MButton type="warning">警告按钮</MButton>
    <MButton type="danger">危险按钮</MButton>
    <MButton type="info">信息按钮</MButton>
  </div>
</template>

Attributes

参数说明类型可选值默认值
size尺寸stringmedium / small / minimedium
type类型stringprimary / success / warning / danger / info / textprimary
disabled是否禁用状态booleanfalse