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>