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
2b442b6f
Commit
2b442b6f
authored
Mar 19, 2021
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 修改保存未生效、引用赋值bug、编辑页布局异常
parent
3f163cd3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
index.ts
app/web/page/editor/component/BasicPageFormModal/index.ts
+0
-1
index.ts
app/web/page/editor/component/DynamicComponent/index.ts
+4
-4
index.ts
app/web/page/editor/component/DynamicForm/index.ts
+1
-1
index.vue
app/web/page/editor/view/dashboard/index.vue
+3
-0
No files found.
app/web/page/editor/component/BasicPageFormModal/index.ts
View file @
2b442b6f
...
...
@@ -38,7 +38,6 @@ export default class DynamicForm extends Vue {
}
handleSubmit
(
type
)
{
if
(
this
.
formCustom
.
isPublish
)
{
return
;
}
this
.
$refs
.
formCustom
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
if
(
type
===
'
save
'
)
{
...
...
app/web/page/editor/component/DynamicComponent/index.ts
View file @
2b442b6f
import
{
Component
,
Vue
,
Prop
,
Watch
}
from
'
vue-property-decorator
'
;
import
FreedomContainer
from
'
../../component/FreedomContainer/index.vue
'
;
import
{
kebabCase
,
chunk
,
flatten
}
from
'
lodash
'
;
import
{
kebabCase
,
chunk
,
flatten
,
cloneDeep
}
from
'
lodash
'
;
import
{
State
}
from
'
vuex-class
'
;
import
{
v4
as
uuid
}
from
'
uuid
'
;
...
...
@@ -31,7 +31,6 @@ export default class DynamicComponent extends Vue {
dragstart
(
event
,
eleName
)
{
this
.
$emit
(
'
dragstart
'
);
const
id
=
uuid
().
slice
(
19
);
const
pointY
=
eleName
===
'
freedom-container
'
?
360
:
126
;
const
{
compontObj
,
page
}
=
this
.
genrateCom
(
eleName
);
if
(
eleName
.
includes
(
'
template
'
))
{
event
.
dataTransfer
.
setData
(
'
text
'
,
JSON
.
stringify
({
...
...
@@ -54,14 +53,15 @@ export default class DynamicComponent extends Vue {
const
bussinessEleConfig
=
Object
.
values
(
this
.
eleConfigMap
).
reduce
((
pre
,
cur
)
=>
pre
.
concat
(
cur
.
children
),
[]);
const
rawEleConfig
=
this
.
type
===
'
business
'
?
bussinessEleConfig
:
this
.
eleConfig
;
const
eleConfig
=
flatten
(
rawEleConfig
).
find
(
cfg
=>
cfg
.
eleName
===
eleName
);
const
{
title
,
config
,
value
,
commonStyle
,
page
}
=
eleConfig
;
const
{
title
,
config
,
value
,
commonStyle
,
page
}
=
cloneDeep
(
eleConfig
)
;
const
id
=
uuid
().
slice
(
19
);
const
pointH
=
eleName
===
'
freedom-container
'
?
360
:
105
;
return
{
compontObj
:
{
id
,
name
:
eleName
,
title
,
point
:
{
x
:
0
,
y
:
0
,
w
:
this
.
colNum
,
h
:
105
,
i
:
id
},
point
:
{
x
:
0
,
y
:
0
,
w
:
this
.
colNum
,
h
:
pointH
,
i
:
id
},
schame
:
config
,
props
:
{...
value
},
commonStyle
...
...
app/web/page/editor/component/DynamicForm/index.ts
View file @
2b442b6f
...
...
@@ -292,7 +292,7 @@ export default class DynamicForm extends Mixins(ContextMenuMixin, DynamicFormMix
case
'
horizontal
'
:
left
=
ceil
(
divide
(
subtract
(
containerW
,
eleW
),
2
),
2
);
break
;
case
'
full
'
:
case
'
width
'
:
case
'
height
'
:
EventBus
.
$emit
(
'
resizedChildEvent
'
,
type
);
EventBus
.
$emit
(
'
resizedChildEvent
'
,
type
);
break
;
default
:
break
;
}
this
.
updatePageInfo
({
containerIndex
:
this
.
curEleIndex
,
childIndex
:
this
.
curChildIndex
,
data
:
{
...
elements
,
commonStyle
:
{
...
elements
.
commonStyle
,
left
,
top
}
}
});
...
...
app/web/page/editor/view/dashboard/index.vue
View file @
2b442b6f
...
...
@@ -52,6 +52,9 @@
}
&-container {
height: calc(100% - 48px);
&-left {
height: 100%;
}
&-middle {
height: 100%;
background: #f0f2f5;
...
...
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