mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(create-app): should set name in docs
This commit is contained in:
parent
3baca25725
commit
1766f7f483
@ -4,8 +4,8 @@
|
||||
|
||||
```bash
|
||||
# 通过 npm 安装
|
||||
npm i vant -S
|
||||
npm i <%= name %> -S
|
||||
|
||||
# 通过 yarn 安装
|
||||
yarn add vant
|
||||
yarn add <%= name %>
|
||||
```
|
||||
|
@ -1,16 +1,16 @@
|
||||
# MyButton 按钮
|
||||
# DemoButton 按钮
|
||||
|
||||
### 介绍
|
||||
|
||||
MyButton 是一个示例按钮组件
|
||||
DemoButton 是一个示例按钮组件
|
||||
|
||||
### 引入
|
||||
|
||||
``` javascript
|
||||
import Vue from 'vue';
|
||||
import { MyButton } from 'demo-ui';
|
||||
import { DemoButton } from '<%= name %>';
|
||||
|
||||
Vue.use(MyButton);
|
||||
Vue.use(DemoButton);
|
||||
```
|
||||
|
||||
## 代码演示
|
||||
|
Loading…
x
Reference in New Issue
Block a user