vue
不二臣_
Get thin, get beautiful, get good
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vue2+vue-cli4+elementUI项目打包部署之后icon图标展示为方块,图片路径正确却不显示问题解决
vue2+vue-cli4+elementUI项目打包部署之后icon图标展示为方块,图片路径正确却不显示问题解决原创 2022-09-23 15:36:14 · 2361 阅读 · 1 评论 -
vue配置环境变量,通过环境变量配置devServer.proxy和axios的baseURL
vue配置环境变量,通过环境变量配置devServer.proxy和axios的baseURL原创 2022-09-09 16:52:20 · 3340 阅读 · 0 评论 -
vue兼容ie11(@babel/polyfill、core-js@3两种方式)
vue兼容ie11(@babel/polyfill、core-js@3两种方式)原创 2022-09-09 11:20:46 · 18323 阅读 · 8 评论 -
vue/cli 5.0.1 +vue 2.7.1 兼容ie11
vue兼容ie原创 2022-08-26 17:45:30 · 1803 阅读 · 0 评论 -
vue中watch监听对象中某个属性
immediate 和 handler watch 的用法有个特点,就是当值第一次绑定的时候,不会执行监听函数,只有值发生改变才会执行。如果我们需要在最初绑定值得时候也执行函数,就需要用到 immediate 属性。'currentParams.selOrgId': { handler(newV, oldV) { console.log("watch", newV, oldV) }, immediate: true} deep 深度监听 当需..原创 2022-04-14 13:53:44 · 32417 阅读 · 2 评论 -
VUE3中使用scss
1.安装scss所需要的安装包cnpm install node-sass sass-loader style-loader -S2.在vue.config.js中配置pluginOptions: { 'style-resources-loader': { preProcessor: 'scss', patterns: [] } }const { defineConfig } = require('@vue/cli-s原创 2022-02-25 17:48:57 · 10346 阅读 · 1 评论 -
vue3[Vue warn]: Component provided template option but runtime compilation is not supported in this
[Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue.原因是目前版本的vue组件提供了模板选项,但在此版本的Vue中不支持运行时编译所以需要配置运行时编译器的 Vue 构建版本在vue.config.js配置一个属性runtimeCompiler: trueconst { defineConfig } = require('@v原创 2022-02-25 16:17:33 · 2991 阅读 · 0 评论 -
vue3报错error Component name “Layout“ should always be multi-word vue/multi-word-component-names
vue3的Component命名规范不能为单个词,修改为多个单词原创 2022-02-25 14:25:31 · 15012 阅读 · 0 评论 -
局域网/内网使用webpack构建项目报错vue-cli · Failed to download repo vuejs-templateswebpack
vue-cli · Failed to download repo vuejs-templateswebpackvue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=connect ETIMEDOUT公司使用内网,所以需要给npm、cnpm设置代理在创建vue项目时,可能需要翻墙,所以报错如下:解决方法:下载webpack到原创 2022-02-24 18:12:58 · 473 阅读 · 0 评论 -
VUE-CLI不同版本共存
管理npm版本我使用的是nvm管理npm的镜像源registry使用npm registry manager管理Vue CLI版本目前没发现什么工具,Vue CLI只是用来构建项目的,只要项目构建起来电脑上没有Vue CLI也可以运行起来Vue CLI版本很多,之前电脑上安装的是旧版本的Vue CLI,现在想尝试新版本,又不想删除旧版本,就涉及了不同版本的Vue CLI共存问题。解决方案:不使用全局安装,配置环境变量1.新建一个文件夹下安装新版本的Vue CLI我新建的是VUE-CL原创 2022-02-24 17:21:50 · 1674 阅读 · 0 评论 -
vue实现鼠标拖拽事件(并解决拖拽与点击事件的冲突问题)
html部分<body><div class="new-wrapper fullPage" ref="fullPage" id="app" v-cloak> <div class="returnTop" ref="returnTop" @click="returnTop" v-show="showReturnTop" @mousedown.stop="dragMove" > </div></div>&l原创 2020-11-05 16:06:49 · 8150 阅读 · 1 评论
分享