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
170b9422
Commit
170b9422
authored
Dec 06, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 生成图 bug
parent
1a1d9b7b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
slides.ts
src/store/slides.ts
+1
-1
ElementTemplateData.vue
src/views/Editor/Toolbar/ElementTemplateData.vue
+4
-4
No files found.
src/store/slides.ts
View file @
170b9422
...
...
@@ -47,7 +47,7 @@ export const useSlidesStore = defineStore('slides', {
}],
// 幻灯片页面数据 slides
slideIndex
:
0
,
// 当前页面索引
viewportRatio
:
0.7069
,
// 可视区域比例,默认16:9 0.5625
layoutSlides
:
slides
,
// 所有模版数据
layoutSlides
:
[]
,
// 所有模版数据
}),
getters
:
{
...
...
src/views/Editor/Toolbar/ElementTemplateData.vue
View file @
170b9422
...
...
@@ -128,7 +128,7 @@
</div>
<!-- 生成封面图 -->
<div
style=
"opacity: 0;position:
absolute;left: 100px;top: 0;bottom: 0
;z-index: -1;"
<div
style=
"opacity: 0;position:
fixed;left: 100px;top: 0;bottom: 0;overflow: auto
;z-index: -1;"
v-if=
"model&&model==1&&slides.length>0&&slideIndex>=0"
>
<div
class=
"export-img-dialog"
>
<div
class=
"thumbnails-view"
>
...
...
@@ -186,7 +186,7 @@
const
coverImgStore
=
useScreenStore
()
const
isCoverImgStore
=
useScreenStore
()
const
{
model
,
ConfigId
,
TemplateDataSource
,
TemplateType
,
CoverImg
,
isCoverImg
,
TempId
}
=
storeToRefs
(
useScreenStore
())
const
{
model
,
ConfigId
,
TemplateDataSource
,
TemplateType
,
CoverImg
,
isCoverImg
,
TempId
,
SourceLoading
}
=
storeToRefs
(
useScreenStore
())
const
mainStore
=
useMainStore
()
const
mainMenuVisible
=
ref
(
false
)
...
...
@@ -314,8 +314,8 @@
// 所有数据源
const
AllDataSource
=
()
=>
{
setNewDatasList
(
datas
.
DataSource
)
getPageType
()
if
(
SourceLoading
.
value
)
setNewDatasList
(
datas
.
DataSource
)
//
getPageType()
datas
.
DataSource
.
DataSourceOverlay
=
!
datas
.
DataSource
.
DataSourceOverlay
return
if
(
slides
.
value
.
elements
&&
slides
.
value
.
elements
.
length
==
0
){
...
...
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