@maxax/ui 1.1.60 → 1.1.62
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 +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10 -5
- 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: {},
|
|
@@ -15411,7 +15416,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
15411
15416
|
const actionSpan = 24 - span;
|
|
15412
15417
|
const advancedSpanObj = showAdvancedButton ? { span: actionSpan < 6 ? 24 : actionSpan } : {};
|
|
15413
15418
|
return {
|
|
15414
|
-
style: { textAlign: "right" },
|
|
15419
|
+
style: { textAlign: "right", justifyContent: "flex-end" },
|
|
15415
15420
|
span: showAdvancedButton ? "6" : "4",
|
|
15416
15421
|
...advancedSpanObj,
|
|
15417
15422
|
...actionColOptions
|
|
@@ -15456,11 +15461,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
15456
15461
|
return (_ctx, _cache) => {
|
|
15457
15462
|
return __props.showActionButtonGroup ? (openBlock(), createBlock(unref(NCol), normalizeProps(mergeProps({ key: 0 }, actionColOpt.value)), {
|
|
15458
15463
|
default: withCtx(() => {
|
|
15459
|
-
var _a;
|
|
15464
|
+
var _a, _b;
|
|
15460
15465
|
return [
|
|
15461
15466
|
createElementVNode("div", {
|
|
15462
15467
|
class: normalizeClass(unref(b)()),
|
|
15463
|
-
style: normalizeStyle({ textAlign: (_a = actionColOpt.value.style) == null ? void 0 : _a.textAlign })
|
|
15468
|
+
style: normalizeStyle({ textAlign: (_a = actionColOpt.value.style) == null ? void 0 : _a.textAlign, justifyContent: (_b = actionColOpt.value.style) == null ? void 0 : _b.justifyContent })
|
|
15464
15469
|
}, [
|
|
15465
15470
|
createVNode(unref(NFormItem), normalizeProps(guardReactiveProps(getFormItemProps.value)), {
|
|
15466
15471
|
default: withCtx(() => [
|