mirror of
https://github.com/veops/cmdb.git
synced 2025-08-25 12:39:06 +08:00
feat(ui): CI - update JSON type attr tooltip display
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<a-tooltip
|
||||
v-else-if="attr.value_type === '6'"
|
||||
:title="JSON.stringify(ci[attr.name] || {})"
|
||||
overlayClassName="ci-detail-attr-json-tooltip"
|
||||
>
|
||||
<span class="ci-detail-attr-json">
|
||||
{{ JSON.stringify(ci[attr.name] || {}) }}
|
||||
@@ -364,3 +365,13 @@ export default {
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="less">
|
||||
.ci-detail-attr-json-tooltip {
|
||||
|
||||
.ant-tooltip-content {
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user