mirror of
https://github.com/veops/cmdb.git
synced 2025-08-25 20:09:00 +08:00
feat(ui): CI - update JSON type attr tooltip display
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
<a-tooltip
|
<a-tooltip
|
||||||
v-else-if="attr.value_type === '6'"
|
v-else-if="attr.value_type === '6'"
|
||||||
:title="JSON.stringify(ci[attr.name] || {})"
|
:title="JSON.stringify(ci[attr.name] || {})"
|
||||||
|
overlayClassName="ci-detail-attr-json-tooltip"
|
||||||
>
|
>
|
||||||
<span class="ci-detail-attr-json">
|
<span class="ci-detail-attr-json">
|
||||||
{{ JSON.stringify(ci[attr.name] || {}) }}
|
{{ JSON.stringify(ci[attr.name] || {}) }}
|
||||||
@@ -364,3 +365,13 @@ export default {
|
|||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
}
|
}
|
||||||
</style>
|
</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