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
27e153f0
Commit
27e153f0
authored
Oct 15, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/bgsize' into 'master'
fix(bgsize): 修复bgsize兼容问题 See merge request
!38
parents
6a239e91
9184a14c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
index.vue
app/web/page/editor/component/OperationPanel/index.vue
+5
-1
index.ts
app/web/page/editor/view/dashboard/index.ts
+1
-1
transformStyle.mixin.ts
app/web/page/mixins/transformStyle.mixin.ts
+2
-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 @
27e153f0
...
...
@@ -28,7 +28,7 @@
@
resized=
"resizedEvent"
@
moved=
"movedEvent"
: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>
</grid-item>
<grid-item
...
...
@@ -112,6 +112,10 @@
.Dcmcp-item_selected {
.border();
}
.Dcmcp-item_is-freecontainer::before {
z-index: 1 !important;
}
}
&_draging {
...
...
app/web/page/editor/view/dashboard/index.ts
View file @
27e153f0
...
...
@@ -119,7 +119,7 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
}
handleElementClick
(
curEleIndex
?:
number
|
null
,
curChildIndex
?:
number
|
null
)
{
//
console.log('handleElementClick - DashBoard', curEleIndex, curChildIndex);
console
.
log
(
'
handleElementClick - DashBoard
'
,
curEleIndex
,
curChildIndex
);
this
.
toggle
(
false
);
this
.
setCurEleIndex
(
curEleIndex
);
this
.
setCurChildIndex
(
curChildIndex
);
...
...
app/web/page/mixins/transformStyle.mixin.ts
View file @
27e153f0
...
...
@@ -8,7 +8,8 @@ export default class TransformStyleMixin extends Vue {
// console.log('transformStyle', styleObj, element);
let
style
=
{
backgroundRepeat
:
'
no-repeat
'
,
backgroundSize
:
'
cover
'
backgroundSize
:
'
cover
'
,
backgroundPosition
:
'
center
'
};
if
(
!
styleObj
)
{
return
style
;
}
for
(
const
key
of
Object
.
keys
(
styleObj
))
{
...
...
app/web/page/store/modules/editor/index.ts
View file @
27e153f0
...
...
@@ -115,8 +115,8 @@ export default class EditorModule implements Module<EditorState, RootState> {
[
SET_CUR_ELE_INDEX
](
state
,
curEleIndex
)
{
state
.
curEleIndex
=
curEleIndex
;
},
[
SET_CUR_
ELE_INDEX
](
state
,
curEle
Index
)
{
state
.
cur
EleIndex
=
curEle
Index
;
[
SET_CUR_
CHILD_INDEX
](
state
,
curChild
Index
)
{
state
.
cur
ChildIndex
=
curChild
Index
;
},
[
SET_CUR_RIGHT_TAB_NAME
](
state
,
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