refactor: ♻️ 框架代码同步

This commit is contained in:
tk
2025-04-16 16:00:40 +08:00
committed by nsnail
parent 7d0fcd4906
commit 220b19d152
7 changed files with 28 additions and 9 deletions

View File

@ -26,7 +26,7 @@
"vue-i18n": "11.1.3",
"vue-router": "4.5.0",
"vue3-ace-editor": "2.2.4",
"vue3-json-viewer": "2.2.2",
"vue3-json-viewer": "2.3.0",
"vuedraggable": "4.0.3",
"vuex": "4.1.0"
},

View File

@ -3,7 +3,11 @@
<div v-if="this.$TOOL.getNestedProperty(data, this.prop)?.toString().toLowerCase() === item.value?.toString().toLowerCase()">
<scStatusIndicator
:pulse="item.pulse"
:style="item.type ? '' : `background: #${Math.abs(this.$TOOL.crypto.hashCode(item.value)).toString(16).substring(0, 6)}`"
:style="
item.type && item.type !== 'none'
? ''
: `background: #${Math.abs(this.$TOOL.crypto.hashCode(item.value)).toString(16).substring(0, 6)}`
"
:type="item.type" />
<span v-if="!$slots.default">&nbsp;{{ item.text }}</span>
<slot :data="data" :text="item.text"></slot>