修改点离线样式

This commit is contained in:
guanj
2025-11-03 10:36:11 +08:00
parent 99ad7a3021
commit a7a88e6706
11 changed files with 1225 additions and 12 deletions

View File

@@ -0,0 +1,19 @@
<template>
<mt-preview-zl ref="MtPreviewRef" @on-event-call-back="onEventCallBack"></mt-preview-zl>
</template>
<script setup lang="ts">
import { MtPreviewZl } from '@/export'
import { onMounted, ref } from 'vue'
import { ElMessage } from 'element-plus'
const MtPreviewRef = ref<InstanceType<typeof MtPreviewZl>>()
const onEventCallBack = (type: string, item_id: string) => {
console.log(type, item_id)
if (type == 'test-dialog') {
ElMessage.success(`获取到了id:${item_id}`)
}
}
onMounted(() => {
MtPreviewRef.value?.setImportJson(JSON.parse(sessionStorage.getItem('exportJson') as any))
})
</script>