|
|
@ -28,10 +28,11 @@ var css = csjs` |
|
|
|
} |
|
|
|
} |
|
|
|
.label_key { |
|
|
|
.label_key { |
|
|
|
min-width: 15%; |
|
|
|
min-width: 15%; |
|
|
|
word-break: break-all; |
|
|
|
max-width: 80%; |
|
|
|
|
|
|
|
word-break: break-word; |
|
|
|
} |
|
|
|
} |
|
|
|
.label_value { |
|
|
|
.label_value { |
|
|
|
min-width: 30%; |
|
|
|
min-width: 10%; |
|
|
|
} |
|
|
|
} |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
@ -89,7 +90,7 @@ class TreeView { |
|
|
|
var label = yo` |
|
|
|
var label = yo` |
|
|
|
<div key=${keyPath} data-id="treeViewDiv${keyPath}" class="d-flex flex-row align-items-center"> |
|
|
|
<div key=${keyPath} data-id="treeViewDiv${keyPath}" class="d-flex flex-row align-items-center"> |
|
|
|
${caret} |
|
|
|
${caret} |
|
|
|
<span>${self.formatSelf(key, data, li)}</span> |
|
|
|
<span class="w-100">${self.formatSelf(key, data, li)}</span> |
|
|
|
</div>` |
|
|
|
</div>` |
|
|
|
const expanded = self.expandPath.includes(keyPath) |
|
|
|
const expanded = self.expandPath.includes(keyPath) |
|
|
|
li.appendChild(label) |
|
|
|
li.appendChild(label) |
|
|
@ -169,8 +170,8 @@ class TreeView { |
|
|
|
|
|
|
|
|
|
|
|
formatSelfDefault (key, data) { |
|
|
|
formatSelfDefault (key, data) { |
|
|
|
return yo` |
|
|
|
return yo` |
|
|
|
<div class="d-flex flex-row ${css.label_item}"> |
|
|
|
<div class="d-flex mb-1 flex-row ${css.label_item}"> |
|
|
|
<label class="font-weight-bold pr-1 ${css.label_key}">${key}:</label> |
|
|
|
<label class="small font-weight-bold pr-1 ${css.label_key}">${key}:</label> |
|
|
|
<label class="m-0 ${css.label_value}">${data.self}</label> |
|
|
|
<label class="m-0 ${css.label_value}">${data.self}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
` |
|
|
|
` |
|
|
|