feat(ui): CI - update default style of attr(JSON type)

This commit is contained in:
LH_R
2025-04-15 16:36:24 +08:00
parent 53e8d34c68
commit b56cf5bb3d

View File

@@ -17,7 +17,14 @@
:ci_id="ci._id"
:attr_id="attr.id"
></PasswordField>
<template v-else-if="attr.value_type === '6'">{{ JSON.stringify(ci[attr.name] || {}) }}</template>
<a-tooltip
v-else-if="attr.value_type === '6'"
:title="JSON.stringify(ci[attr.name] || {})"
>
<span class="ci-detail-attr-json">
{{ JSON.stringify(ci[attr.name] || {}) }}
</span>
</a-tooltip>
<template v-else-if="attr.is_choice">
<template v-if="attr.is_list">
<span
@@ -348,4 +355,12 @@ export default {
}
</script>
<style></style>
<style lang="less" scoped>
.ci-detail-attr-json {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
</style>