Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vue-unistra
formbuilder
Commits
998065d3
Commit
998065d3
authored
Feb 24, 2022
by
MARCO Jonathan
Browse files
🔀
Merge branch 'release/3.0.35'
parents
cdc4105c
b2fa205d
Pipeline
#74082
passed with stage
in 12 seconds
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
package.json
View file @
998065d3
{
"name"
:
"@vue-unistra/formbuilder"
,
"version"
:
"3.0.3
4
"
,
"version"
:
"3.0.3
5
"
,
"main"
:
"dist/index.js"
,
"files"
:
[
"dist/*"
,
...
...
src/components/formbuilder/settings/tabs/conditional/UsfTabConditionalDraggableContainer/UsfTabConditionalDraggableContainer.vue
View file @
998065d3
...
...
@@ -4,7 +4,7 @@
<v-chip
draggable
outlined
color=
"
primary
"
:
color=
"
getColor(item)
"
v-for=
"(item, i) in items"
:key=
"`$
{item.id}_${i}`"
class="draggableItem"
...
...
@@ -19,7 +19,7 @@
<v-chip
:ripple=
"false"
outlined
color=
"
primary
"
:
color=
"
getColor(item)
"
v-for=
"(item, i) in items"
:key=
"`$
{item.id}_${i}-readonly`"
>
...
...
@@ -60,6 +60,18 @@ export default vue.extend({
},
methods
:
{
getColor
(
item
:
FieldCondition
):
'
#afbb00
'
|
'
#0060ab
'
|
'
#ff4d00
'
|
'
#9800ff
'
{
if
(
item
.
type
===
'
field
'
)
{
return
'
#ff4d00
'
;
}
else
if
(
item
.
type
===
'
item
'
)
{
if
(
item
.
value
===
'
&&
'
||
item
.
value
===
'
||
'
)
{
return
'
#0060ab
'
;
}
return
'
#afbb00
'
;
}
return
'
#9800ff
'
;
},
displayItem
(
item
:
FieldCondition
):
string
{
switch
(
item
.
type
)
{
case
'
field
'
:
...
...
Write
Preview
Supports
Markdown
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