Browse Source

fix: Removed lazy loading of expanded form for decreasing opening expanded form in mobile

pull/6498/head
Muhammed Mustafa 1 year ago
parent
commit
280747de2a
  1. 32
      packages/nc-gui/components/smartsheet/grid/index.vue

32
packages/nc-gui/components/smartsheet/grid/index.vue

@ -237,23 +237,21 @@ onMounted(() => {
/> />
</Suspense> </Suspense>
<Suspense> <SmartsheetExpandedForm
<LazySmartsheetExpandedForm v-if="expandedFormOnRowIdDlg"
v-if="expandedFormOnRowIdDlg" :key="routeQuery.rowId"
:key="routeQuery.rowId" v-model="expandedFormOnRowIdDlg"
v-model="expandedFormOnRowIdDlg" :row="{ row: {}, oldRow: {}, rowMeta: {} }"
:row="{ row: {}, oldRow: {}, rowMeta: {} }" :meta="meta"
:meta="meta" :state="expandedFormRowState"
:state="expandedFormRowState" :row-id="routeQuery.rowId"
:row-id="routeQuery.rowId" :view="view"
:view="view" show-next-prev-icons
show-next-prev-icons :first-row="getExpandedRowIndex() === 0"
:first-row="getExpandedRowIndex() === 0" :last-row="getExpandedRowIndex() === data.length - 1"
:last-row="getExpandedRowIndex() === data.length - 1" @next="navigateToSiblingRow(NavigateDir.NEXT)"
@next="navigateToSiblingRow(NavigateDir.NEXT)" @prev="navigateToSiblingRow(NavigateDir.PREV)"
@prev="navigateToSiblingRow(NavigateDir.PREV)" />
/>
</Suspense>
<Suspense> <Suspense>
<LazyDlgBulkUpdate <LazyDlgBulkUpdate

Loading…
Cancel
Save