Merge branch '2.x' into dev

This commit is contained in:
chenjiahan
2020-10-24 18:02:50 +08:00
36 changed files with 222 additions and 162 deletions

View File

@@ -124,30 +124,3 @@ app.use(Vant);
```
> If you configured babel-plugin-import, you won't be allowed to import all components.
## Other
### Rem units
Vant use `px` as size units by defaultyou can use tools such as `postcss-pxtorem` to transform units to `rem`.
- [postcss-pxtorem](https://github.com/cuth/postcss-pxtorem)
- [lib-flexible](https://github.com/amfe/lib-flexible)
#### PostCSS Config
postcss config example:
```js
module.exports = {
plugins: {
autoprefixer: {
browsers: ['Android >= 4.0', 'iOS >= 8'],
},
'postcss-pxtorem': {
rootValue: 37.5,
propList: ['*'],
},
},
};
```