@dataloop-ai/components 0.20.131 → 0.20.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -234,6 +234,14 @@ export default defineComponent({
|
|
|
234
234
|
type: Boolean,
|
|
235
235
|
default: false
|
|
236
236
|
},
|
|
237
|
+
defaultIcon: {
|
|
238
|
+
type: String,
|
|
239
|
+
default: 'icon-dl-stars'
|
|
240
|
+
},
|
|
241
|
+
defaultIconColor: {
|
|
242
|
+
type: String,
|
|
243
|
+
default: 'orange'
|
|
244
|
+
},
|
|
237
245
|
width: {
|
|
238
246
|
type: String,
|
|
239
247
|
default: '250px'
|
|
@@ -288,6 +296,8 @@ export default defineComponent({
|
|
|
288
296
|
strict,
|
|
289
297
|
status,
|
|
290
298
|
disabled,
|
|
299
|
+
defaultIcon,
|
|
300
|
+
defaultIconColor,
|
|
291
301
|
schema,
|
|
292
302
|
omitSuggestions,
|
|
293
303
|
operatorsOverride,
|
|
@@ -911,9 +921,6 @@ export default defineComponent({
|
|
|
911
921
|
)
|
|
912
922
|
})
|
|
913
923
|
|
|
914
|
-
const defaultIcon = 'icon-dl-stars'
|
|
915
|
-
const defaultIconColor = 'orange'
|
|
916
|
-
|
|
917
924
|
const statusIcon = computed(() => {
|
|
918
925
|
switch (computedStatus.value.type) {
|
|
919
926
|
case 'success':
|
|
@@ -47,8 +47,14 @@
|
|
|
47
47
|
/>
|
|
48
48
|
</slot>
|
|
49
49
|
</td>
|
|
50
|
-
<td
|
|
51
|
-
|
|
50
|
+
<td
|
|
51
|
+
class="chevron-icon-container"
|
|
52
|
+
:class="{ 'no-children': (row.children || []).length === 0 }"
|
|
53
|
+
>
|
|
54
|
+
<div
|
|
55
|
+
class="chevron-icon"
|
|
56
|
+
:class="{ 'no-children': (row.children || []).length === 0 }"
|
|
57
|
+
>
|
|
52
58
|
<DlIcon
|
|
53
59
|
v-if="(row.children || []).length > 0"
|
|
54
60
|
:icon="`${
|
|
@@ -67,13 +73,13 @@
|
|
|
67
73
|
:class="col.tdClass(row)"
|
|
68
74
|
:style="
|
|
69
75
|
col.tdStyle(row) +
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
`padding-left: ${
|
|
77
|
+
setTrPadding(
|
|
78
|
+
level,
|
|
79
|
+
(row.children || []).length > 0,
|
|
80
|
+
colIndex
|
|
81
|
+
) + 1
|
|
82
|
+
}px;`
|
|
77
83
|
"
|
|
78
84
|
:col-index="colIndex"
|
|
79
85
|
:tooltip="tooltip"
|
|
@@ -432,9 +438,17 @@ export default defineComponent({
|
|
|
432
438
|
cursor: pointer;
|
|
433
439
|
padding: 5px;
|
|
434
440
|
height: 100%;
|
|
441
|
+
|
|
442
|
+
&.no-children {
|
|
443
|
+
cursor: default;
|
|
444
|
+
}
|
|
435
445
|
}
|
|
436
446
|
.chevron-icon-container {
|
|
437
447
|
cursor: pointer;
|
|
438
448
|
width: 25px;
|
|
449
|
+
|
|
450
|
+
&.no-children {
|
|
451
|
+
cursor: default;
|
|
452
|
+
}
|
|
439
453
|
}
|
|
440
454
|
</style>
|