mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
[breaking change] rebuild style struct (#2021)
This commit is contained in:
@@ -41,7 +41,7 @@ yarn add vant
|
||||
|
||||
```html
|
||||
<!-- import style -->
|
||||
<link rel="stylesheet" href="https://unpkg.com/vant/lib/vant-css/index.css" />
|
||||
<link rel="stylesheet" href="https://unpkg.com/vant/lib/index.css" />
|
||||
|
||||
<!-- import script -->
|
||||
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
|
||||
@@ -94,8 +94,7 @@ import { Button } 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';
|
||||
```
|
||||
|
||||
#### 3. Import all components
|
||||
@@ -103,7 +102,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