Explorar el Código

[Style 0000] 算法模型表单样式优化

houzekong hace 2 meses
padre
commit
8aad816c33
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/system/algorithm/components/RelationBuilder.vue

+ 2 - 1
src/views/system/algorithm/components/RelationBuilder.vue

@@ -4,9 +4,10 @@
       <a-space :style="{ width: `calc(100% - ${isOperator ? '100' : '0'}px)`, marginBottom: '10px' }" wrap>
         <template v-for="(item, index) in items" :key="index">
           <a-input-number v-if="item.type === 'number'" v-model:value="item.value" style="width: 30px" placeholder="-" @blur="confirm" />
-          <a-tag v-if="item.type === 'operand' || item.type === 'logic' || item.type === 'operator'" :color="tagColors[item.type]" class="expr-tag">
+          <a-tag v-if="item.type === 'operand' || item.type === 'operator'" :color="tagColors[item.type]" class="expr-tag">
             {{ formatDisplay(item) }}
           </a-tag>
+          <a-tag v-else-if="item.type === 'logic'" class="expr-tag">|</a-tag>
         </template>
       </a-space>
       <!-- <div class="flex flex-wrap" :style="{ width: `calc(100% - ${isOperator ? '100' : '0'}px)` }" wrap>