![](https://img-blog.csdnimg.cn/20190927151043371.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
vue
文章平均质量分 81
vue
呀呀夫斯基
这个作者很懒,什么都没留下…
展开
-
从零开始的<vue2项目脚手架>搭建:vite+vue2+eslint
自己搭建一个项目初始化的脚手架。只需要执行 npm init lily-cli 就可以自动创建 vite+vue2+eslint 项目。原创 2024-06-12 13:34:13 · 773 阅读 · 0 评论 -
prosemirror error - Applying a mismatched transaction
vue3 project,prosemirror 报错:Uncaught RangeError: Applying a mismatched transaction原创 2023-10-13 10:25:09 · 282 阅读 · 0 评论 -
vue3 笔记
vue3笔记:watchEffect 的起源;getCurrentInstance; props原创 2023-03-30 10:26:29 · 254 阅读 · 0 评论 -
已有项目将 vue2.6 升级为 2.7
已有项目将 vue 2.6 升级为 2.7 的步骤&注意事项原创 2022-07-08 14:05:04 · 8887 阅读 · 0 评论 -
vue computed 使用避坑
其实不是 computed 的坑,是我自己没弄清原理瞎用,导致出现各种问题。。<template> <section> <input type="button" value="查看三个list的值" @click="lookOneLook" /> <div> list1: <span v-for="(o, index) in list1" :key="'list1' + index">原创 2021-07-07 11:32:00 · 1056 阅读 · 0 评论 -
vue 中 computed 、created 、mounted 的先后顺序
先看实例<template> <section> {{ c }} {{ c }} <input type="button" value="点我" @click="handleClick" /> </section></template><script>export default { computed: { b() { console.log("computed b");原创 2021-07-07 10:02:05 · 5146 阅读 · 2 评论 -
解决<el-select>单选、多选切换时出现的bug
问题描述使用 element-ui。页面中有一个 select,可切换单选和多选,使用 v-if 控制会出错(用 v-show 控制则不会出错)如下图:单选选择pear,切换到多选,pear还在代码:<template> <section> <section style="margin-bottom: 10px"> <el-radio v-model="isMultiple" :label="false">单选</el-原创 2021-07-06 10:53:11 · 3927 阅读 · 12 评论 -
vue 父级组件向动态组件传递slot(多层组件传递 slot)
vue 父级组件向动态组件传递slot需求描述多层组件 A->B->CB中有动态组件 <component :is="动态组件" />,根据情况在C1 C2 C3(统称为C)中切换A要经由B向C传递slot错误写法、原因错误写法:(伪代码)<!-- 组件A --><组件B> <template v-slot:buttons> buttons </template></组件B><!-- 组件B原创 2021-06-29 16:28:11 · 6243 阅读 · 0 评论 -
vue2 源码思路理解
记录自己学习 vue2 源码的过程原创 2021-06-18 17:10:41 · 509 阅读 · 1 评论 -
vue2 源码中的技巧
记录在学习 vue2 源码的过程中,发现的技巧原创 2021-06-18 17:09:47 · 166 阅读 · 0 评论 -
vue2 踩坑笔记
记录学习、使用 vue2 时踩的坑和解决办法原创 2020-02-12 14:52:59 · 305 阅读 · 1 评论 -
在 .vue 单文件组件中引入 css 文件,并且样式只作用于当前组件的元素
先复习一下局部样式的写法<style scoped>.example { color: red;}</style><template> <div class="example">hi</div></template>转换结果:<style>.example[data-v-f3f3eg9...原创 2020-02-11 21:25:31 · 2526 阅读 · 1 评论 -
使用 v-for ,删除列表中的一项后,视图渲染出错
问题描述使用 v-for 渲染列表, 用 index 作为 key<tr v-for="(item,index) in list" :key="index"> <td>{{item.label}}</td> <td> <input type="button" value="删除" @click="do...原创 2020-02-11 13:18:14 · 1127 阅读 · 0 评论