polish file preview drawer

This commit is contained in:
ekko
2026-05-22 19:04:15 +08:00
committed by ekko
parent bf74745b83
commit 4223014e0c
12 changed files with 201 additions and 22 deletions
@@ -12,6 +12,16 @@ vi.mock('vue-i18n', () => ({
}))
vi.mock('naive-ui', () => ({
NDrawer: {
props: ['show'],
template: '<div v-if="show"><slot /></div>',
},
NDrawerContent: {
template: '<section><slot /></section>',
},
NSpin: {
template: '<div><slot /></div>',
},
useMessage: () => ({
error: vi.fn(),
success: vi.fn(),