[breaking change] rebuild style struct (#2021)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<img src="https://travis-ci.org/youzan/vant.svg?branch=master" alt="Build Status" />
|
||||
<img src="https://img.shields.io/npm/dt/vant.svg" alt="downloads" />
|
||||
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=flat-square&label=JS%20gzip%20size" alt="JS Gzip Size" />
|
||||
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant-css/index.css?compression=gzip&style=flat-square&label=CSS%20gzip%20size" alt="CSS Gzip Size" />
|
||||
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/index.css?compression=gzip&style=flat-square&label=CSS%20gzip%20size" alt="CSS Gzip Size" />
|
||||
<img src="https://isitmaintained.com/badge/open/youzan/vant.svg" alt="issue" />
|
||||
<img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg" alt="Coverage Status" />
|
||||
</p>
|
||||
@@ -53,7 +53,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>
|
||||
@@ -95,8 +95,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
|
||||
@@ -104,7 +103,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