chore: use useWindowSize in convertVw (#9854)

This commit is contained in:
neverland
2021-11-13 18:45:07 +08:00
committed by GitHub
parent d5be481eab
commit b8729d8ffb
8 changed files with 43 additions and 26 deletions

View File

@@ -45,13 +45,19 @@ Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源
## 安装
在现有项目中使用 Vant 时,可以通过 `npm` 进行安装:
```bash
# Vue 2 项目,安装 Vant 2
npm i vant@2
# Vue 3 项目,安装 Vant 3
npm i vant@3
```
当然,你也可以通过 `yarn``pnpm` 进行安装:
```bash
# 通过 yarn 安装
yarn add vant@3