Browse Source

fix(nc-gui)/Added classname prop for GeneralOverlay

pull/3708/head
Muhammed Mustafa 2 years ago
parent
commit
030970bb66
  1. 7
      packages/nc-gui/components/general/Overlay.vue
  2. 2
      packages/nc-gui/components/smartsheet/Grid.vue

7
packages/nc-gui/components/general/Overlay.vue

@ -11,7 +11,7 @@ interface Props {
target?: TeleportProps['to'] target?: TeleportProps['to']
teleportDisabled?: TeleportProps['disabled'] teleportDisabled?: TeleportProps['disabled']
transition?: boolean transition?: boolean
lightBackground?: boolean className?: string
} }
interface Emits { interface Emits {
@ -50,10 +50,9 @@ export default {
vModel ? 'opacity-100' : 'opacity-0 pointer-events-none', vModel ? 'opacity-100' : 'opacity-0 pointer-events-none',
inline ? 'absolute' : 'fixed', inline ? 'absolute' : 'fixed',
transition ? 'transition-opacity duration-200 ease-in-out' : '', transition ? 'transition-opacity duration-200 ease-in-out' : '',
lightBackground ? 'bg-gray-100/25' : '', className,
!lightBackground ? 'bg-gray-700/75' : '',
]" ]"
class="z-100 top-0 left-0 bottom-0 right-0 bg-gray-100/25" class="z-100 top-0 left-0 bottom-0 right-0 bg-gray-700/75"
> >
<slot :is-open="vModel" /> <slot :is-open="vModel" />
</div> </div>

2
packages/nc-gui/components/smartsheet/Grid.vue

@ -381,7 +381,7 @@ onBeforeUnmount(async () => {
<template> <template>
<div class="flex flex-col h-full min-h-0 w-full"> <div class="flex flex-col h-full min-h-0 w-full">
<general-overlay :model-value="isLoading" inline transition light-background> <general-overlay :model-value="isLoading" inline transition class="!bg-gray-100/25">
<div class="flex items-center justify-center h-full w-full"> <div class="flex items-center justify-center h-full w-full">
<a-spin size="large" /> <a-spin size="large" />
</div> </div>

Loading…
Cancel
Save