mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
[breaking change] rebuild style struct (#2021)
This commit is contained in:
@@ -47,7 +47,7 @@ yarn add vant
|
||||
|
||||
```html
|
||||
<!-- 引入样式 -->
|
||||
<link rel="stylesheet" href="https://unpkg.com/vant/lib/vant-css/index.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/vant/lib/index.css">
|
||||
|
||||
<!-- 引入组件 -->
|
||||
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
|
||||
@@ -104,8 +104,7 @@ import { Button, Cell } from 'vant';
|
||||
|
||||
```js
|
||||
import Button from 'vant/lib/button';
|
||||
import 'vant/lib/vant-css/base.css';
|
||||
import 'vant/lib/vant-css/button.css';
|
||||
import 'vant/lib/button/style';
|
||||
```
|
||||
|
||||
#### 方式三. 导入所有组件
|
||||
@@ -113,7 +112,7 @@ import 'vant/lib/vant-css/button.css';
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import Vant from 'vant';
|
||||
import 'vant/lib/vant-css/index.css';
|
||||
import 'vant/lib/index.css';
|
||||
|
||||
Vue.use(Vant);
|
||||
```
|
||||
|
Reference in New Issue
Block a user