Back to Vant

DemoButton 按钮

packages/create-vant-cli-app/generators/vue3/src/demo-button/README.md

4.9.24759 B
Original Source

DemoButton 按钮

介绍

DemoButton 是一个示例按钮组件

引入

js
import Vue from 'vue';
import { DemoButton } from '<%= name %>';

Vue.use(DemoButton);

代码演示

基础用法

html
<demo-button type="primary" />

API

Props

参数说明类型默认值
type按钮类型stringprimary
color 1.0.0按钮颜色string-

Events

事件名说明回调参数
click点击时触发event: MouseEvent

Slots

名称说明
default默认插槽