![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
weixin_42220130
这个作者很懒,什么都没留下…
展开
-
uniapp组件之tab选项卡滑动切换功能实现 vue2版本+vue3版本
uniapp组件之tab选项卡滑动切换功能实现,本文结合实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧。转载 2024-06-03 13:38:13 · 307 阅读 · 0 评论 -
vue报错Method “watch“ has type “object“ in the component definition. Did you refere
报错: Method “watch” has type “object” in the component definition. Did you reference the function Method “watch” has type “object” in the component definition. Did you reference the function correctly?vue 中使用 watch 出现了如下的报错的原因分析。转载 2023-11-03 15:10:33 · 1059 阅读 · 0 评论 -
Vue中@change和@input什么时候被调用?
焦点离开输入框到输入框外触发@change=“c()”输入框有内容调用@input=“i()”@input 输入框内容发生变化时触发。@change 焦点离开输入框触发。原创 2022-11-30 15:31:25 · 1087 阅读 · 0 评论 -
Vue如何把多个对象合并到一个数组里?
【代码】Vue如何把多个对象合并到一个数组里?原创 2022-09-01 18:13:26 · 3456 阅读 · 0 评论 -
vue 一行代码实现nav切换
实现思路:动态添加class,active类名,vue 一行代码实现nav切换。转载 2022-08-30 15:39:19 · 214 阅读 · 0 评论 -
Error in render: “TypeError: Cannot read property ‘0‘ of undefined“?
渲染的时候,对象的属性值不存在。加一个v-if判断下即可。原创 2022-08-22 19:55:10 · 102 阅读 · 0 评论 -
Vue中$emit的用法
西瓜鱼仔 2020.01.08 09:39:43。Vue中$emit的用法。转载 2022-08-19 17:47:28 · 109 阅读 · 0 评论 -
vue插件没有vue选项卡
总是出现这个,没有vue那一个tab一番折腾后,我放弃了,然后发现老师的vue是在右边这个地方我就打开我的双箭头看里面有啥欧吼,有了问题完美解决原创 2022-05-16 09:58:06 · 276 阅读 · 0 评论 -
Errors compiling template: Cannot use v-for on stateful component root element because it renders mu
解决方法:在元素外面再套一个元素包裹住(因为template里面第一个view是模板作用)包裹前包裹后<template> <view> <view class="questionDetail" v-for="(item,index) in detail" :key="index" > <text class="questionDetail-title">标题</text>原创 2021-04-12 14:04:13 · 647 阅读 · 0 评论 -
position:fixed固定后禁止底层元素上下滑动
用一个view把代码包起来,当模态层出来时给它添加height:100%;position: absolute;overflow: hidden;模态框消失时去掉样式<view class="box" :class={"fixedHeight:xxx===xxx"}> <view>内容<view> <view>弹窗<view></view><style>.fixedHeight { height:100%;转载 2021-02-19 17:59:17 · 2201 阅读 · 0 评论 -
uniapp gitignore
打开.gitignore文件添加一条/unpackage执行命令git rm -r --cached .git add .git commit -m "update gitignore"其他https://www.jianshu.com/p/dc1a6f190be6?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendationhttps://blo原创 2021-02-02 12:01:03 · 850 阅读 · 0 评论 -
vue 中 key 值有什么作用?
在列表渲染时使用key属性在列表渲染时使用key属性相信大多数Vue开发者接触到key属性的时候是使用v-for进行列表渲染的时候,如果不使用key属性,Vue会产生警告,那么在这个时候key属性的作用是什么呢?官方文档中说:当 Vue.js 用v-for正在更新已渲染过的元素列表时,它默认用“就地复用”策略。如果数据项的顺序被改变,Vue 将不会移动 DOM 元素来匹配数据项的顺序, 而是简单复用此处每个元素,并且确保它在特定索引下显示已被渲染过的每个元素。假设Vue实例的data属性中有一转载 2020-12-03 10:55:29 · 724 阅读 · 0 评论