摘要:
报错信息如下: Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking 阅读全文
posted @ 2023-03-24 17:59
蓓蕾心晴
阅读(5079)
评论(0)
推荐(0)
摘要:
背景 实际开发项目中,有些时候我们需要通过全局注册多个自定义组件,但是每个组件都导入一次,将会导致代码很冗余。 实现方案 customComponents/index.js const modules = import.meta.glob("@/customComponents/*.vue"); c 阅读全文
posted @ 2023-03-24 15:02
蓓蕾心晴
阅读(2226)
评论(0)
推荐(0)
摘要:
在开发的过程中,外层盒子高度不确定的情况下,想要跟内层图片高度保持一致,内层图片高度设为width:100%;height:auto;外层box高度也是width:100%;height:auto.为什么会比图片本身到高度超出去一部分呢?外层box如何可以跟内层不确定高度的图片高度保持一致呢? <! 阅读全文
posted @ 2023-03-24 11:40
蓓蕾心晴
阅读(191)
评论(0)
推荐(0)

浙公网安备 33010602011771号