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
8d594c76
Commit
8d594c76
authored
Nov 11, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/good' into 'master'
Fix/good See merge request
!46
parents
32a0d570
2e23dcc4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
index.ts
app/web/page/editor/component/OperationPanel/index.ts
+7
-0
index.vue
app/web/page/editor/component/OperationPanel/index.vue
+2
-2
index.ts
app/web/page/store/modules/editor/index.ts
+1
-1
config.local.ts
config/config.local.ts
+4
-4
No files found.
app/web/page/editor/component/OperationPanel/index.ts
View file @
8d594c76
...
@@ -94,6 +94,13 @@ export default class OperationPanel extends Mixins(TransformStyleMixin) {
...
@@ -94,6 +94,13 @@ export default class OperationPanel extends Mixins(TransformStyleMixin) {
//
//
}
}
fixGridKey
(
item
)
{
if
(
typeof
item
.
point
?.
i
===
'
number
'
&&
!
isNaN
(
item
.
point
?.
i
))
{
return
item
.
id
;
}
return
item
.
point
?.
i
||
''
;
}
layoutUpdatedEvent
()
{
layoutUpdatedEvent
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
let
layoutSorted
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
layout
));
let
layoutSorted
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
layout
));
...
...
app/web/page/editor/component/OperationPanel/index.vue
View file @
8d594c76
...
@@ -23,13 +23,13 @@
...
@@ -23,13 +23,13 @@
:w=
"item.point.w"
:w=
"item.point.w"
:h=
"item.point.h"
:h=
"item.point.h"
:i=
"item.point.i"
:i=
"item.point.i"
:key=
"
item.point.i
+ index"
:key=
"
fixGridKey(item)
+ index"
@
contextmenu.native.prevent=
"show($event, index)"
@
contextmenu.native.prevent=
"show($event, index)"
@
resized=
"resizedEvent"
@
resized=
"resizedEvent"
@
moved=
"movedEvent"
@
moved=
"movedEvent"
:style=
"transformStyle(item.commonStyle, item.name)"
:style=
"transformStyle(item.commonStyle, item.name)"
:class=
"
{'Dcmcp-item_selected': curEleIndex === index
&&
curChildIndex === null, 'Dcmcp-item_is-freecontainer': item.name === 'freedom-container'}">
:class=
"
{'Dcmcp-item_selected': curEleIndex === index
&&
curChildIndex === null, 'Dcmcp-item_is-freecontainer': item.name === 'freedom-container'}">
<component
ref=
"container"
:id=
"item.id"
class=
"Dcmcp-item-com"
@
handleElementClick=
"handleElementClick"
:containerIndex=
"index"
:childItem=
"item"
:is=
"item.name"
:key=
"
item.point.i
+ index"
v-bind=
"item.props"
></component>
<component
ref=
"container"
:id=
"item.id"
class=
"Dcmcp-item-com"
@
handleElementClick=
"handleElementClick"
:containerIndex=
"index"
:childItem=
"item"
:is=
"item.name"
:key=
"
fixGridKey(item)
+ index"
v-bind=
"item.props"
></component>
</grid-item>
</grid-item>
<grid-item
<grid-item
v-if=
"pageData.props.showPageBottomTip"
v-if=
"pageData.props.showPageBottomTip"
...
...
app/web/page/store/modules/editor/index.ts
View file @
8d594c76
...
@@ -150,7 +150,7 @@ export default class EditorModule implements Module<EditorState, RootState> {
...
@@ -150,7 +150,7 @@ export default class EditorModule implements Module<EditorState, RootState> {
eleCopyed
=
cloneDeep
(
page
[
containerIndex
]
||
{});
eleCopyed
=
cloneDeep
(
page
[
containerIndex
]
||
{});
eleCopyed
.
id
=
newId
;
eleCopyed
.
id
=
newId
;
eleCopyed
.
point
.
i
=
newId
;
eleCopyed
.
point
.
i
=
newId
;
page
.
push
({
...
eleCopyed
,
point
:
{
...
eleCopyed
.
point
,
i
:
page
.
length
}});
page
.
push
({
...
eleCopyed
,
point
:
{
...
eleCopyed
.
point
}});
}
}
}
}
},
},
...
...
config/config.local.ts
View file @
8d594c76
...
@@ -26,8 +26,8 @@ export default (appInfo: EggAppConfig) => {
...
@@ -26,8 +26,8 @@ export default (appInfo: EggAppConfig) => {
dialect
:
'
mysql
'
,
dialect
:
'
mysql
'
,
username
:
'
qa
'
,
username
:
'
qa
'
,
password
:
'
qatest
'
,
password
:
'
qatest
'
,
host
:
'
172.17.5.
17
'
,
host
:
'
172.17.5.
46
'
,
port
:
3
154
8
,
port
:
3
019
8
,
database
:
'
low_code
'
,
database
:
'
low_code
'
,
};
};
...
@@ -36,8 +36,8 @@ export default (appInfo: EggAppConfig) => {
...
@@ -36,8 +36,8 @@ export default (appInfo: EggAppConfig) => {
keyPrefix
:
appInfo
.
name
+
'
:
'
,
keyPrefix
:
appInfo
.
name
+
'
:
'
,
},
},
client
:
{
client
:
{
port
:
3
2625
,
// Redis port
port
:
3
1226
,
// Redis port
host
:
'
172.17.5.
2
'
,
// Redis host
host
:
'
172.17.5.
14
'
,
// Redis host
password
:
''
,
password
:
''
,
db
:
0
db
:
0
}
}
...
...
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