diff --git a/yunkes/src/components/YkStaffDetailModal.vue b/yunkes/src/components/YkStaffDetailModal.vue index bbd1615..307e2a8 100644 --- a/yunkes/src/components/YkStaffDetailModal.vue +++ b/yunkes/src/components/YkStaffDetailModal.vue @@ -14,6 +14,8 @@ interface Col { align?: 'left' | 'center' | 'right' /** el-table-column formatter (row, column, cellValue, index) → display string. */ formatter?: (row: any, column: any, cellValue: any, index: number) => string + /** 该列单元格可点:渲染为 link button,点击触发回调(用于 modal 内跳聊天等)。 */ + onClick?: (row: any) => void } const props = defineProps<{ modelValue: boolean @@ -72,7 +74,13 @@ watch( :align="c.align" :formatter="c.formatter" show-overflow-tooltip - /> + > + +