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 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 : get(res, "records");
38112
- const resultTotal = isArrayResult ? res.length : get(res, "total");
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 : get(res, "records");
38136
- const resultTotal = isArrayResult ? res.length : get(res, "total");
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
@@ -40,7 +40,7 @@
40
40
  "vite-plugin-windicss": "^1.8.10",
41
41
  "windicss": "^3.5.6"
42
42
  },
43
- "version": "3.0.0-next.95",
43
+ "version": "3.0.0-next.96",
44
44
  "scripts": {
45
45
  "test": "echo \"Error: no test specified\" && exit 1",
46
46
  "major": "npm version major",