Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2020-09-28 11:46:26 +08:00
72 changed files with 259 additions and 243 deletions

View File

@@ -31,7 +31,7 @@ npm i vant@next -S
yarn add vant@next
```
> Tips: Vue 3 项目请安装 Vant 3.0,参见 [issue#7035](https://github.com/youzan/vant/issues/7035)
> Tips: Vue 3 项目请安装 Vant 3.0,参见 [issue#7035](https://github.com/youzan/vant/issues/7035)
### 示例工程
@@ -85,7 +85,7 @@ module.exports = {
import { Button } from 'vant';
```
> 如果你在使用 TypeScript可以使用 [ts-import-plugin](https://github.com/Brooooooklyn/ts-import-plugin) 实现按需引入
> Tips: 如果你在使用 TypeScript可以使用 [ts-import-plugin](https://github.com/Brooooooklyn/ts-import-plugin) 实现按需引入
### 方式二. 手动按需引入组件
@@ -109,7 +109,7 @@ const app = createApp();
app.use(Vant);
```
> 配置按需引入后,将不允许直接导入所有组件
> Tips: 配置按需引入后,将不允许直接导入所有组件
### 方式四. 通过 CDN 引入
@@ -170,7 +170,7 @@ module.exports = {
};
```
> 在配置 postcss-loader 时,应避免 ignore node_modules 目录,否则将导致 Vant 样式无法被编译
> Tips: 在配置 postcss-loader 时,应避免 ignore node_modules 目录,否则将导致 Vant 样式无法被编译
### 在桌面端使用