Browse Source

fix(project): 修复弹窗中表单上传组件预览图片层级问题 (#8205)

将 PreviewGroupComponent 的 hidden class 替换为通过 classes.popup.root
设置更高 z-index,避免在弹窗内被遮挡
pull/8207/head
JyQAQ 1 month ago
committed by GitHub
parent
commit
44483db9af
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      apps/web-antdv-next/src/adapter/component/index.ts
  2. 2
      playground/src/adapter/component/index.ts

2
apps/web-antdv-next/src/adapter/component/index.ts

@ -295,7 +295,7 @@ async function previewImage(
return h(
PreviewGroupComponent,
{
class: 'hidden',
classes: { popup: { root: '!z-2000' } },
preview: {
open: open.value,
current: currentIndex,

2
playground/src/adapter/component/index.ts

@ -295,7 +295,7 @@ async function previewImage(
return h(
PreviewGroupComponent,
{
class: 'hidden',
classes: { popup: { root: '!z-2000' } },
preview: {
open: open.value,
current: currentIndex,

Loading…
Cancel
Save