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
55a605b2
Commit
55a605b2
authored
Jan 03, 2023
by
徐光星
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/fix' into 'master'
feat: 修复时间问题、修复保存时间距的问题 See merge request
!100
parents
98816ece
1c3dbe1c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
8 deletions
+4
-8
pageInfo.ts
app/model/pageInfo.ts
+1
-1
index.ts
app/web/page/editor/component/BasicPageFormModal/index.ts
+1
-6
index.vue
app/web/page/editor/component/DynamicComponent/index.vue
+2
-0
index.vue
app/web/page/editor/component/FreedomContainer/index.vue
+0
-1
No files found.
app/model/pageInfo.ts
View file @
55a605b2
...
@@ -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/BasicPageFormModal/index.ts
View file @
55a605b2
...
@@ -119,12 +119,7 @@ export default class DynamicForm extends Vue {
...
@@ -119,12 +119,7 @@ export default class DynamicForm extends Vue {
const
imgName
=
btoa
(
`coverImage-
${
uuidv4
().
substr
(
0
,
8
)}
`
);
const
imgName
=
btoa
(
`coverImage-
${
uuidv4
().
substr
(
0
,
8
)}
`
);
const
gridEle
=
document
.
querySelector
(
'
.Dcm-container-panel
'
);
const
gridEle
=
document
.
querySelector
(
'
.Dcm-container-panel
'
);
this
.
changeStyle
(
'
forward
'
);
this
.
changeStyle
(
'
forward
'
);
const
canvas
=
await
html2canvas
(
gridEle
as
HTMLElement
,
{
useCORS
:
true
,
allowTaint
:
true
,
ignoreElements
:
(
element
:
any
)
=>
{
const
canvas
=
await
html2canvas
(
gridEle
as
HTMLElement
,
{
useCORS
:
true
,
allowTaint
:
true
});
if
(
element
.
className
.
toLowerCase
()
==
'
ignore-html2canvas-loop
'
)
{
return
element
;
}
return
false
;
}
});
this
.
changeStyle
(
'
backward
'
);
this
.
changeStyle
(
'
backward
'
);
const
base64
=
canvas
.
toDataURL
();
const
base64
=
canvas
.
toDataURL
();
const
{
data
:
{
uptoken
}
}
=
await
editorApi
.
getUpToken
();
const
{
data
:
{
uptoken
}
}
=
await
editorApi
.
getUpToken
();
...
...
app/web/page/editor/component/DynamicComponent/index.vue
View file @
55a605b2
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<p
slot=
"title"
>
{{
config
.
title
}}
</p>
<p
slot=
"title"
>
{{
config
.
title
}}
</p>
<div
class=
"dynamic-row-card"
>
<div
class=
"dynamic-row-card"
>
<img
<img
data-html2canvas-ignore=
"true"
class=
"ignore-html2canvas-loop"
class=
"ignore-html2canvas-loop"
:src=
"config.coverImage || 'http://activitystatic.q-gp.com/low_code.jpg'"
:src=
"config.coverImage || 'http://activitystatic.q-gp.com/low_code.jpg'"
/>
/>
...
@@ -27,6 +28,7 @@
...
@@ -27,6 +28,7 @@
<p
slot=
"title"
>
{{
config
.
title
}}
</p>
<p
slot=
"title"
>
{{
config
.
title
}}
</p>
<div
class=
"dynamic-row-card"
>
<div
class=
"dynamic-row-card"
>
<img
<img
data-html2canvas-ignore=
"true"
class=
"ignore-html2canvas-loop"
class=
"ignore-html2canvas-loop"
:src=
"config.coverImage || 'http://activitystatic.q-gp.com/low_code.jpg'"
:src=
"config.coverImage || 'http://activitystatic.q-gp.com/low_code.jpg'"
/>
/>
...
...
app/web/page/editor/component/FreedomContainer/index.vue
View file @
55a605b2
<
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