diff --git a/dbm-ui/frontend/src/components/editable-table/Column.vue b/dbm-ui/frontend/src/components/editable-table/Column.vue index 4dba48360e..186caa101c 100644 --- a/dbm-ui/frontend/src/components/editable-table/Column.vue +++ b/dbm-ui/frontend/src/components/editable-table/Column.vue @@ -19,7 +19,10 @@ content: disabledTips, disabled: !disabledTips, }" - class="bk-editable-table-field-cell"> + class="bk-editable-table-field-cell" + :style="{ + width: `${tableContext?.columnSizeConfig.value[columnKey]?.renderWidth}px`, + }">
number; } - const hasOwn = (obj: Record, key: string) => Object.prototype.hasOwnProperty.call(obj, key); - export interface IContext { instance: ComponentInternalInstance; el: HTMLElement; @@ -119,7 +121,22 @@ }> = Symbol('EditableTableColumnKey');