2026年4月17日
摘要: ` × <!-- PDF (使用 embed 或 iframe) --> <iframe v-else-if="type 'pdf'" :src="fileUrl" class="preview-media" frameborder="0" ></iframe> <!-- 视频 --> <video 阅读全文
posted @ 2026-04-17 17:50 jv_coder 阅读(2) 评论(0) 推荐(0)
摘要: ` {{ uploadText }} {{ tip }} <!-- 拖拽模式默认区域 --> <template v-else-if="drag && !$slots.default"> <div class="drag-area"> <i class="el-icon-upload"></i> < 阅读全文
posted @ 2026-04-17 17:49 jv_coder 阅读(2) 评论(0) 推荐(0)
  2026年3月3日
摘要: 给内层(子级)的 el-dialog 加上 append-to-body 属性,让内层弹窗直接挂载到 下,脱离外层 Dialog 的 DOM 层级限制,从而正确计算 z-index 阅读全文
posted @ 2026-03-03 16:37 jv_coder 阅读(7) 评论(0) 推荐(0)
  2026年2月25日
摘要: 点击查看代码 <template> <el-dialog title="发货单" :visible.sync="dialogVisible" :close-on-click-modal="false" custom-class="packing-dialog" width="47%" :before 阅读全文
posted @ 2026-02-25 16:07 jv_coder 阅读(4) 评论(0) 推荐(0)
  2026年1月12日
摘要: <!-- RichTextDiff.vue --> <template> <div class="rich-text-diff" v-html="diffedHtml"></div> </template> <script> // 引入字符级差异比对库,这是实现精确比对的基石[citation:2] 阅读全文
posted @ 2026-01-12 13:35 jv_coder 阅读(6) 评论(0) 推荐(0)
摘要: 点击查看代码 <template> <div> <div v-for="(part, index) in diffResult" :key="index" :class="{ 'text-added': part.added, 'text-removed': part.removed, 'text- 阅读全文
posted @ 2026-01-12 13:30 jv_coder 阅读(6) 评论(0) 推荐(0)
  2025年12月16日
摘要: 如果在 Dialog 打开前修改了表单数据,初始值会被覆盖,导致重置异常 this.dialogVisible = true; this.$nextTick(() => { this.formData.name = 'AA'; }); 阅读全文
posted @ 2025-12-16 15:06 jv_coder 阅读(4) 评论(0) 推荐(0)
  2025年11月26日
摘要: 问题:el-dialog中的下拉选项与el-selct长度不一致 此时在el-dialog增加v-if可实现统一 <el-dialog title="确认" v-if="confirmVisible" :visible.sync="confirmVisible" destroy-on-close @ 阅读全文
posted @ 2025-11-26 17:19 jv_coder 阅读(16) 评论(0) 推荐(0)
  2025年11月25日
摘要: 1.检查appid是否正确, 2.确认使用的scope 网页授权合法的scope只能是snsapi_base或snsapi_userinfo 网站应用扫码登录才使用snsapi_login 阅读全文
posted @ 2025-11-25 17:02 jv_coder 阅读(19) 评论(0) 推荐(0)
  2025年11月12日
摘要: 增加以下代码: this.$nextTick(() => { this.$refs.pageTable.doLayout(); }) 实现表格重新布局 阅读全文
posted @ 2025-11-12 14:34 jv_coder 阅读(15) 评论(0) 推荐(0)