上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 89 下一页
摘要: 引言 在 Vue2 中,异步组件和路由懒加载处理使用 import 就可以很轻松实现。但是在Vue 3.x 中异步组件的使用与 Vue 2.x 完全不同了。本文就详细讲讲vue3中异步组件和路由懒加载的实现。 Vue3 异步组件/路由 一、前言 1-1.三点变化: a.异步组件声明方法的改变:Vue 阅读全文
posted @ 2023-02-21 19:58 栖木hy 阅读(1900) 评论(0) 推荐(0)
摘要: 控制台警告Runtime directive used on component with non-element root node. The directives will not function as intended. 原因 意思是自定义指令不能放到组件上,而是要放到自有的元素上 也就是这 阅读全文
posted @ 2023-02-20 21:48 栖木hy 阅读(1580) 评论(0) 推荐(0)
摘要: Vue 3 中兄弟间传值可以使用 Vuex,但小项目使用过于庞大,我们可以使用mitt进行兄弟组件间传值。 操作步骤 第一步:安装 mitt npm i mitt 第二步:创建文件(例如:eventBus.js) import mitt from 'mitt' export default mitt 阅读全文
posted @ 2023-02-20 20:45 栖木hy 阅读(480) 评论(0) 推荐(0)
摘要: element-ui中的el-form表单验证,只有在提交按钮点击时才进行验证,这样会减少消耗 其实很简单,直接在el-input上加一个属性就行:validate-event="false" Form 表单组件的表单属性都有这么一个属性 示例 <template> <el-form ref="fi 阅读全文
posted @ 2023-02-20 15:22 栖木hy 阅读(1353) 评论(0) 推荐(0)
摘要: 问题 vite 官方默认的配置,如果资源文件在assets文件夹打包后会把图片名加上hash值,但是直接通过:src="imgSrc"方式引入并不会在打包的时候解析,导致开发环境可以正常引入,打包后却不能显示的问题 这里我们先看看vite官方文档的解释: https://vitejs.bootcss 阅读全文
posted @ 2023-02-19 23:56 栖木hy 阅读(3110) 评论(0) 推荐(0)
摘要: 例如做一个边框特效 @keyframes huerotate { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rorate(360deg); } } .border{ border-bottom: 1px solid #aaa; box-s 阅读全文
posted @ 2023-02-19 23:43 栖木hy 阅读(119) 评论(0) 推荐(0)
摘要: 解决办法 append-to-body后上层就不在div在html下了,所有不能写在scoped里面,得单独写 阅读全文
posted @ 2023-02-19 23:37 栖木hy 阅读(1362) 评论(0) 推荐(0)
摘要: 问题 在vue.config.js 文件配置插件引入时,报错: ERROR Invalid options in vue.config.js: "plugins" is not allowed。 解决方法 webpack 相关的配置需要写到 configureWebpack 里,不能直接写在外面。 阅读全文
posted @ 2023-02-18 10:48 栖木hy 阅读(1231) 评论(0) 推荐(0)
摘要: 它是 Error No Entry 的缩写。 意思是:没有这样的目录条目。👉 answer from here 阅读全文
posted @ 2023-02-17 02:02 栖木hy 阅读(187) 评论(0) 推荐(0)
摘要: ### 1.打开https://www.gisinternals.com/release.php ![](https://img2023.cnblogs.com/blog/1987782/202302/1987782-20230217011516227-1149048518.png) 本人电脑是x6 阅读全文
posted @ 2023-02-17 01:27 栖木hy 阅读(2011) 评论(0) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 89 下一页