|
|
|
@ -19,7 +19,7 @@ export function useGridViewColumnWidth(view: Ref<(GridType & { id?: string }) |
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
|
// todo : update type in swagger
|
|
|
|
|
() => [gridViewCols, resizingCol, resizingColWidth, columns], |
|
|
|
|
[gridViewCols, resizingCol, resizingColWidth], |
|
|
|
|
() => { |
|
|
|
|
let style = '' |
|
|
|
|
for (const c of columns?.value || []) { |
|
|
|
@ -49,6 +49,9 @@ export function useGridViewColumnWidth(view: Ref<(GridType & { id?: string }) |
|
|
|
|
|
loadCss() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** when columns changes(create/delete) reload grid columns */ |
|
|
|
|
watch(columns, loadGridViewColumns) |
|
|
|
|
|
|
|
|
|
const updateWidth = (id: string, width: string) => { |
|
|
|
|
if (gridViewCols?.value?.[id]) { |
|
|
|
|
gridViewCols.value[id].width = width |
|
|
|
|