feat(table): 调整表格操作列宽度并统一文字链接间距
- /business/project-apply 主表操作列宽度固定为 220,移除 applyTableMenuWidth 调用 - /business/temporary-credit-limit 通过传入 menuWidth prop 固定操作列宽度为 180 - /base/common-address 操作列宽度由 220 降至 180 - /business/process-config 操作列宽度由 320 调整为 180,修复末尾语法错误 - /vehicle/insurance-record 操作列宽度先降至 140 后改回 160,后全部车/船务管理模块记录页统一为 180 - 多个车/船务管理模块相关 option 文件及 vue 文件操作列宽统调为 180 - 新增 business-crud-page 组件 menuWidth prop,支持外部传值控制操作列宽度 - 全站操作列文字链接去除 el-link 默认 margin,避免和 gap 叠加导致文字间距过宽 - 优化操作列按钮过多时自动换行展示逻辑,确保按钮不被裁切
This commit is contained in:
@@ -3871,6 +3871,11 @@ export default {
|
||||
type: Object,
|
||||
default: () => ({ column: [] }),
|
||||
},
|
||||
// 可选:固定操作列宽度;不传则按按钮数量自动估算(沿用既有逻辑)
|
||||
menuWidth: {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -3918,7 +3923,11 @@ export default {
|
||||
defaultDialogButtons: null,
|
||||
contractCreateActionLoading: '',
|
||||
transportPlanCreateActionLoading: '',
|
||||
option: this.cloneOption(this.crudOption, estimateMenuButtonCount(this.config)),
|
||||
option: (() => {
|
||||
const opt = this.cloneOption(this.crudOption, estimateMenuButtonCount(this.config));
|
||||
if (this.menuWidth != null) opt.menuWidth = this.menuWidth;
|
||||
return opt;
|
||||
})(),
|
||||
selectedProjectId: '',
|
||||
projectOptions: [],
|
||||
projectLoading: false,
|
||||
|
||||
Reference in New Issue
Block a user