@dataloop-ai/components 0.19.90 → 0.19.92
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
|
@@ -803,7 +803,7 @@ export default defineComponent({
|
|
|
803
803
|
return modelValue.value?.toString()
|
|
804
804
|
})
|
|
805
805
|
|
|
806
|
-
const onModelValueChange = (val: string) => {
|
|
806
|
+
const onModelValueChange = (val: string | number) => {
|
|
807
807
|
if (!isInternalChange.value && val !== null && val !== undefined) {
|
|
808
808
|
if (readonly.value || disabled.value) {
|
|
809
809
|
return
|
|
@@ -830,10 +830,17 @@ export default defineComponent({
|
|
|
830
830
|
return debounced
|
|
831
831
|
})
|
|
832
832
|
|
|
833
|
+
const firstTime = ref(true)
|
|
834
|
+
|
|
833
835
|
watch(
|
|
834
836
|
modelValue,
|
|
835
|
-
(val) => {
|
|
837
|
+
(val: string | number) => {
|
|
836
838
|
nextTick(() => {
|
|
839
|
+
if (firstTime.value) {
|
|
840
|
+
firstTime.value = false
|
|
841
|
+
onModelValueChange(val)
|
|
842
|
+
return
|
|
843
|
+
}
|
|
837
844
|
debouncedOnModelValueChange.value(val)
|
|
838
845
|
})
|
|
839
846
|
},
|
|
@@ -180,6 +180,7 @@
|
|
|
180
180
|
icon="icon-dl-column"
|
|
181
181
|
tooltip="Manage columns"
|
|
182
182
|
:disabled="isDataEmpty"
|
|
183
|
+
padding="0"
|
|
183
184
|
>
|
|
184
185
|
<slot
|
|
185
186
|
name="header-cell-visible-columns-menu"
|
|
@@ -570,6 +571,7 @@
|
|
|
570
571
|
icon="icon-dl-column"
|
|
571
572
|
tooltip="Manage columns"
|
|
572
573
|
:disabled="isDataEmpty"
|
|
574
|
+
padding="0"
|
|
573
575
|
>
|
|
574
576
|
<slot
|
|
575
577
|
name="header-cell-visible-columns-menu"
|