fix: 将全部业务抽屉提升为全局全高侧栏
This commit is contained in:
1 parent
13bb6dc83b
commit
f3657ea0a6
8 files changed
+68
-54
No files matched your search
@@ -1,13 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { inject } from 'vue'
|
||||
import { NButton, NDrawer, NDrawerContent } from 'naive-ui'
|
||||
import { Settings2, X } from '@lucide/vue'
|
||||
import { workspaceHostKey } from './workspaceContext'
|
||||
|
||||
/** 低频配置、批量动作与回执在抽屉中查看,开关面板不影响页面查询和后台任务。 */
|
||||
/** 所有业务抽屉挂到 body,以完整视口为边界;开关面板不影响草稿、页面查询和后台任务。 */
|
||||
withDefaults(defineProps<{ title: string; label?: string; hasReceipt?: boolean }>(), { label: '操作与回执' })
|
||||
const open = defineModel<boolean>('open', { default: false })
|
||||
const host = inject(workspaceHostKey, undefined)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -23,10 +20,10 @@ const host = inject(workspaceHostKey, undefined)
|
||||
</NButton>
|
||||
<NDrawer
|
||||
v-model:show="open"
|
||||
:to="host ?? undefined"
|
||||
to="body"
|
||||
width="min(960px, 100%)"
|
||||
placement="right"
|
||||
:block-scroll="false"
|
||||
:block-scroll="true"
|
||||
display-directive="show"
|
||||
class="workspace-tools-drawer"
|
||||
:aria-label="title"
|
||||
|
||||
Reference in new issue
Block a user