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
9184a14c
Commit
9184a14c
authored
Oct 14, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(free-container): 自由容器问题修复
parent
2346ab17
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
index.vue
app/web/page/editor/component/OperationPanel/index.vue
+5
-1
index.ts
app/web/page/editor/view/dashboard/index.ts
+1
-1
index.ts
app/web/page/store/modules/editor/index.ts
+2
-2
No files found.
app/web/page/editor/component/OperationPanel/index.vue
View file @
9184a14c
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
@
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}">
: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=
"item.point.i + index"
v-bind=
"item.props"
></component>
</grid-item>
</grid-item>
<grid-item
<grid-item
...
@@ -112,6 +112,10 @@
...
@@ -112,6 +112,10 @@
.Dcmcp-item_selected {
.Dcmcp-item_selected {
.border();
.border();
}
}
.Dcmcp-item_is-freecontainer::before {
z-index: 1 !important;
}
}
}
&_draging {
&_draging {
...
...
app/web/page/editor/view/dashboard/index.ts
View file @
9184a14c
...
@@ -119,7 +119,7 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
...
@@ -119,7 +119,7 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
}
}
handleElementClick
(
curEleIndex
?:
number
|
null
,
curChildIndex
?:
number
|
null
)
{
handleElementClick
(
curEleIndex
?:
number
|
null
,
curChildIndex
?:
number
|
null
)
{
//
console.log('handleElementClick - DashBoard', curEleIndex, curChildIndex);
console
.
log
(
'
handleElementClick - DashBoard
'
,
curEleIndex
,
curChildIndex
);
this
.
toggle
(
false
);
this
.
toggle
(
false
);
this
.
setCurEleIndex
(
curEleIndex
);
this
.
setCurEleIndex
(
curEleIndex
);
this
.
setCurChildIndex
(
curChildIndex
);
this
.
setCurChildIndex
(
curChildIndex
);
...
...
app/web/page/store/modules/editor/index.ts
View file @
9184a14c
...
@@ -115,8 +115,8 @@ export default class EditorModule implements Module<EditorState, RootState> {
...
@@ -115,8 +115,8 @@ export default class EditorModule implements Module<EditorState, RootState> {
[
SET_CUR_ELE_INDEX
](
state
,
curEleIndex
)
{
[
SET_CUR_ELE_INDEX
](
state
,
curEleIndex
)
{
state
.
curEleIndex
=
curEleIndex
;
state
.
curEleIndex
=
curEleIndex
;
},
},
[
SET_CUR_
ELE_INDEX
](
state
,
curEle
Index
)
{
[
SET_CUR_
CHILD_INDEX
](
state
,
curChild
Index
)
{
state
.
cur
EleIndex
=
curEle
Index
;
state
.
cur
ChildIndex
=
curChild
Index
;
},
},
[
SET_CUR_RIGHT_TAB_NAME
](
state
,
curRightTabName
)
{
[
SET_CUR_RIGHT_TAB_NAME
](
state
,
curRightTabName
)
{
state
.
curRightTabName
=
curRightTabName
;
state
.
curRightTabName
=
curRightTabName
;
...
...
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