Skip to content

Commit

Permalink
fix: change drawer and modal zIndex to 2000 compatible with element-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
warmthsea committed Jan 3, 2025
1 parent 801c640 commit 8ed1c4e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/common-ui/vben-drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const [Drawer, drawerApi] = useVbenDrawer({
| contentClass | modal内容区域的class | `string` | - |
| footerClass | modal底部区域的class | `string` | - |
| headerClass | modal顶部区域的class | `string` | - |
| zIndex | 抽屉的ZIndex层级 | `number` | `1000` |
| zIndex | 抽屉的ZIndex层级 | `number` | `2000` |

::: info appendToMain

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/common-ui/vben-modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const [Modal, modalApi] = useVbenModal({
| footerClass | modal底部区域的class | `string` | - |
| headerClass | modal顶部区域的class | `string` | - |
| bordered | 是否显示border | `boolean` | `false` |
| zIndex | 弹窗的ZIndex层级 | `number` | `1000` |
| zIndex | 弹窗的ZIndex层级 | `number` | `2000` |

::: info appendToMain

Expand Down
2 changes: 1 addition & 1 deletion packages/@core/ui-kit/popup-ui/src/drawer/drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const props = withDefaults(defineProps<Props>(), {
appendToMain: false,
closeIconPlacement: 'right',
drawerApi: undefined,
zIndex: 1000,
zIndex: 2000,
});
const components = globalShareState.getComponents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const props = withDefaults(
zIndex?: number;
}
>(),
{ appendTo: 'body', showClose: true, zIndex: 1000 },
{ appendTo: 'body', showClose: true, zIndex: 2000 },
);
const emits = defineEmits<
DialogContentEmits & { close: []; closed: []; opened: [] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
const props = withDefaults(
defineProps<DialogContentProps & { class?: any; zIndex?: number }>(),
{ zIndex: 1000 },
{ zIndex: 2000 },
);
const emits = defineEmits<DialogContentEmits>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defineOptions({
const props = withDefaults(defineProps<SheetContentProps>(), {
appendTo: 'body',
zIndex: 1000,
zIndex: 2000,
});
const emits = defineEmits<
Expand Down

0 comments on commit 8ed1c4e

Please sign in to comment.