fix(create-app): should set name in docs

This commit is contained in:
陈嘉涵 2020-01-18 08:09:42 +08:00
parent 3baca25725
commit 1766f7f483
2 changed files with 6 additions and 6 deletions

View File

@ -4,8 +4,8 @@
```bash ```bash
# 通过 npm 安装 # 通过 npm 安装
npm i vant -S npm i <%= name %> -S
# 通过 yarn 安装 # 通过 yarn 安装
yarn add vant yarn add <%= name %>
``` ```

View File

@ -1,16 +1,16 @@
# MyButton 按钮 # DemoButton 按钮
### 介绍 ### 介绍
MyButton 是一个示例按钮组件 DemoButton 是一个示例按钮组件
### 引入 ### 引入
``` javascript ``` javascript
import Vue from 'vue'; import Vue from 'vue';
import { MyButton } from 'demo-ui'; import { DemoButton } from '<%= name %>';
Vue.use(MyButton); Vue.use(DemoButton);
``` ```
## 代码演示 ## 代码演示