@dataloop-ai/components 0.18.94 → 0.18.95
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
|
@@ -690,6 +690,12 @@ export default defineComponent({
|
|
|
690
690
|
() => virtualScroll.value === true
|
|
691
691
|
)
|
|
692
692
|
|
|
693
|
+
const hasEmptyStateProps = computed(() =>
|
|
694
|
+
props.emptyStateProps
|
|
695
|
+
? Object.keys(props.emptyStateProps).length > 0
|
|
696
|
+
: false
|
|
697
|
+
)
|
|
698
|
+
|
|
693
699
|
const groupOptions = computed(() =>
|
|
694
700
|
(props.columns as DlTableColumn[]).map((item) => ({
|
|
695
701
|
label: item.label,
|
|
@@ -1337,9 +1343,6 @@ export default defineComponent({
|
|
|
1337
1343
|
const updatePagination = (value: any, key: string) => {
|
|
1338
1344
|
return setPagination({ [`${key}`]: value })
|
|
1339
1345
|
}
|
|
1340
|
-
const hasEmptyStateProps = computed(
|
|
1341
|
-
() => Object.keys(props.emptyStateProps).length > 0
|
|
1342
|
-
)
|
|
1343
1346
|
|
|
1344
1347
|
const handleVisibleColumnsUpdate = (columns: string[]) => {
|
|
1345
1348
|
if (columns.length < 1) return
|
|
@@ -243,8 +243,10 @@ export default defineComponent({
|
|
|
243
243
|
const tableColumns = ref(props.columns)
|
|
244
244
|
const hasFlatTreeData = true
|
|
245
245
|
|
|
246
|
-
const hasEmptyStateProps = computed(
|
|
247
|
-
|
|
246
|
+
const hasEmptyStateProps = computed(() =>
|
|
247
|
+
props.emptyStateProps
|
|
248
|
+
? Object.keys(props.emptyStateProps).length > 0
|
|
249
|
+
: false
|
|
248
250
|
)
|
|
249
251
|
|
|
250
252
|
const computedRows = computed(() =>
|
|
@@ -281,7 +283,7 @@ export default defineComponent({
|
|
|
281
283
|
rowsArr = tableRows.value
|
|
282
284
|
) => {
|
|
283
285
|
(rowsArr as DlTableRow[]).some((o) => {
|
|
284
|
-
if (o.
|
|
286
|
+
if (o[getRowKey.value as unknown as string] === name) {
|
|
285
287
|
if (isVue2) {
|
|
286
288
|
set(o, 'expanded', isExpanded)
|
|
287
289
|
} else {
|