Vue
vue相关
Allen056
这个作者很懒,什么都没留下…
展开
-
vue多屏幕适配
修改package.json 1、dependencies加入 "postcss-px-to-viewport": "^1.1.1", "autoprefixer": "^9.5.1" 2、引入插件 "postcss": { "plugins": { "autoprefixer": {}, "postcss-px-to-viewport": { "viewportWidth": 1600, "minPixelValue": 1原创 2021-05-20 10:36:43 · 295 阅读 · 0 评论 -
微信小程序使用npm安装三方包
记录下微信小程序使用npm安装三方包,以vant-ui为例: 1、安装npm,配置环境变量 2、切换到小程序所在目录,执行 npm init -f 3、安装依赖包 npm i @vant/weapp -S --production 4、构建npm:微信小程序开发工具勾选使用npm模块,工具–>构建npm 5、引入组件:例: "usingComponents": { "van-button": "@vant/weapp/button/index" } 6、使用组件 <van-butt原创 2021-04-08 16:36:55 · 266 阅读 · 0 评论