mirror of https://github.com/veops/cmdb.git
fix(ui): ci choice attr error
This commit is contained in:
parent
89da671e46
commit
00c7a644a2
|
@ -107,8 +107,8 @@
|
|||
:type="choice[1].icon.name"
|
||||
/>
|
||||
</template>
|
||||
<a-tooltip placement="topLeft" :title="choice[1].label || choice[0]">
|
||||
<span>{{ choice[1].label || choice[0] }}</span>
|
||||
<a-tooltip placement="topLeft" :title="choice[1] ? choice[1].label || choice[0] : choice[0]">
|
||||
<span>{{ choice[1] ? choice[1].label || choice[0] : choice[0] }}</span>
|
||||
</a-tooltip>
|
||||
</span>
|
||||
</a-select-option>
|
||||
|
|
|
@ -128,8 +128,8 @@
|
|||
v-if="choice[1] && choice[1].icon && choice[1].icon.name"
|
||||
:type="choice[1].icon.name"
|
||||
/>
|
||||
<a-tooltip placement="topLeft" :title="choice[1].label || choice[0]" >
|
||||
{{ choice[1].label || choice[0] }}
|
||||
<a-tooltip placement="topLeft" :title="choice[1] ? choice[1].label || choice[0] : choice[0]" >
|
||||
{{ choice[1] ? choice[1].label || choice[0] : choice[0] }}
|
||||
</a-tooltip>
|
||||
</span>
|
||||
</a-select-option>
|
||||
|
|
|
@ -134,7 +134,7 @@
|
|||
:type="choice[1].icon.name"
|
||||
/>
|
||||
</template>
|
||||
{{ choice[1].label || choice[0] }}
|
||||
{{ choice[1] ? choice[1].label || choice[0] : choice[0] }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
|
|
|
@ -72,8 +72,8 @@
|
|||
:type="choice[1].icon.name"
|
||||
/>
|
||||
</template>
|
||||
<a-tooltip placement="topLeft" :title="choice[1].label || choice[0]">
|
||||
{{ choice[1].label || choice[0] }}
|
||||
<a-tooltip placement="topLeft" :title="choice[1] ? choice[1].label || choice[0] : choice[0]">
|
||||
{{ choice[1] ? choice[1].label || choice[0] : choice[0] }}
|
||||
</a-tooltip>
|
||||
</span>
|
||||
</a-select-option>
|
||||
|
|
|
@ -450,8 +450,9 @@ export default {
|
|||
return [
|
||||
item[0],
|
||||
{
|
||||
...item[1],
|
||||
label: item?.[1]?.['label'] || item[0]
|
||||
icon: item?.[1]?.['icon'] || {},
|
||||
style: item?.[1]?.['style'] || {},
|
||||
label: item?.[1]?.['label'] || item?.[0] || ''
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue