3h1-ui 3.0.0-next.95 → 3.0.0-next.96
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/es/index.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -38108,8 +38108,8 @@ const useTableData = (getProps, { setPage, params, tableRef }) => {
|
|
|
38108
38108
|
getProps.value.beforeFetch(params.value)
|
|
38109
38109
|
);
|
|
38110
38110
|
const isArrayResult = Array.isArray(res);
|
|
38111
|
-
let resultItems = isArrayResult ? res :
|
|
38112
|
-
const resultTotal = isArrayResult ? res.length :
|
|
38111
|
+
let resultItems = isArrayResult ? res : res;
|
|
38112
|
+
const resultTotal = isArrayResult ? res.length : 0;
|
|
38113
38113
|
if (resultTotal) {
|
|
38114
38114
|
const currentTotalPage = Math.ceil(resultTotal / params.value.size);
|
|
38115
38115
|
if (params.value.current > currentTotalPage) {
|
package/lib/index.js
CHANGED
|
@@ -38132,8 +38132,8 @@ const useTableData = (getProps, { setPage, params, tableRef }) => {
|
|
|
38132
38132
|
getProps.value.beforeFetch(params.value)
|
|
38133
38133
|
);
|
|
38134
38134
|
const isArrayResult = Array.isArray(res);
|
|
38135
|
-
let resultItems = isArrayResult ? res :
|
|
38136
|
-
const resultTotal = isArrayResult ? res.length :
|
|
38135
|
+
let resultItems = isArrayResult ? res : res;
|
|
38136
|
+
const resultTotal = isArrayResult ? res.length : 0;
|
|
38137
38137
|
if (resultTotal) {
|
|
38138
38138
|
const currentTotalPage = Math.ceil(resultTotal / params.value.size);
|
|
38139
38139
|
if (params.value.current > currentTotalPage) {
|
package/package.json
CHANGED