VUE问题清单
泽亓
这个作者很懒,什么都没留下…
展开
-
如何修改el-table中鼠标悬浮或经过列表时的背景颜色
首先,给el-table起个class别名,例如 table-color;原创 2023-09-01 17:33:19 · 1270 阅读 · 1 评论 -
vue中AB组件互相调用时,提示Unknown custom element xxx - did you register the component correctly For recursive
vue组件互相调用时,提示Unknown custom element xxx - did you register the component correctly For recursive compon。在A组件中引用B组件,B组件又需要使用A组件.我们常常使用ref来命名这个组件的名称,但是通过this.refs.B组件时,会提示命名未注册.原创 2023-08-21 14:20:01 · 92 阅读 · 0 评论 -
如何修改el-input在禁用下的字体颜色和大小
important;//修改输入框文字颜色。通过深度选择器取修改,并且一定是-webkit-text-fill-color属性修改颜色。原创 2023-08-21 14:18:51 · 1702 阅读 · 1 评论 -
Avoid mutating a prop directly since the value will be overwritten whenever the parent component
在子组件需要改变父组件值的地方,通过 this.$emit("isPreview", true)通知父组件修改值。解释:避免直接更改道具,因为每当父组件重新渲染时,该值都会被覆盖。相反,使用基于道具值的数据或计算属性。原创 2023-08-14 15:07:09 · 17933 阅读 · 0 评论