Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
5f24b428
Commit
5f24b428
authored
Dec 08, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 model 2
parent
ea94561d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
index.vue
src/views/Editor/EditorHeader/index.vue
+1
-1
index.vue
src/views/Editor/ExportDialog/index.vue
+6
-6
No files found.
src/views/Editor/EditorHeader/index.vue
View file @
5f24b428
...
@@ -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="'保存'"
...
...
src/views/Editor/ExportDialog/index.vue
View file @
5f24b428
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment