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