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 69bde5ee29
5 changed files with 10 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

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