Merge pull request #607 from veops/dev_ui_240828

fix(ui): ci choice attr error
This commit is contained in:
Leo Song 2024-08-28 18:52:43 +08:00 committed by GitHub
commit 02235d8cc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 9 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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] || ''
}
]
})