Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
quantum-blocks
Commits
3016010f
Commit
3016010f
authored
Jan 03, 2023
by
徐光星
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复时间问题、修复保存时间距的问题
parent
98816ece
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
pageInfo.ts
app/model/pageInfo.ts
+1
-1
index.vue
app/web/page/editor/component/FreedomContainer/index.vue
+0
-1
No files found.
app/model/pageInfo.ts
View file @
3016010f
...
@@ -111,7 +111,7 @@ export class PageInfo extends Model<PageInfo> {
...
@@ -111,7 +111,7 @@ export class PageInfo extends Model<PageInfo> {
field
:
'
updated_at
'
,
field
:
'
updated_at
'
,
get
()
{
get
()
{
const
moment
=
require
(
'
moment
'
);
const
moment
=
require
(
'
moment
'
);
const
updatedAt
=
this
.
getDataValue
(
'
updated
A
t
'
);
const
updatedAt
=
this
.
getDataValue
(
'
updated
_a
t
'
);
return
moment
(
updatedAt
).
format
(
'
YYYY-MM-DD HH:mm:ss
'
);
return
moment
(
updatedAt
).
format
(
'
YYYY-MM-DD HH:mm:ss
'
);
},
},
})
})
...
...
app/web/page/editor/component/FreedomContainer/index.vue
View file @
3016010f
<
template
>
<
template
>
<div
class=
"freedom"
:ref=
"`freedomContainer$
{containerIndex}`" @click.stop="handleElementClick(containerIndex)">
<div
class=
"freedom"
:ref=
"`freedomContainer$
{containerIndex}`" @click.stop="handleElementClick(containerIndex)">
<div
class=
"freedom-body"
:data-index=
"containerIndex"
>
<div
class=
"freedom-body"
:data-index=
"containerIndex"
>
<video
width=
"100%"
@
loadeddata=
"videoOnload"
ref=
"videoBackground"
height=
"auto"
style=
"z-index: -10; osition: absolute; top: 0; left: 0"
v-if=
"childItem.props.freedomVideo"
:src=
"childItem.props.freedomVideo"
autoplay
loop
muted
/>
<div
v-for=
"(item, index) in childItem.child"
:style=
"transformStyle(item.commonStyle, 'container')"
:class=
"['freedom-body-item',
{ 'Fb-item_selected': curChildIndex === index }]" :key="index" @click.stop="handleElementClick(containerIndex, index)" @mousedown.stop.prevent="mousedown(index, $event)" @contextmenu.prevent.stop="show($event, containerIndex, index)">
<div
v-for=
"(item, index) in childItem.child"
:style=
"transformStyle(item.commonStyle, 'container')"
:class=
"['freedom-body-item',
{ 'Fb-item_selected': curChildIndex === index }]" :key="index" @click.stop="handleElementClick(containerIndex, index)" @mousedown.stop.prevent="mousedown(index, $event)" @contextmenu.prevent.stop="show($event, containerIndex, index)">
<component
ref=
"childComponent"
:style=
"transformStyle(item.commonStyle, 'component')"
:is=
"item.name"
v-bind=
"item.props"
></component>
<component
ref=
"childComponent"
:style=
"transformStyle(item.commonStyle, 'component')"
:is=
"item.name"
v-bind=
"item.props"
></component>
<div
class=
"freedom-body-dot"
<div
class=
"freedom-body-dot"
...
...
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