Browse Source

feat(gui-v2): add skeleton img while loading

pull/2972/head
braks 2 years ago
parent
commit
4f9fd9ef98
  1. 1
      packages/nc-gui-v2/components.d.ts
  2. 8
      packages/nc-gui-v2/components/cell/attachment/Modal.vue

1
packages/nc-gui-v2/components.d.ts vendored

@ -45,6 +45,7 @@ declare module '@vue/runtime-core' {
ASelect: typeof import('ant-design-vue/es')['Select']
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
ASkeleton: typeof import('ant-design-vue/es')['Skeleton']
ASkeletonImage: typeof import('ant-design-vue/es')['SkeletonImage']
ASpin: typeof import('ant-design-vue/es')['Spin']
ASubMenu: typeof import('ant-design-vue/es')['SubMenu']
ASwitch: typeof import('ant-design-vue/es')['Switch']

8
packages/nc-gui-v2/components/cell/attachment/Modal.vue

@ -122,6 +122,14 @@ onKeyDown('Escape', () => {
{{ item.title }}
</div>
</div>
<div v-if="isLoading" class="flex flex-col gap-1">
<a-card class="nc-attachment-item group">
<div class="nc-attachment h-full w-full flex items-center justify-center">
<a-skeleton-image class />
</div>
</a-card>
</div>
</div>
</div>
</a-modal>

Loading…
Cancel
Save