@dataloop-ai/components 0.19.51 → 0.19.53
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
|
@@ -401,10 +401,7 @@
|
|
|
401
401
|
</DlTr>
|
|
402
402
|
<tr
|
|
403
403
|
v-if="isRowExpanded(props.item)"
|
|
404
|
-
:key="
|
|
405
|
-
getRowKey(props.item)?.toString() +
|
|
406
|
-
'-expanded'
|
|
407
|
-
"
|
|
404
|
+
:key="getRowExpandedKey(props.item)"
|
|
408
405
|
>
|
|
409
406
|
<td :colspan="columns.length + 1">
|
|
410
407
|
<slot
|
|
@@ -792,9 +789,7 @@
|
|
|
792
789
|
</DlTr>
|
|
793
790
|
<tr
|
|
794
791
|
v-if="isRowExpanded(row)"
|
|
795
|
-
:key="
|
|
796
|
-
getRowKey(row)?.toString() + '-expanded'
|
|
797
|
-
"
|
|
792
|
+
:key="getRowExpandedKey(row)"
|
|
798
793
|
>
|
|
799
794
|
<td :colspan="columns.length + 1">
|
|
800
795
|
<slot
|
|
@@ -1917,7 +1912,7 @@ export default defineComponent({
|
|
|
1917
1912
|
const handleVisibleColumnsUpdate = (columns: string[]) => {
|
|
1918
1913
|
if (columns.length < 1) return
|
|
1919
1914
|
visibleColumnsState.value = columns
|
|
1920
|
-
emit('update
|
|
1915
|
+
emit('update:visible-columns', columns)
|
|
1921
1916
|
}
|
|
1922
1917
|
|
|
1923
1918
|
const showRowActions = computed<boolean>(
|
|
@@ -1932,6 +1927,10 @@ export default defineComponent({
|
|
|
1932
1927
|
: 'icon-dl-down-chevron'
|
|
1933
1928
|
}
|
|
1934
1929
|
|
|
1930
|
+
const getRowExpandedKey = (row: DlTableRow) => {
|
|
1931
|
+
return getRowKey.value(row)?.toString() + '-expanded'
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1935
1934
|
return {
|
|
1936
1935
|
containerStyle,
|
|
1937
1936
|
isDataEmpty,
|
|
@@ -2002,7 +2001,8 @@ export default defineComponent({
|
|
|
2002
2001
|
showRowActions,
|
|
2003
2002
|
tableRef,
|
|
2004
2003
|
getRowExpandedIcon,
|
|
2005
|
-
computedPagination
|
|
2004
|
+
computedPagination,
|
|
2005
|
+
getRowExpandedKey
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
2008
|
})
|