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
a3602cc7
Commit
a3602cc7
authored
Jan 03, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑可滚动, 更新封面图路由优化,导入模版过滤!visible
parent
3a9620d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
resolve.ts
src/utils/psdParser/resolve.ts
+1
-1
index.vue
src/views/Editor/Canvas/index.vue
+1
-1
ElementTemplateData.vue
src/views/Editor/Toolbar/ElementTemplateData.vue
+4
-2
No files found.
src/utils/psdParser/resolve.ts
View file @
a3602cc7
...
...
@@ -18,7 +18,7 @@ export const ResolveThumbHandler = async (psd:any)=>{
Z_INDEX
=
2000
const
item
=
_children
[
i
];
if
(
item
.
layer
.
artboard
)
{
if
(
item
.
layer
.
artboard
&&
item
.
layer
.
visible
)
{
let
cropImagePath
=
await
cropImage
(
imgBase64String
,
"image/jpeg"
,
item
.
layer
.
artboard
().
export
().
coords
)
let
imagePath
=
await
compressionThumbnail
(
cropImagePath
,
"image/jpeg"
,
600
)
imgs
.
push
(
imagePath
)
...
...
src/views/Editor/Canvas/index.vue
View file @
a3602cc7
...
...
@@ -370,7 +370,7 @@ provide(injectKeySlideScale, canvasScale)
.canvas
{
height
:
100%
;
user-select
:
none
;
overflow
:
hidden
;
/* overflow: hidden; */
background-color
:
$lightGray
;
position
:
relative
;
}
...
...
src/views/Editor/Toolbar/ElementTemplateData.vue
View file @
a3602cc7
...
...
@@ -389,19 +389,21 @@
// mainStore.setDialogForExport(type)
let
CoverImgPath
=
CoverImg
.
value
.
split
(
'/'
)
let
namePath
=
''
let
namePaths
=
''
queryObj
.
value
.
CoverImg
=
''
mainMenuVisible
.
value
=
false
isCoverImgStore
.
setIsCoverImg
(
true
)
let
datas
=
await
exportFeatureImg
(
FeatureImgRef
.
value
,
'jpeg'
,
1
,
false
,
0
)
if
(
datas
){
let
t
=
new
Date
().
getTime
()
let
name
=
new
Date
().
getTime
()
+
".jpg"
let
name
=
new
Date
().
getTime
()
+
".jp
e
g"
const
file
=
dataURLtoFile
(
datas
,
name
)
let
url
=
''
if
(
CoverImgPath
[
CoverImgPath
.
length
-
1
].
indexOf
(
'CoverImg_'
)
==-
1
){
namePath
=
`CoverImg_
${
name
}
`
}
else
{
namePath
=
CoverImgPath
[
CoverImgPath
.
length
-
1
]
namePaths
=
CoverImgPath
[
CoverImgPath
.
length
-
1
]
namePath
=
namePaths
.
split
(
'?'
)[
0
]
}
url
=
await
AliyunUpload
.
UploadAsync
(
file
,
`Feature/
${
namePath
}
?t=
${
t
}
`
)
coverImgStore
.
setCoverImg
(
url
)
...
...
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