refactor(table): 更新表格组件的单元格合并配置和事件处理
- 将所有表格的单元格合并方法从数组格式 [rowspan, colspan] 改为对象格式 { rowspan, colspan }
- 为 vxe-table 组件添加 checkbox-config 配置以支持复选框保留选择功能
- 移除复选框的 :reserve-selection 属性并改用 checkbox-config 配置
- 全局注册 VxeTableCompat 组件来归一化 cell-click 和 current-change 事件参数
- 更新技术执行和技术审批页面的表格组件配置和操作逻辑
- 优化
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<h4 class="form-header h4">
|
||||
基本信息
|
||||
@@ -42,7 +42,7 @@
|
||||
<h4 class="form-header h4">
|
||||
角色信息
|
||||
</h4>
|
||||
<vxe-table
|
||||
<vxe-table :checkbox-config="{ reserve: true }"
|
||||
ref="roleRef"
|
||||
v-loading="loading"
|
||||
:row-key="getRowKey"
|
||||
@@ -62,7 +62,7 @@
|
||||
</vxe-column>
|
||||
<vxe-column
|
||||
type="checkbox"
|
||||
:reserve-selection="true"
|
||||
|
||||
width="55"
|
||||
/>
|
||||
<vxe-column
|
||||
|
||||
Reference in New Issue
Block a user