File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/anu-vue/src/components/data-table Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ defineOptions({
30
30
const _tableProps = reactivePick (props , Object .keys (tableProps ).filter (k => ! [' rows' , ' cols' ].includes (k )) as Array <keyof typeof tableProps >)
31
31
32
32
const _rows = ref <Record <string , unknown >[]>(typeof props .rows !== ' function' ? props .rows : [])
33
- const serverTotal = ref (0 )
34
- const _total = ref (typeof props .rows === ' function' ? serverTotal .value : props .rows .length )
33
+ const _total = ref (typeof props .rows === ' function' ? 0 : props .rows .length )
35
34
36
35
// SECTION Calculate column
37
36
/*
@@ -118,7 +117,7 @@ const fetchRows = () => {
118
117
.then (data => {
119
118
const { rows, total } = data
120
119
_rows .value = rows
121
- serverTotal .value = total
120
+ _total .value = total
122
121
})
123
122
}
124
123
else {
You can’t perform that action at this time.
0 commit comments