mirror of
https://github.com/veops/cmdb.git
synced 2025-08-25 09:49:22 +08:00
feat(ui): CI - update default style of attr(JSON type)
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user