Merge pull request #599 from veops/dev_ui_240826

feat(ui) update CMDBFilterComp label
This commit is contained in:
Leo Song 2024-08-26 15:16:07 +08:00 committed by GitHub
commit 61e62e4740
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 2 deletions

View File

@ -84,6 +84,24 @@
:zIndex="1050"
:disabled="disabled"
>
<div
slot="option-label"
slot-scope="{ node }"
:style="{ width: '100%', whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden' }"
>
<a-tooltip :title="node.label">
{{ node.label }}
</a-tooltip>
</div>
<div
:style="{ width: '100%', whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden' }"
slot="value-label"
slot-scope="{ node }"
>
<a-tooltip :title="node.label">
{{ node.label }}
</a-tooltip>
</div>
</treeselect>
<CIReferenceAttr
v-if="getAttr(item.property).is_reference && (item.exp === 'is' || item.exp === '~is')"
@ -121,8 +139,8 @@
:normalizer="
(node) => {
return {
id: node[0],
label: node[0],
id: String(node[0]),
label: node[1].label || node[0],
children: node.children,
}
}