|
@@ -4,9 +4,10 @@
|
|
|
<a-space :style="{ width: `calc(100% - ${isOperator ? '100' : '0'}px)`, marginBottom: '10px' }" wrap>
|
|
<a-space :style="{ width: `calc(100% - ${isOperator ? '100' : '0'}px)`, marginBottom: '10px' }" wrap>
|
|
|
<template v-for="(item, index) in items" :key="index">
|
|
<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-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) }}
|
|
{{ formatDisplay(item) }}
|
|
|
</a-tag>
|
|
</a-tag>
|
|
|
|
|
+ <a-tag v-else-if="item.type === 'logic'" class="expr-tag">|</a-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</a-space>
|
|
</a-space>
|
|
|
<!-- <div class="flex flex-wrap" :style="{ width: `calc(100% - ${isOperator ? '100' : '0'}px)` }" wrap>
|
|
<!-- <div class="flex flex-wrap" :style="{ width: `calc(100% - ${isOperator ? '100' : '0'}px)` }" wrap>
|