|
|
@ -26,13 +26,9 @@ const isPublicView = false |
|
|
|
const selected = reactive<{ row?: number | null; col?: number | null }>({}) |
|
|
|
const selected = reactive<{ row?: number | null; col?: number | null }>({}) |
|
|
|
const editEnabled = ref(false) |
|
|
|
const editEnabled = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const instance: any = getCurrentInstance() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { loadData, paginationData, formattedData: data, updateRowProperty, changePage } = useViewData(meta, view) |
|
|
|
const { loadData, paginationData, formattedData: data, updateRowProperty, changePage } = useViewData(meta, view) |
|
|
|
console.log(instance) |
|
|
|
|
|
|
|
const { loadGridViewColumns, updateWidth, resizingColWidth, resizingCol } = useGridViewColumnWidth( |
|
|
|
const { loadGridViewColumns, updateWidth, resizingColWidth, resizingCol } = useGridViewColumnWidth( |
|
|
|
view, |
|
|
|
view |
|
|
|
instance.ctx.$options.__scopeId, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
onMounted(loadGridViewColumns) |
|
|
|
onMounted(loadGridViewColumns) |
|
|
|
|
|
|
|
|
|
|
@ -91,7 +87,7 @@ defineExpose({ |
|
|
|
v-for="col in fields" |
|
|
|
v-for="col in fields" |
|
|
|
:key="col.title" |
|
|
|
:key="col.title" |
|
|
|
v-xc-ver-resize |
|
|
|
v-xc-ver-resize |
|
|
|
:data-col="col.title" |
|
|
|
:data-col="col.id" |
|
|
|
@xcresize="onresize(col.id, $event)" |
|
|
|
@xcresize="onresize(col.id, $event)" |
|
|
|
@xcresizing="onXcResizing(col.title, $event)" |
|
|
|
@xcresizing="onXcResizing(col.title, $event)" |
|
|
|
@xcresized="resizingCol = null" |
|
|
|
@xcresized="resizingCol = null" |
|
|
@ -118,7 +114,7 @@ defineExpose({ |
|
|
|
// 'text-center': isCentrallyAligned(columnObj), |
|
|
|
// 'text-center': isCentrallyAligned(columnObj), |
|
|
|
// 'required': isRequired(columnObj, rowObj), |
|
|
|
// 'required': isRequired(columnObj, rowObj), |
|
|
|
}" |
|
|
|
}" |
|
|
|
:data-col="columnObj.title" |
|
|
|
:data-col="columnObj.id" |
|
|
|
@click="selectCell(rowIndex, colIndex)" |
|
|
|
@click="selectCell(rowIndex, colIndex)" |
|
|
|
@dblclick="editEnabled = true" |
|
|
|
@dblclick="editEnabled = true" |
|
|
|
> |
|
|
|
> |
|
|
|