@dataloop-ai/components 0.19.26 → 0.19.28
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
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<div v-if="hasVirtualScroll">
|
|
3
3
|
<dl-virtual-scroll
|
|
4
4
|
v-slot="{ item }"
|
|
5
|
+
:scroll-debounce="scrollDebounce"
|
|
5
6
|
style="height: 500px"
|
|
6
7
|
:items="items"
|
|
7
8
|
:styles="{ gridStyles, gridClass }"
|
|
@@ -73,6 +74,10 @@ export default defineComponent({
|
|
|
73
74
|
mode: {
|
|
74
75
|
type: String as PropType<DlGridMode>,
|
|
75
76
|
default: DlGridMode.LAYOUT
|
|
77
|
+
},
|
|
78
|
+
scrollDebounce: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: 100
|
|
76
81
|
}
|
|
77
82
|
},
|
|
78
83
|
emits: ['update:model-value', 'layout-changed'],
|
|
@@ -92,7 +97,7 @@ export default defineComponent({
|
|
|
92
97
|
: 'dl-grid-wrapper__flex'
|
|
93
98
|
)
|
|
94
99
|
|
|
95
|
-
const hasVirtualScroll = computed(() => props.items
|
|
100
|
+
const hasVirtualScroll = computed(() => !!props.items)
|
|
96
101
|
|
|
97
102
|
const gridStyles = computed(() => {
|
|
98
103
|
const gridStyles: Dictionary<string | number> = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
id="DlConfusionMatrix"
|
|
3
4
|
:style="`max-width: ${maxWidth}`"
|
|
4
5
|
class="confusion-matrix-container"
|
|
5
6
|
>
|
|
@@ -524,7 +525,7 @@ export default defineComponent({
|
|
|
524
525
|
})
|
|
525
526
|
</script>
|
|
526
527
|
|
|
527
|
-
<style lang="scss">
|
|
528
|
+
<style lang="scss" scoped>
|
|
528
529
|
.confusion-matrix-container {
|
|
529
530
|
margin: auto;
|
|
530
531
|
}
|
|
@@ -375,12 +375,16 @@
|
|
|
375
375
|
<div>
|
|
376
376
|
<p>Test reactive cells</p>
|
|
377
377
|
first row:
|
|
378
|
-
<div
|
|
378
|
+
<div
|
|
379
|
+
class="row"
|
|
380
|
+
style="width: 100%; margin-bottom: 60px"
|
|
381
|
+
>
|
|
379
382
|
<dl-input
|
|
380
383
|
v-for="(value, key) in tableRows[0]"
|
|
381
384
|
:key="key"
|
|
382
385
|
v-model="tableRows[0][key]"
|
|
383
386
|
:title="key"
|
|
387
|
+
max-width="50px"
|
|
384
388
|
/>
|
|
385
389
|
</div>
|
|
386
390
|
|