会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
埃菲尔上的加菲猫
博客园
首页
新随笔
联系
订阅
管理
2025年11月5日
el-table根据内容调整列宽
摘要: <el-table-column label="所属区域" align="center" prop="areaList" :width="calculateWidth('areaList')"> <template slot-scope="scope"> <span v-if="scope.row.
阅读全文
posted @ 2025-11-05 09:19 埃菲尔上的加菲猫
阅读(16)
评论(0)
推荐(0)
2025年10月24日
数组对象去重后再拼接
摘要: // 示例数据 const arr1 = [ { id: 1, name: 'Alice', age: 25 }, { id: 2, name: 'Bob', age: 30 } ]; const arr2 = [ { id: 2, name: 'Bob', age: 30 }, // 重复 { i
阅读全文
posted @ 2025-10-24 11:07 埃菲尔上的加菲猫
阅读(8)
评论(0)
推荐(0)
2025年6月23日
uniapp 下拉框 可搜索 可创建条目
摘要: 1.https://ext.dcloud.net.cn/plugin?id=13078 dcloud下载插件(不包含创建条目) / 文件里边有上传 2.使用 <zxz-uni-data-select v-model="CPData.dishUnit" :filterable="true" :loca
阅读全文
posted @ 2025-06-23 17:21 埃菲尔上的加菲猫
阅读(134)
评论(0)
推荐(0)
2025年6月19日
echart折线图点击事件包括任意位置
摘要: echarts 点击柱状图触发的事件 // myChart.on('click', function (params) { // let data = { // type:"age", // index:params.dataIndex // } // that.$emit('isShowCurre
阅读全文
posted @ 2025-06-19 11:12 埃菲尔上的加菲猫
阅读(115)
评论(0)
推荐(0)
2025年6月11日
uniap页面跳转传参
摘要: 1.普通传参 uni.navigateTo({ url:'/nextPages/work/detailPages/inspectBZ?id=' + val.id }) 接收参数 onLoad(options){ this.initData(options.id) }, 2.对象格式 需要进行编码 u
阅读全文
posted @ 2025-06-11 09:48 埃菲尔上的加菲猫
阅读(26)
评论(0)
推荐(0)
2025年6月6日
uniapp 模块设置overflow:auto/scroll-view滑动与下拉刷新onPullDownRefresh冲突
摘要: 解决方式一: 在下拉模块添加@touchmove.stop @touch.stop 此方式为网上搜索结果,没有成功,可能是由于我的overflow是一个组件中的内容,onPullDownRefresh在父组件中触发,没有具体试过 方式二:在模块滑动时@scroll="pullDownClose" 触
阅读全文
posted @ 2025-06-06 10:33 埃菲尔上的加菲猫
阅读(388)
评论(0)
推荐(0)
2025年5月30日
cron表达式转换
摘要: 安装: npm install cronstrue --save 引入: import cronstrue from "cronstrue/i18n"; 使用: cronstrue.toString(this.cron,{ locale: "zh_CN"}) 注释:vue-cron 一周是从周日开始
阅读全文
posted @ 2025-05-30 15:54 埃菲尔上的加菲猫
阅读(66)
评论(0)
推荐(0)
2025年5月16日
uniapp实现非h5程序时,script如何调用外部链接
摘要: 需要使用renderjs区分逻辑层和视图层 <template> //通过监听 实现逻辑层 向视图层传值 //:change:userData="agent.getUserData" userData:逻辑层的值传给视图层 agent:视图层的module getUserData:视图层监听逻辑层的
阅读全文
posted @ 2025-05-16 15:49 埃菲尔上的加菲猫
阅读(42)
评论(0)
推荐(0)
2025年4月28日
el-cascader任意一级选项和懒加载组合使用,选中前面的radio按钮时无法触发懒加载
摘要: <el-cascader ref="refHandle" v-model="formData.filesUrl" clearable :options="filesOptions" :props="filesProps" placeholder="请选择文件地址" class="width-360"
阅读全文
posted @ 2025-04-28 11:33 埃菲尔上的加菲猫
阅读(165)
评论(0)
推荐(0)
2025年2月8日
el-upload上传视频,并且可以预览(使用非自动上传方式上传文件)
摘要: video预览本地文件需要将文件地址转换 页面部分: <div class="imgVideo"> <span>采集图片/视频</span> <el-upload :multiple="false" :limit="limitNum" action="" :on-change="handleEdit
阅读全文
posted @ 2025-02-08 10:55 埃菲尔上的加菲猫
阅读(717)
评论(0)
推荐(0)
下一页
公告