fix(create-vant-cli-app): incorrect compiler-sfc name

This commit is contained in:
chenjiahan
2020-11-29 10:50:56 +08:00
parent 5ac8aa7f7a
commit d36d23a4c7
25 changed files with 3 additions and 6 deletions
@@ -0,0 +1,43 @@
# DemoButton 按钮
### 介绍
DemoButton 是一个示例按钮组件
### 引入
```js
import Vue from 'vue';
import { DemoButton } from '<%= name %>';
Vue.use(DemoButton);
```
## 代码演示
### 基础用法
```html
<demo-button type="primary" />
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 |
| ------------- | -------- | -------- | --------- |
| type | 按钮类型 | _string_ | `primary` |
| color `1.0.0` | 按钮颜色 | _string_ | - |
### Events
| 事件名 | 说明 | 回调参数 |
| ------ | ---------- | ------------ |
| click | 点击时触发 | event: Event |
### Slots
| 名称 | 说明 |
| ------- | -------- |
| default | 默认插槽 |