Commit 5f24b428 authored by zhengke's avatar zhengke

新增 model 2

parent ea94561d
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<IconUpload class="icon" /> <IconUpload class="icon" />
</div> </div>
</div> </div>
<div class="menu-item" v-tooltip="'导出'" @click="setDialogForExport('pptx')"> <div class="menu-item" v-tooltip="'导出'" @click="setDialogForExport('image')">
<IconDownload class="icon" /> <IconDownload class="icon" />
</div> </div>
<!-- <el-button type="danger" v-tooltip="'保存'" <!-- <el-button type="danger" v-tooltip="'保存'"
......
...@@ -36,20 +36,20 @@ const { dialogForExport } = storeToRefs(mainStore) ...@@ -36,20 +36,20 @@ const { dialogForExport } = storeToRefs(mainStore)
const setDialogForExport = mainStore.setDialogForExport const setDialogForExport = mainStore.setDialogForExport
const tabs: TabItem[] = [ const tabs: TabItem[] = [
{ key: 'pptist', label: '导出 pptist 文件' }, // { key: 'pptist', label: '导出 pptist 文件' },
{ key: 'pptx', label: '导出 PPTX' }, // { key: 'pptx', label: '导出 PPTX' },
{ key: 'image', label: '导出图片' }, { key: 'image', label: '导出图片' },
{ key: 'json', label: '导出 JSON' }, // { key: 'json', label: '导出 JSON' },
{ key: 'pdf', label: '打印 / 导出 PDF' }, { key: 'pdf', label: '打印 / 导出 PDF' },
] ]
const currentDialogComponent = computed<unknown>(() => { const currentDialogComponent = computed<unknown>(() => {
const dialogMap = { const dialogMap = {
'image': ExportImage, 'image': ExportImage,
// 'json': ExportJSON, 'json': ExportJSON,
'pdf': ExportPDF, 'pdf': ExportPDF,
// 'pptx': ExportPPTX, 'pptx': ExportPPTX,
// 'pptist': ExportSpecificFile, 'pptist': ExportSpecificFile,
} }
if (dialogForExport.value) return dialogMap[dialogForExport.value] || null if (dialogForExport.value) return dialogMap[dialogForExport.value] || null
return null return null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment