update JTable修改

This commit is contained in:
赵霄
2023-08-25 15:49:26 +08:00
parent 731e320a23
commit b6c2b702e4
3 changed files with 533 additions and 436 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ export default {
// 如果不需要配置冻结列,就按表头本身传的参数决定固定列
const fixed = this.needSettingColumnHideOrFreeze ? this.settingColumnsObj.freeze.includes(key) : col.fixed
col.hide = this.settingColumnsObj.hide.includes(key)
col.fixed = key === actionKey ? 'right' : fixed
col.fixed = fixed
// 如果是字符串就转换成数字(因为实现拖拽,单位只能是px)
col.width = col.width && parseInt(col.width + '')
// 如果没有最小宽度就获取统一设置的最小宽度