@maxax/ui 1.1.61 → 1.1.63
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/dist/components/basic-button-import-max/BasicButtonImportMax.vue.d.ts +2 -0
- package/dist/components/basic-button-import-max/BasicButtonImportMax.vue.d.ts.map +1 -1
- package/dist/components/basic-button-import-max/PreviewModal.vue.d.ts +2 -0
- package/dist/components/basic-button-import-max/PreviewModal.vue.d.ts.map +1 -1
- package/dist/components/basic-table/BasicTable.vue.d.ts.map +1 -1
- package/dist/components/basic-table/hooks/use-data-source.d.ts.map +1 -1
- package/dist/components/basic-table/interface.d.ts +1 -0
- package/dist/components/basic-table/interface.d.ts.map +1 -1
- package/dist/index.cjs +18 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +18 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -10904,6 +10904,7 @@ function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination
|
|
|
10904
10904
|
const dataSource = unref(dataSourceRef);
|
|
10905
10905
|
if (!dataSource || dataSource.length === 0) {
|
|
10906
10906
|
getDataSourceRef.value = unref(dataSourceRef);
|
|
10907
|
+
return;
|
|
10907
10908
|
}
|
|
10908
10909
|
if (unref(getAutoCreateKey)) {
|
|
10909
10910
|
const firstItem = dataSource[0];
|
|
@@ -11017,7 +11018,7 @@ function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination
|
|
|
11017
11018
|
}
|
|
11018
11019
|
async function fetch2(opt) {
|
|
11019
11020
|
var _a, _b, _c, _d, _e;
|
|
11020
|
-
const { api, dynamicApi, searchInfo, defSort, fetchSetting, beforeFetch, afterFetch, useSearchForm, pagination, handleSearchInfoFn } = unref(propsRef);
|
|
11021
|
+
const { api, dynamicApi, searchInfo, defSort, fetchSetting, beforeFetch, afterFetch, completeFetch, useSearchForm, pagination, handleSearchInfoFn } = unref(propsRef);
|
|
11021
11022
|
if (!api && !dynamicApi) return;
|
|
11022
11023
|
try {
|
|
11023
11024
|
setLoading(true);
|
|
@@ -11060,7 +11061,10 @@ function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination
|
|
|
11060
11061
|
let resultItems = isArrayResult ? res.data : get(res.data, listField);
|
|
11061
11062
|
const resultTotal = isArrayResult ? res.data.length : get(res.data, totalField);
|
|
11062
11063
|
if (afterFetch && isFunction$1(afterFetch)) {
|
|
11063
|
-
resultItems = await afterFetch(resultItems) || resultItems;
|
|
11064
|
+
resultItems = await afterFetch(resultItems, res) || resultItems;
|
|
11065
|
+
}
|
|
11066
|
+
if (completeFetch && isFunction$1(completeFetch)) {
|
|
11067
|
+
await completeFetch(resultItems, res);
|
|
11064
11068
|
}
|
|
11065
11069
|
dataSourceRef.value = resultItems;
|
|
11066
11070
|
setPagination({
|
|
@@ -11685,6 +11689,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
11685
11689
|
dynamicApi: {},
|
|
11686
11690
|
beforeFetch: {},
|
|
11687
11691
|
afterFetch: {},
|
|
11692
|
+
completeFetch: {},
|
|
11688
11693
|
handleSearchInfoFn: {},
|
|
11689
11694
|
fetchSetting: { default: () => FETCH_SETTING$1 },
|
|
11690
11695
|
defSort: {},
|
|
@@ -31587,13 +31592,17 @@ const BasicUploadListItem = /* @__PURE__ */ defineComponent({
|
|
|
31587
31592
|
const dom = createVNode("div", {
|
|
31588
31593
|
"class": infoUploadingClass
|
|
31589
31594
|
}, [icon, fileName, pictureCardActions, showProgress.value && createVNode(Transition, transitionProps.value, {
|
|
31590
|
-
default: () =>
|
|
31591
|
-
|
|
31592
|
-
|
|
31593
|
-
|
|
31594
|
-
|
|
31595
|
-
|
|
31596
|
-
|
|
31595
|
+
default: () => {
|
|
31596
|
+
var _a3;
|
|
31597
|
+
return [withDirectives(createVNode("div", {
|
|
31598
|
+
"class": `${prefixCls}-progress`
|
|
31599
|
+
}, [file && "percent" in file ? createVNode(NProgress, mergeProps(progressProps, {
|
|
31600
|
+
"type": "line",
|
|
31601
|
+
"percentage": Number((_a3 = file == null ? void 0 : file.percent) != null ? _a3 : 0),
|
|
31602
|
+
"height": 2,
|
|
31603
|
+
"show-indicator": false
|
|
31604
|
+
}), null) : null]), [[vShow, mergedStatus.value === "uploading"]])];
|
|
31605
|
+
}
|
|
31597
31606
|
})]);
|
|
31598
31607
|
const listContainerNameClass = {
|
|
31599
31608
|
[`${prefixCls}-${listType}`]: true,
|