Commit 998065d3 authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃攢 Merge branch 'release/3.0.35'

parents cdc4105c b2fa205d
Pipeline #74082 passed with stage
in 12 seconds
{
"name": "@vue-unistra/formbuilder",
"version": "3.0.34",
"version": "3.0.35",
"main": "dist/index.js",
"files": [
"dist/*",
......
......@@ -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':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment