摘要: 怎么使用 v-model 子组件 $attrs @input 调用组件: <WangEditor v-model="form.desc"></WangEditor> 封装组件: <div style="border: 1px solid #ccc;"> <Toolbar/> <Editor v-bi 阅读全文
posted @ 2024-01-24 15:58 躺尸的大笨鸟 阅读(132) 评论(0) 推荐(0) 编辑
摘要: @click.native 小程序不能使用 只能在根节点绑定事件,使用$emit(), 监听子组件的emit事件 阅读全文
posted @ 2024-01-24 15:49 躺尸的大笨鸟 阅读(14) 评论(0) 推荐(0) 编辑
摘要: <scroll-view @scrolltolower="scrollBottom"> <product-list :goodspage="goodspage"></product-list> </scroll-view> scrollBottom() { console.log('scroll b 阅读全文
posted @ 2024-01-24 15:45 躺尸的大笨鸟 阅读(84) 评论(0) 推荐(0) 编辑
摘要: ::-webkit-scrollbar { width: 0; height: 0; } 阅读全文
posted @ 2024-01-24 15:05 躺尸的大笨鸟 阅读(18) 评论(0) 推荐(0) 编辑
摘要: mouseenter 事件的作用与 CSS 伪类 :hover 非常相似。 MouseLeave: MouseEnter: 当鼠标在一个元素本身或者其子元素上移动时,mouseover 事件在该元素上触发。 MouseOut: MouseOver: https://developer.mozilla 阅读全文
posted @ 2023-12-06 10:37 躺尸的大笨鸟 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 为什么父高度固定,子元素超出父元素高度,不是从父元素的边框超出, 而是上下都会超出 设置了flex??? 2. 组件怎么定义,插槽是重复利用css吗 插槽多级传值, 阅读全文
posted @ 2023-11-22 10:26 躺尸的大笨鸟 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 隐藏canvas,position:fixed;left:100% <canvas :style="{width:canvasWidth,height:canvasHeight}" style="position:fixed;left:100%;" canvas-id="myCanvas" ></c 阅读全文
posted @ 2023-11-22 10:25 躺尸的大笨鸟 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 提升state?what?how?why? 兄弟组件之间怎么共享state? onClick='fn()'会立即调用,传参使用onClick='() => fn(id)' 提前返回一些东西 ()的意义 state不应在组件中改变 state三部曲:1.定义它 2.使用它 3.更新它 类似vue中的s 阅读全文
posted @ 2023-11-16 18:58 躺尸的大笨鸟 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 找到用户的setting文件,修改 prettier.enable": true, 的值,重启vscode 阅读全文
posted @ 2023-10-28 18:13 躺尸的大笨鸟 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 重写提交的历史记录, 更改head之后的提交会被抛弃 git reset 修改head的位置 git reset --hard 对工作树的任何修改都被删除 git reset --soft 将所有文件更改为要提交的修改 撤销git add git reset <file> git revert 阅读全文
posted @ 2023-10-26 16:12 躺尸的大笨鸟 阅读(3) 评论(0) 推荐(0) 编辑