From 777273e3a5c9d0923e6e6b2238c4fdaec77ee68d Mon Sep 17 00:00:00 2001 From: chenxing Date: Fri, 16 Oct 2026 00:14:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(p94):=20=E3=80=8C=E6=88=91=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E3=80=8D=E7=BC=96=E8=BE=91/=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=8C=89=E9=92=AE=E6=AD=BB=E9=93=BE=E2=80=94=E2=80=94?= =?UTF-8?q?Vue=202=20=E9=A3=8E=E6=A0=BC=E6=B8=B2=E6=9F=93=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=9C=A8=20view-ui-plus=20=E4=B8=8B=20on:=20=E4=B8=8D?= =?UTF-8?q?=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 160 演练实测:填报页「我的提交」表点编辑/删除无任何反应(无 my/detail 请求、 无弹层)——Fill.vue 操作列用 h('Button', { props: {...}, on: { click } }) 的 Vue 2/view-design 语法;Vue 3 的 h() 第二参即 props,on: 被当未知属性丢弃, 按钮可渲染但点击处理器从未绑定。T7/T8 冒烟未覆盖这两颗按钮(点击断言缺位)。 - 修复:沿 tableActions 的 P51 文字链形态——operating-link/text-error div + onClick 直挂(与数据管理等页操作列同构)。全仓扫 props:/on: 渲染残留=仅此一处 (UserCheckModal 的 props: 为 Options API 合法定义)。 - 验证:vue-tsc --noEmit 干净;vite build 通过。160 侧 UI 复验随下次部署 (修复前先用 API 完成 my/edit、my/delete 行为验证,见演练报告)。 --- src/views/Fill.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/views/Fill.vue b/src/views/Fill.vue index fe21cb4..ba2c40f 100644 --- a/src/views/Fill.vue +++ b/src/views/Fill.vue @@ -374,16 +374,12 @@ const readonlyReason = computed(() => { title: '操作', key: 'actions', width: 150, + // P94:Vue 3 渲染函数不带 props/on 包装(view-ui-plus 下 on: 不绑定=按钮死链), + // 沿 tableActions 的文字链形态 operating-link,onClick 直挂 render: (_h: any, { row }: any) => { return h('div', { class: 'action-buttons' }, [ - h('Button', { - props: { type: 'text', size: 'small' }, - on: { click: () => handleEditAnswer(row) } - }, '编辑'), - h('Button', { - props: { type: 'text', size: 'small', color: 'error' }, - on: { click: () => handleDeleteAnswer(row) } - }, '删除') + h('div', { class: 'operating-link', onClick: () => handleEditAnswer(row) }, '编辑'), + h('div', { class: 'operating-link text-error', onClick: () => handleDeleteAnswer(row) }, '删除') ]); } }]" :data="myAnswers" border>