button-md

明动前端pc组件

Usage no npm install needed!

<script type="module">
  import buttonMd from 'https://cdn.skypack.dev/button-md';
</script>

README

1、使用方法:

​npm install button-md -S

​在入口函数里面引入并全局使用

​import Button from 'button-md'

​Vue.use(Button ); 在页面直接使用 2、参数说明:

参数 说明 类型 可选值 默认值
size 尺寸 string medium / small / mini
type 类型 string primary / success / warning / danger / info / text
plain 是否朴素按钮 boolean false
round 是否圆角按钮 boolean false
circle 是否圆形按钮 boolean false
loading 是否加载中状态 boolean false
disabled 是否禁用状态 boolean false
icon 图标类名 string
autofocus 是否默认聚焦 boolean false
native-type 原生 type 属性 string button / submit / reset button