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