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
6af5561a
Commit
6af5561a
authored
Oct 09, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(select): 选择框问题修复
parent
8f05a5ff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
index.vue
...itor/component/DynamicForm/component/BaseSelect/index.vue
+6
-0
index.ts
.../component/DynamicForm/component/ComponentSelect/index.ts
+3
-0
index.vue
app/web/page/editor/component/OperationPanel/index.vue
+2
-1
goodsTabs.mixin.ts
app/web/page/editor/mixins/goodsTabs.mixin.ts
+1
-1
No files found.
app/web/page/editor/component/DynamicForm/component/BaseSelect/index.vue
View file @
6af5561a
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
watch
:
{
watch
:
{
selected
(
val
)
{
selected
(
val
)
{
this
.
$emit
(
'
input
'
,
val
);
this
.
$emit
(
'
input
'
,
val
);
},
value
:
{
immediate
:
true
,
handler
(
val
)
{
this
.
selected
=
val
;
}
}
}
}
}
}
}
...
...
app/web/page/editor/component/DynamicForm/component/ComponentSelect/index.ts
View file @
6af5561a
...
@@ -42,6 +42,9 @@ export default class DynamicForm extends Vue {
...
@@ -42,6 +42,9 @@ export default class DynamicForm extends Vue {
return
cur
.
point
.
y
>
next
.
point
.
y
?
1
:
-
1
;
return
cur
.
point
.
y
>
next
.
point
.
y
?
1
:
-
1
;
});
});
this
.
list
=
list
.
map
((
element
,
index
)
=>
({
id
:
element
.
id
,
label
:
element
.
title
+
'
-
'
+
element
.
id
}));
this
.
list
=
list
.
map
((
element
,
index
)
=>
({
id
:
element
.
id
,
label
:
element
.
title
+
'
-
'
+
element
.
id
}));
if
(
!
this
.
list
.
includes
(
item
=>
item
.
id
===
this
.
selected
))
{
this
.
selected
=
''
;
}
// console.log('curEleIndex', pointY, this.pageData?.elements?.filter(v => pointY < v?.point?.y), this.list);
// console.log('curEleIndex', pointY, this.pageData?.elements?.filter(v => pointY < v?.point?.y), this.list);
}
}
}
}
app/web/page/editor/component/OperationPanel/index.vue
View file @
6af5561a
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
@
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}">
<component
ref=
"container"
:id=
"item.id"
class=
"Dcmcp-item-com"
@
handleElementClick=
"handleElementClick"
:containerIndex=
"index"
:childItem=
"item"
:is=
"item.name"
:key=
"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=
"i
tem.point.i + i
ndex"
v-bind=
"item.props"
></component>
</grid-item>
</grid-item>
<grid-item
<grid-item
v-if=
"pageData.props.showPageBottomTip"
v-if=
"pageData.props.showPageBottomTip"
...
@@ -74,6 +74,7 @@
...
@@ -74,6 +74,7 @@
border-radius: 6px;
border-radius: 6px;
overflow: hidden;
overflow: hidden;
}
}
width: 375px;
width: 375px;
height: 619px;
height: 619px;
min-height: 619px;
min-height: 619px;
...
...
app/web/page/editor/mixins/goodsTabs.mixin.ts
View file @
6af5561a
...
@@ -80,7 +80,7 @@ export default class GoodsTabsMixin extends Vue {
...
@@ -80,7 +80,7 @@ export default class GoodsTabsMixin extends Vue {
this
.
pageData
.
elements
.
forEach
(
element
=>
{
this
.
pageData
.
elements
.
forEach
(
element
=>
{
if
(
element
.
name
===
'
cs-goods-tabs
'
||
element
.
name
===
'
cs-floor-nav
'
)
{
if
(
element
.
name
===
'
cs-goods-tabs
'
||
element
.
name
===
'
cs-floor-nav
'
)
{
element
.
props
?.
list
.
forEach
(
item
=>
{
element
.
props
?.
list
.
forEach
(
item
=>
{
if
(
selectedComponentIds
.
includes
(
item
.
componentId
))
{
if
(
item
.
componentId
&&
selectedComponentIds
.
includes
(
item
.
componentId
))
{
throw
new
Error
(
`组件<
${
element
.
title
}${
element
.
id
}
>存在重复组件,请修改后继续操作`
);
throw
new
Error
(
`组件<
${
element
.
title
}${
element
.
id
}
>存在重复组件,请修改后继续操作`
);
}
else
{
}
else
{
selectedComponentIds
.
push
(
item
.
componentId
);
selectedComponentIds
.
push
(
item
.
componentId
);
...
...
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