@dataloop-ai/components 0.17.70 → 0.17.72
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
|
@@ -81,11 +81,12 @@ export default defineComponent({
|
|
|
81
81
|
default: () => [0, 25]
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
|
|
84
|
+
// TODO: fix type issue here
|
|
85
|
+
setup(props: any, { slots }) {
|
|
85
86
|
const dlEllipsisRef = ref(null)
|
|
86
87
|
const { hasEllipsis } = useSizeObserver(dlEllipsisRef)
|
|
87
88
|
|
|
88
|
-
const hasDefaultSlot = computed(() => !!
|
|
89
|
+
const hasDefaultSlot = computed(() => !!slots.default)
|
|
89
90
|
const splitIndex = computed(() => {
|
|
90
91
|
if (!props.text.length) return null
|
|
91
92
|
return props.split
|
|
@@ -251,8 +251,8 @@ export default defineComponent({
|
|
|
251
251
|
},
|
|
252
252
|
props: {
|
|
253
253
|
modelValue: {
|
|
254
|
-
type: Object,
|
|
255
|
-
default:
|
|
254
|
+
type: Object as PropType<Record<string, any>>,
|
|
255
|
+
default: () => ({})
|
|
256
256
|
},
|
|
257
257
|
status: {
|
|
258
258
|
type: Object as PropType<SearchStatus>,
|
|
@@ -260,7 +260,7 @@ export default defineComponent({
|
|
|
260
260
|
},
|
|
261
261
|
schema: {
|
|
262
262
|
type: Object as PropType<Schema>,
|
|
263
|
-
default: () => {}
|
|
263
|
+
default: () => ({})
|
|
264
264
|
},
|
|
265
265
|
aliases: {
|
|
266
266
|
type: Array as PropType<Alias[]>,
|