Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
digitalPerson-fe
Project
Project
Details
Activity
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
digitalPerson
digitalPerson-fe
Commits
37546bd0
Commit
37546bd0
authored
Oct 11, 2024
by
Dazzle Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 最近创作封面图比例
parent
4eaad353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
recent-creation.vue
src/views/workbench/components/recent-creation.vue
+8
-1
No files found.
src/views/workbench/components/recent-creation.vue
View file @
37546bd0
...
...
@@ -14,6 +14,8 @@ interface CreationTemplateInfoItem {
modifiedTime
:
string
draftName
:
string
pageLayout
:
ScreenType
width
:
number
height
:
number
}
const
router
=
useRouter
()
...
...
@@ -45,6 +47,8 @@ function getRecentCreationList() {
coverUrl
:
item
.
coverUrl
,
taskType
:
item
.
taskType
,
pageLayout
:
item
.
pageLayout
,
width
:
item
.
width
,
height
:
item
.
height
,
}))
fetchCreationTemplateInfoListLoading
.
value
=
false
...
...
@@ -103,7 +107,10 @@ function handleToCreation(draftId: number) {
<img
class=
"z-1 relative object-cover transition-[scale] duration-300 ease-in-out hover:scale-110"
:class=
"
templateInfoItem.pageLayout === ScreenType.LANDSCAPE ? 'aspect-[16/9]' : 'aspect-[9/16] h-full'
templateInfoItem.pageLayout === ScreenType.LANDSCAPE ||
templateInfoItem.width > templateInfoItem.height
? 'aspect-[16/9]'
: 'aspect-[9/16] h-full'
"
:src=
"templateInfoItem.coverUrl"
alt=
"cover"
...
...
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