From ebd8e55c980526cbd435b04a0eb1ad9349845783 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 5 Aug 2022 19:55:24 +0530 Subject: [PATCH 1/7] refactor/gui-v2 added galllery view --- packages/nc-gui-v2/components.d.ts | 1 + .../components/smartsheet-header/Cell.vue | 6 +- .../smartsheet-header/VirtualCell.vue | 6 +- .../components/smartsheet/Gallery.vue | 242 +++--------------- packages/nc-gui-v2/composables/useViewData.ts | 12 +- 5 files changed, 60 insertions(+), 207 deletions(-) diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 0e5864cd54..5a44075de4 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -23,6 +23,7 @@ declare module '@vue/runtime-core' { AEmpty: typeof import('ant-design-vue/es')['Empty'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] + AImage: typeof import('ant-design-vue/es')['Image'] AInput: typeof import('ant-design-vue/es')['Input'] AInputNumber: typeof import('ant-design-vue/es')['InputNumber'] AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] diff --git a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue index 26cb6cf922..4d98cf0e1d 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue @@ -20,8 +20,10 @@ useProvideColumnCreateStore(meta as Ref, column) {{ column.title }} -
- +
diff --git a/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue b/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue index 5ecb20bbab..04462d7f20 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue @@ -95,9 +95,11 @@ useProvideColumnCreateStore(meta as Ref, column) - + diff --git a/packages/nc-gui-v2/components/smartsheet/Gallery.vue b/packages/nc-gui-v2/components/smartsheet/Gallery.vue index f3173664b3..7122525e93 100644 --- a/packages/nc-gui-v2/components/smartsheet/Gallery.vue +++ b/packages/nc-gui-v2/components/smartsheet/Gallery.vue @@ -1,7 +1,8 @@ - From 6e2029071e0a9e7eb9fe377d9316bcf70699862a Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Sat, 6 Aug 2022 12:07:15 +0530 Subject: [PATCH 4/7] chore/added todo for scrolling issue in gallery --- packages/nc-gui-v2/components/smartsheet/Gallery.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nc-gui-v2/components/smartsheet/Gallery.vue b/packages/nc-gui-v2/components/smartsheet/Gallery.vue index 60a3e73b39..d896964a9d 100644 --- a/packages/nc-gui-v2/components/smartsheet/Gallery.vue +++ b/packages/nc-gui-v2/components/smartsheet/Gallery.vue @@ -52,6 +52,7 @@ const isRowEmpty = (record: any, col: any) => { } +