@maxax/ui 1.1.78 → 1.1.79
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/component.d.ts.map +1 -1
- package/dist/components/basic-edit-batch/componentMap.d.ts.map +1 -1
- package/dist/components/basic-edit-batch/types/component.d.ts +2 -0
- package/dist/components/basic-edit-batch/types/component.d.ts.map +1 -1
- package/dist/components/basic-form/componentMap.d.ts.map +1 -1
- package/dist/components/basic-form/types/component.d.ts +2 -0
- package/dist/components/basic-form/types/component.d.ts.map +1 -1
- package/dist/components/basic-table/BasicTable.vue.d.ts.map +1 -1
- package/dist/components/basic-transfer/BasicTransfer.vue.d.ts +18 -0
- package/dist/components/basic-transfer/BasicTransfer.vue.d.ts.map +1 -0
- package/dist/components/basic-transfer/index.d.ts +7 -0
- package/dist/components/basic-transfer/index.d.ts.map +1 -0
- package/dist/components/basic-transfer/interface.d.ts +34 -0
- package/dist/components/basic-transfer/interface.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +222 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +223 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { addUnit, pascalCase, isClient as isClient$1, hasClass, addClass, getScrollbarWidth, getStyle, removeClass, isNumber as isNumber$1, withInstall, guid, isFunction as isFunction$1, isString as isString$1, isElement as isElement$1, isObject as isObject$2, isUndefined as isUndefined$1, downloadFileStatic, downloadFileByResponseData, attrAccept as attrAccept$1, isBoolean as isBoolean$1, getSlot, isArray as isArray$1, deepMerge, cloneDeep as cloneDeep$2, mergeArray, findNodeAll, calculate, listToTree, call, isNull as isNull$1, getValueKey, classNames, tryConstructArray, isNil, tryDeconstructArray, tryDeconstructObject, isEmpty as isEmpty$1, isPascalCase, kebabCase as kebabCase$1, mapTree as mapTree$1, getTransitionProps, collapseMotion, getTransitionGroupProps } from "@maxax/utils";
|
|
2
2
|
import { shallowRef, shallowReadonly, onUnmounted, onMounted, nextTick, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, watch, computed, unref, watchEffect, onBeforeUnmount, reactive, ref, inject, isRef, toRaw, defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, h, useAttrs, mergeProps, Fragment, createBlock, createCommentVNode, withCtx, createTextVNode, toDisplayString, createVNode, useSlots, createSlots, provide, toRefs, resolveComponent, Transition, withDirectives, withModifiers, normalizeStyle, withKeys, resolveDynamicComponent, vShow, isVNode, render as render$1, useTemplateRef, renderList, normalizeProps, guardReactiveProps, toRef, vModelText, createApp, toHandlers, mergeDefaults, mergeModels, useModel, Comment, Text, triggerRef, TransitionGroup } from "vue";
|
|
3
3
|
import BScroll from "@better-scroll/core";
|
|
4
|
-
import { NTooltip, NButton, NInput, NButtonGroup, NDropdown, NModal, NProgress, NCard, NCascader, NDatePicker, NDrawer, NDrawerContent, NSelect, NInputNumber, NUpload, NAutoComplete, NDynamicTags, NTreeSelect, NTimePicker, NSwitch, NCheckbox, NCheckboxGroup, NRadio, NRadioButton, NRadioGroup, NSlider,
|
|
4
|
+
import { NTooltip, NButton, NInput, NButtonGroup, NDropdown, NModal, NProgress, NCard, NCascader, NDatePicker, NDrawer, NDrawerContent, NSelect, NTransfer, NInputNumber, NUpload, NAutoComplete, NDynamicTags, NTreeSelect, NTimePicker, NSwitch, NCheckbox, NCheckboxGroup, NRadio, NRadioButton, NRadioGroup, NSlider, NDivider, NColorPicker, NRate, NCol, NFormItem, NForm, NRow, NPopover, NTabs, NTabPane, NScrollbar, NEmpty, NPagination, NSpin } from "naive-ui";
|
|
5
5
|
import { merge as merge$1, cloneDeep as cloneDeep$1, uniqBy, omit as omit$1, isBoolean as isBoolean$2, isFunction as isFunction$2, isArray as isArray$2, isString as isString$2, isEqual as isEqual$1, get as get$1, concat, has as has$1, set as set$1, unset, isNumber as isNumber$2, isPlainObject as isPlainObject$1, partition } from "lodash-es";
|
|
6
6
|
import { VxePager } from "vxe-pc-ui";
|
|
7
7
|
import { VxeUI, VxePager as VxePager2, VxeTooltip } from "vxe-pc-ui";
|
|
@@ -4049,7 +4049,7 @@ const useZIndex = (zIndexOverrides) => {
|
|
|
4049
4049
|
nextZIndex
|
|
4050
4050
|
};
|
|
4051
4051
|
};
|
|
4052
|
-
const _sfc_main$
|
|
4052
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
4053
4053
|
__name: "better-scroll",
|
|
4054
4054
|
props: {
|
|
4055
4055
|
options: {}
|
|
@@ -5775,7 +5775,7 @@ const Icon = defineComponent((props, { emit }) => {
|
|
|
5775
5775
|
emits: ["load"]
|
|
5776
5776
|
});
|
|
5777
5777
|
const _hoisted_1$e = ["xlink:href"];
|
|
5778
|
-
const _sfc_main$
|
|
5778
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
5779
5779
|
__name: "BasicSvgIcon",
|
|
5780
5780
|
props: {
|
|
5781
5781
|
icon: {},
|
|
@@ -5821,8 +5821,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
5821
5821
|
};
|
|
5822
5822
|
}
|
|
5823
5823
|
});
|
|
5824
|
-
const XBasicSvgIcon = withInstall(_sfc_main$
|
|
5825
|
-
const _sfc_main$
|
|
5824
|
+
const XBasicSvgIcon = withInstall(_sfc_main$13);
|
|
5825
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
5826
5826
|
...{
|
|
5827
5827
|
inheritAttrs: false
|
|
5828
5828
|
},
|
|
@@ -5871,7 +5871,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
5871
5871
|
};
|
|
5872
5872
|
}
|
|
5873
5873
|
});
|
|
5874
|
-
const _sfc_main$
|
|
5874
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
5875
5875
|
__name: "full-screen",
|
|
5876
5876
|
props: {
|
|
5877
5877
|
full: { type: Boolean }
|
|
@@ -5879,7 +5879,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
5879
5879
|
setup(__props) {
|
|
5880
5880
|
const { t: t2 } = useLocale();
|
|
5881
5881
|
return (_ctx, _cache) => {
|
|
5882
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5882
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
5883
5883
|
key: String(__props.full),
|
|
5884
5884
|
"tooltip-content": __props.full ? unref(t2)("max.icon.fullscreenExit") : unref(t2)("max.icon.fullscreen")
|
|
5885
5885
|
}, {
|
|
@@ -5897,7 +5897,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
5897
5897
|
};
|
|
5898
5898
|
}
|
|
5899
5899
|
});
|
|
5900
|
-
const _sfc_main
|
|
5900
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
5901
5901
|
__name: "icon-tooltip",
|
|
5902
5902
|
props: {
|
|
5903
5903
|
icon: { default: "mdi-help-circle" },
|
|
@@ -5937,7 +5937,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
5937
5937
|
};
|
|
5938
5938
|
}
|
|
5939
5939
|
});
|
|
5940
|
-
const _sfc_main
|
|
5940
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
5941
5941
|
__name: "menu-toggler",
|
|
5942
5942
|
props: {
|
|
5943
5943
|
collapsed: { type: Boolean },
|
|
@@ -5963,7 +5963,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
5963
5963
|
return icons[arrowIcon][collapsed];
|
|
5964
5964
|
});
|
|
5965
5965
|
return (_ctx, _cache) => {
|
|
5966
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5966
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
5967
5967
|
key: String(__props.collapsed),
|
|
5968
5968
|
"tooltip-content": __props.collapsed ? unref(t2)("max.icon.expand") : unref(t2)("max.icon.collapse"),
|
|
5969
5969
|
"tooltip-placement": "bottom-start",
|
|
@@ -5977,7 +5977,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
5977
5977
|
};
|
|
5978
5978
|
}
|
|
5979
5979
|
});
|
|
5980
|
-
const _sfc_main$
|
|
5980
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
5981
5981
|
__name: "pin-toggler",
|
|
5982
5982
|
props: {
|
|
5983
5983
|
pin: { type: Boolean }
|
|
@@ -5987,7 +5987,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
5987
5987
|
const { t: t2 } = useLocale();
|
|
5988
5988
|
const icon = computed(() => props.pin ? "mdi-pin-off" : "mdi-pin");
|
|
5989
5989
|
return (_ctx, _cache) => {
|
|
5990
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5990
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
5991
5991
|
"tooltip-content": __props.pin ? unref(t2)("max.icon.unpin") : unref(t2)("max.icon.pin"),
|
|
5992
5992
|
"tooltip-placement": "bottom-start",
|
|
5993
5993
|
"z-index": 100
|
|
@@ -6000,7 +6000,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
6000
6000
|
};
|
|
6001
6001
|
}
|
|
6002
6002
|
});
|
|
6003
|
-
const _sfc_main$
|
|
6003
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
6004
6004
|
__name: "reload-button",
|
|
6005
6005
|
props: {
|
|
6006
6006
|
loading: { type: Boolean }
|
|
@@ -6009,7 +6009,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
6009
6009
|
const { t: t2 } = useLocale();
|
|
6010
6010
|
const { b } = useNamespace("reload-button");
|
|
6011
6011
|
return (_ctx, _cache) => {
|
|
6012
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6012
|
+
return openBlock(), createBlock(_sfc_main$12, {
|
|
6013
6013
|
"tooltip-content": unref(t2)("max.icon.reload")
|
|
6014
6014
|
}, {
|
|
6015
6015
|
default: withCtx(() => [
|
|
@@ -6023,14 +6023,14 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
6023
6023
|
};
|
|
6024
6024
|
}
|
|
6025
6025
|
});
|
|
6026
|
-
const XCommonBetterScroll = withInstall(_sfc_main$
|
|
6027
|
-
const XCommonButtonIcon = withInstall(_sfc_main$
|
|
6028
|
-
const XCommonFullScreen = withInstall(_sfc_main$
|
|
6029
|
-
const XCommonIconTooltip = withInstall(_sfc_main
|
|
6030
|
-
const XCommonMenuToggler = withInstall(_sfc_main
|
|
6031
|
-
const XCommonPinToggler = withInstall(_sfc_main$
|
|
6032
|
-
const XCommonReloadButton = withInstall(_sfc_main$
|
|
6033
|
-
const _sfc_main$
|
|
6026
|
+
const XCommonBetterScroll = withInstall(_sfc_main$14);
|
|
6027
|
+
const XCommonButtonIcon = withInstall(_sfc_main$12);
|
|
6028
|
+
const XCommonFullScreen = withInstall(_sfc_main$11);
|
|
6029
|
+
const XCommonIconTooltip = withInstall(_sfc_main$10);
|
|
6030
|
+
const XCommonMenuToggler = withInstall(_sfc_main$$);
|
|
6031
|
+
const XCommonPinToggler = withInstall(_sfc_main$_);
|
|
6032
|
+
const XCommonReloadButton = withInstall(_sfc_main$Z);
|
|
6033
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
6034
6034
|
__name: "BasicButton",
|
|
6035
6035
|
props: {
|
|
6036
6036
|
icon: {}
|
|
@@ -6060,7 +6060,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
6060
6060
|
};
|
|
6061
6061
|
}
|
|
6062
6062
|
});
|
|
6063
|
-
const XBasicButton = withInstall(_sfc_main$
|
|
6063
|
+
const XBasicButton = withInstall(_sfc_main$Y);
|
|
6064
6064
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
6065
6065
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
6066
6066
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -6281,7 +6281,7 @@ const basicMessageBoxProps = {
|
|
|
6281
6281
|
default: ""
|
|
6282
6282
|
}
|
|
6283
6283
|
};
|
|
6284
|
-
const _sfc_main$
|
|
6284
|
+
const _sfc_main$X = defineComponent({
|
|
6285
6285
|
components: {
|
|
6286
6286
|
NButton,
|
|
6287
6287
|
NInput,
|
|
@@ -6689,7 +6689,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6689
6689
|
_: 3
|
|
6690
6690
|
});
|
|
6691
6691
|
}
|
|
6692
|
-
const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6692
|
+
const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$2]]);
|
|
6693
6693
|
const messageInstance = /* @__PURE__ */ new Map();
|
|
6694
6694
|
const getAppendToElement = (props) => {
|
|
6695
6695
|
let appendTo = document.body;
|
|
@@ -6815,7 +6815,7 @@ MessageBox.close = () => {
|
|
|
6815
6815
|
MessageBox._context = null;
|
|
6816
6816
|
const $MessageBox = MessageBox;
|
|
6817
6817
|
const XBasicMessageBox = $MessageBox;
|
|
6818
|
-
const _sfc_main$
|
|
6818
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
6819
6819
|
__name: "BasicActionFooter",
|
|
6820
6820
|
props: {
|
|
6821
6821
|
showDeleteButton: { type: Boolean, default: false },
|
|
@@ -6897,8 +6897,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
6897
6897
|
};
|
|
6898
6898
|
}
|
|
6899
6899
|
});
|
|
6900
|
-
const XBasicActionFooter = withInstall(_sfc_main$
|
|
6901
|
-
const _sfc_main$
|
|
6900
|
+
const XBasicActionFooter = withInstall(_sfc_main$W);
|
|
6901
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
6902
6902
|
__name: "BasicArrow",
|
|
6903
6903
|
props: {
|
|
6904
6904
|
expand: { type: Boolean },
|
|
@@ -6930,8 +6930,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
6930
6930
|
};
|
|
6931
6931
|
}
|
|
6932
6932
|
});
|
|
6933
|
-
const XBasicArrow = withInstall(_sfc_main$
|
|
6934
|
-
const _sfc_main$
|
|
6933
|
+
const XBasicArrow = withInstall(_sfc_main$V);
|
|
6934
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
6935
6935
|
__name: "BasicBoolIcon",
|
|
6936
6936
|
props: {
|
|
6937
6937
|
value: { type: [Boolean, null] },
|
|
@@ -6978,8 +6978,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
6978
6978
|
};
|
|
6979
6979
|
}
|
|
6980
6980
|
});
|
|
6981
|
-
const XBasicBoolIcon = withInstall(_sfc_main$
|
|
6982
|
-
const _sfc_main$
|
|
6981
|
+
const XBasicBoolIcon = withInstall(_sfc_main$U);
|
|
6982
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
6983
6983
|
__name: "BasicButtonCreate",
|
|
6984
6984
|
emits: ["click"],
|
|
6985
6985
|
setup(__props, { emit: __emit }) {
|
|
@@ -7004,7 +7004,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
7004
7004
|
};
|
|
7005
7005
|
}
|
|
7006
7006
|
});
|
|
7007
|
-
const _sfc_main$
|
|
7007
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
7008
7008
|
__name: "BasicButtonDelete",
|
|
7009
7009
|
emits: ["click"],
|
|
7010
7010
|
setup(__props, { emit: __emit }) {
|
|
@@ -7029,7 +7029,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
7029
7029
|
};
|
|
7030
7030
|
}
|
|
7031
7031
|
});
|
|
7032
|
-
const _sfc_main$
|
|
7032
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
7033
7033
|
__name: "BasicButtonDrop",
|
|
7034
7034
|
props: {
|
|
7035
7035
|
disabled: { type: Boolean },
|
|
@@ -7094,7 +7094,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
7094
7094
|
};
|
|
7095
7095
|
}
|
|
7096
7096
|
});
|
|
7097
|
-
const _sfc_main$
|
|
7097
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
7098
7098
|
__name: "BasicButtonEdit",
|
|
7099
7099
|
emits: ["click"],
|
|
7100
7100
|
setup(__props, { emit: __emit }) {
|
|
@@ -7119,7 +7119,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
7119
7119
|
};
|
|
7120
7120
|
}
|
|
7121
7121
|
});
|
|
7122
|
-
const _sfc_main$
|
|
7122
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
7123
7123
|
__name: "BasicButtonExport",
|
|
7124
7124
|
props: {
|
|
7125
7125
|
href: {},
|
|
@@ -7170,7 +7170,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
7170
7170
|
};
|
|
7171
7171
|
}
|
|
7172
7172
|
});
|
|
7173
|
-
const _sfc_main$
|
|
7173
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
7174
7174
|
__name: "BasicButtonExportDrop",
|
|
7175
7175
|
props: {
|
|
7176
7176
|
disabled: { type: Boolean },
|
|
@@ -7194,7 +7194,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
7194
7194
|
emit("click", key2);
|
|
7195
7195
|
}
|
|
7196
7196
|
return (_ctx, _cache) => {
|
|
7197
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7197
|
+
return openBlock(), createBlock(_sfc_main$R, {
|
|
7198
7198
|
icon: __props.icon,
|
|
7199
7199
|
options: cOptions.value,
|
|
7200
7200
|
onClick: handleClick
|
|
@@ -7208,7 +7208,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
7208
7208
|
}
|
|
7209
7209
|
});
|
|
7210
7210
|
const _hoisted_1$c = ["multiple", "name", "accept"];
|
|
7211
|
-
const _sfc_main$
|
|
7211
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
7212
7212
|
__name: "BasicButtonImport",
|
|
7213
7213
|
props: {
|
|
7214
7214
|
name: { default: "file" },
|
|
@@ -7305,7 +7305,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7305
7305
|
};
|
|
7306
7306
|
}
|
|
7307
7307
|
});
|
|
7308
|
-
const _sfc_main$
|
|
7308
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
7309
7309
|
__name: "BasicButtonPrint",
|
|
7310
7310
|
emits: ["click"],
|
|
7311
7311
|
setup(__props, { emit: __emit }) {
|
|
@@ -7330,19 +7330,19 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
7330
7330
|
};
|
|
7331
7331
|
}
|
|
7332
7332
|
});
|
|
7333
|
-
const XBasicButtonCreate = withInstall(_sfc_main$
|
|
7334
|
-
const XBasicButtonEdit = withInstall(_sfc_main$
|
|
7335
|
-
const XBasicButtonDelete = withInstall(_sfc_main$
|
|
7336
|
-
const XBasicButtonExport = withInstall(_sfc_main$
|
|
7337
|
-
const XBasicButtonImport = withInstall(_sfc_main$
|
|
7338
|
-
const XBasicButtonPrint = withInstall(_sfc_main$
|
|
7339
|
-
const XBasicButtonDrop = withInstall(_sfc_main$
|
|
7340
|
-
const XBasicButtonExportDrop = withInstall(_sfc_main$
|
|
7333
|
+
const XBasicButtonCreate = withInstall(_sfc_main$T);
|
|
7334
|
+
const XBasicButtonEdit = withInstall(_sfc_main$Q);
|
|
7335
|
+
const XBasicButtonDelete = withInstall(_sfc_main$S);
|
|
7336
|
+
const XBasicButtonExport = withInstall(_sfc_main$P);
|
|
7337
|
+
const XBasicButtonImport = withInstall(_sfc_main$N);
|
|
7338
|
+
const XBasicButtonPrint = withInstall(_sfc_main$M);
|
|
7339
|
+
const XBasicButtonDrop = withInstall(_sfc_main$R);
|
|
7340
|
+
const XBasicButtonExportDrop = withInstall(_sfc_main$O);
|
|
7341
7341
|
const _hoisted_1$b = ["id"];
|
|
7342
7342
|
const _hoisted_2$3 = ["textContent"];
|
|
7343
7343
|
const _hoisted_3 = { key: 0 };
|
|
7344
7344
|
const _hoisted_4 = ["innerHTML"];
|
|
7345
|
-
const _sfc_main$
|
|
7345
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
7346
7346
|
__name: "BasicNotification",
|
|
7347
7347
|
props: {
|
|
7348
7348
|
customClass: { default: "" },
|
|
@@ -7529,7 +7529,7 @@ const notify = (options, context) => {
|
|
|
7529
7529
|
appendTo = document.body;
|
|
7530
7530
|
}
|
|
7531
7531
|
const container = document.createElement("div");
|
|
7532
|
-
const vm = createVNode(_sfc_main$
|
|
7532
|
+
const vm = createVNode(_sfc_main$L, props, isFunction$1(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
|
|
7533
7533
|
vm.appContext = isUndefined$1(context) ? notify._context : context;
|
|
7534
7534
|
vm.props.onDestroy = () => {
|
|
7535
7535
|
render$1(null, container);
|
|
@@ -7587,7 +7587,7 @@ notify.closeAll = closeAll;
|
|
|
7587
7587
|
notify._context = null;
|
|
7588
7588
|
const $Notification = notify;
|
|
7589
7589
|
const XBasicNotification = $Notification;
|
|
7590
|
-
const _sfc_main$
|
|
7590
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
7591
7591
|
__name: "BasicButtonExportMax",
|
|
7592
7592
|
props: {
|
|
7593
7593
|
drop: { type: Boolean, default: true },
|
|
@@ -7672,7 +7672,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7672
7672
|
}
|
|
7673
7673
|
return (_ctx, _cache) => {
|
|
7674
7674
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7675
|
-
__props.drop ? (openBlock(), createBlock(_sfc_main$
|
|
7675
|
+
__props.drop ? (openBlock(), createBlock(_sfc_main$R, mergeProps({
|
|
7676
7676
|
key: 0,
|
|
7677
7677
|
icon: __props.icon,
|
|
7678
7678
|
options: cOptions.value,
|
|
@@ -7724,11 +7724,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7724
7724
|
};
|
|
7725
7725
|
}
|
|
7726
7726
|
});
|
|
7727
|
-
const XBasicButtonExportMax = withInstall(_sfc_main$
|
|
7727
|
+
const XBasicButtonExportMax = withInstall(_sfc_main$K);
|
|
7728
7728
|
function _isSlot$3(s) {
|
|
7729
7729
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
7730
7730
|
}
|
|
7731
|
-
const _sfc_main$
|
|
7731
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
7732
7732
|
name: "ButtonGroupItem",
|
|
7733
7733
|
props: {
|
|
7734
7734
|
schema: {
|
|
@@ -8104,7 +8104,7 @@ function useButtonGroupSchema({ getProps, schemaRef }) {
|
|
|
8104
8104
|
});
|
|
8105
8105
|
return { getSchema };
|
|
8106
8106
|
}
|
|
8107
|
-
const _sfc_main$
|
|
8107
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
8108
8108
|
__name: "BasicButtonGroup",
|
|
8109
8109
|
props: {
|
|
8110
8110
|
showReturnButton: { type: Boolean, default: true },
|
|
@@ -8196,7 +8196,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
8196
8196
|
}, [
|
|
8197
8197
|
renderSlot(_ctx.$slots, "left-left"),
|
|
8198
8198
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getLeftSchema.value, (schema) => {
|
|
8199
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8199
|
+
return openBlock(), createBlock(_sfc_main$J, {
|
|
8200
8200
|
key: schema.field,
|
|
8201
8201
|
schema,
|
|
8202
8202
|
"button-group-action-type": buttonGroupActionType,
|
|
@@ -8221,7 +8221,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
8221
8221
|
}, [
|
|
8222
8222
|
renderSlot(_ctx.$slots, "right-left"),
|
|
8223
8223
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getRightSchema.value, (schema) => {
|
|
8224
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8224
|
+
return openBlock(), createBlock(_sfc_main$J, {
|
|
8225
8225
|
key: schema.field,
|
|
8226
8226
|
schema,
|
|
8227
8227
|
"button-group-action-type": buttonGroupActionType,
|
|
@@ -8244,7 +8244,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
8244
8244
|
};
|
|
8245
8245
|
}
|
|
8246
8246
|
});
|
|
8247
|
-
const XBasicButtonGroup = withInstall(_sfc_main$
|
|
8247
|
+
const XBasicButtonGroup = withInstall(_sfc_main$I);
|
|
8248
8248
|
const ROW_KEY$1 = "_MAX_ROW_KEY";
|
|
8249
8249
|
const PAGE_SIZE_OPTIONS$1 = [10, 50, 80, 100];
|
|
8250
8250
|
const PAGE_SIZE$1 = 10;
|
|
@@ -9206,7 +9206,7 @@ function useTableForm(propsRef, { fetch: fetch2, getLoading, setPagination, setS
|
|
|
9206
9206
|
};
|
|
9207
9207
|
}
|
|
9208
9208
|
const _hoisted_1$a = { class: "max-table-selection-count" };
|
|
9209
|
-
const _sfc_main$
|
|
9209
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
9210
9210
|
__name: "BasicTable",
|
|
9211
9211
|
props: {
|
|
9212
9212
|
layouts: {},
|
|
@@ -9272,7 +9272,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
9272
9272
|
isCalcHeader: true,
|
|
9273
9273
|
isCalcBody: false,
|
|
9274
9274
|
// 不自适应计算宽度
|
|
9275
|
-
isCalcFooter:
|
|
9275
|
+
isCalcFooter: false
|
|
9276
9276
|
}
|
|
9277
9277
|
}) },
|
|
9278
9278
|
rowConfig: { default: () => ({
|
|
@@ -9796,7 +9796,7 @@ const MaxUI = {
|
|
|
9796
9796
|
t
|
|
9797
9797
|
};
|
|
9798
9798
|
const _hoisted_1$9 = ["title"];
|
|
9799
|
-
const _sfc_main$
|
|
9799
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
9800
9800
|
__name: "BasicText",
|
|
9801
9801
|
props: {
|
|
9802
9802
|
icon: { default: "" },
|
|
@@ -9836,7 +9836,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
9836
9836
|
class: normalizeClass(basicTextClass.value),
|
|
9837
9837
|
title: unref(isString$1)(unref(mergedValueRef)) ? unref(mergedValueRef) : void 0
|
|
9838
9838
|
}, [
|
|
9839
|
-
__props.icon ? (openBlock(), createBlock(_sfc_main$
|
|
9839
|
+
__props.icon ? (openBlock(), createBlock(_sfc_main$13, {
|
|
9840
9840
|
key: 0,
|
|
9841
9841
|
icon: __props.icon,
|
|
9842
9842
|
class: normalizeClass(__props.iconClass),
|
|
@@ -9849,8 +9849,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
9849
9849
|
};
|
|
9850
9850
|
}
|
|
9851
9851
|
});
|
|
9852
|
-
const XBasicText = withInstall(_sfc_main$
|
|
9853
|
-
const _sfc_main$
|
|
9852
|
+
const XBasicText = withInstall(_sfc_main$G);
|
|
9853
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
9854
9854
|
__name: "BasicCard",
|
|
9855
9855
|
props: {
|
|
9856
9856
|
title: {},
|
|
@@ -9889,8 +9889,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
9889
9889
|
};
|
|
9890
9890
|
}
|
|
9891
9891
|
});
|
|
9892
|
-
const XBasicCard = withInstall(_sfc_main$
|
|
9893
|
-
const _sfc_main$
|
|
9892
|
+
const XBasicCard = withInstall(_sfc_main$F);
|
|
9893
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
9894
9894
|
...{
|
|
9895
9895
|
inheritAttrs: false
|
|
9896
9896
|
},
|
|
@@ -10015,7 +10015,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10015
10015
|
}
|
|
10016
10016
|
});
|
|
10017
10017
|
const basicCascaderProps = {};
|
|
10018
|
-
const XBasicCascader = withInstall(_sfc_main$
|
|
10018
|
+
const XBasicCascader = withInstall(_sfc_main$E);
|
|
10019
10019
|
const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
|
|
10020
10020
|
const createBasicCheckboxGroupContext = (props) => {
|
|
10021
10021
|
return provide(basicCheckboxGroupKey, props);
|
|
@@ -10036,7 +10036,7 @@ const IconCheck = /* @__PURE__ */ defineComponent({
|
|
|
10036
10036
|
}, null)]);
|
|
10037
10037
|
}
|
|
10038
10038
|
});
|
|
10039
|
-
const _sfc_main$
|
|
10039
|
+
const _sfc_main$D = defineComponent({
|
|
10040
10040
|
name: "IconHover",
|
|
10041
10041
|
props: {
|
|
10042
10042
|
disabled: {
|
|
@@ -10064,7 +10064,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10064
10064
|
renderSlot(_ctx.$slots, "default")
|
|
10065
10065
|
], 2);
|
|
10066
10066
|
}
|
|
10067
|
-
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10067
|
+
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$1]]);
|
|
10068
10068
|
const basicCheckboxProps = {
|
|
10069
10069
|
/**
|
|
10070
10070
|
* @zh 绑定值
|
|
@@ -10737,7 +10737,7 @@ const BasicCol = /* @__PURE__ */ defineComponent({
|
|
|
10737
10737
|
}
|
|
10738
10738
|
});
|
|
10739
10739
|
const XBasicCol = withInstall(BasicCol);
|
|
10740
|
-
const _sfc_main$
|
|
10740
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
10741
10741
|
__name: "BasicCountTo",
|
|
10742
10742
|
props: {
|
|
10743
10743
|
startValue: { default: 0 },
|
|
@@ -10798,8 +10798,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
10798
10798
|
};
|
|
10799
10799
|
}
|
|
10800
10800
|
});
|
|
10801
|
-
const XBasicCountTo = withInstall(_sfc_main$
|
|
10802
|
-
const _sfc_main$
|
|
10801
|
+
const XBasicCountTo = withInstall(_sfc_main$C);
|
|
10802
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
10803
10803
|
__name: "BasicDatePicker",
|
|
10804
10804
|
props: {
|
|
10805
10805
|
disabled: { type: Boolean, default: false },
|
|
@@ -10859,7 +10859,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
10859
10859
|
};
|
|
10860
10860
|
}
|
|
10861
10861
|
});
|
|
10862
|
-
const XBasicDatePicker = withInstall(_sfc_main$
|
|
10862
|
+
const XBasicDatePicker = withInstall(_sfc_main$B);
|
|
10863
10863
|
const basicDragVerifyProps = {
|
|
10864
10864
|
value: {
|
|
10865
10865
|
type: Boolean,
|
|
@@ -10906,7 +10906,7 @@ const basicDragVerifyProps = {
|
|
|
10906
10906
|
default: () => ({})
|
|
10907
10907
|
}
|
|
10908
10908
|
};
|
|
10909
|
-
const _sfc_main$
|
|
10909
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
10910
10910
|
name: "BasicDragVerify",
|
|
10911
10911
|
props: basicDragVerifyProps,
|
|
10912
10912
|
emits: ["success", "update:value", "change", "start", "move", "end"],
|
|
@@ -11209,7 +11209,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
11209
11209
|
};
|
|
11210
11210
|
}
|
|
11211
11211
|
});
|
|
11212
|
-
const XBasicDragVerify = withInstall(_sfc_main$
|
|
11212
|
+
const XBasicDragVerify = withInstall(_sfc_main$A);
|
|
11213
11213
|
const basicHelpProps = {
|
|
11214
11214
|
/**
|
|
11215
11215
|
* Whether to display the serial number
|
|
@@ -11225,7 +11225,7 @@ const basicHelpProps = {
|
|
|
11225
11225
|
default: ""
|
|
11226
11226
|
}
|
|
11227
11227
|
};
|
|
11228
|
-
const _sfc_main$
|
|
11228
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
11229
11229
|
name: "BasicHelp",
|
|
11230
11230
|
components: {
|
|
11231
11231
|
XBasicSvgIcon
|
|
@@ -11271,8 +11271,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
11271
11271
|
});
|
|
11272
11272
|
}
|
|
11273
11273
|
});
|
|
11274
|
-
const XBasicHelp = withInstall(_sfc_main$
|
|
11275
|
-
const _sfc_main$
|
|
11274
|
+
const XBasicHelp = withInstall(_sfc_main$z);
|
|
11275
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
11276
11276
|
__name: "BasicTitle",
|
|
11277
11277
|
props: {
|
|
11278
11278
|
helpMessage: {},
|
|
@@ -11315,12 +11315,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
11315
11315
|
};
|
|
11316
11316
|
}
|
|
11317
11317
|
});
|
|
11318
|
-
const XBasicTitle = withInstall(_sfc_main$
|
|
11318
|
+
const XBasicTitle = withInstall(_sfc_main$y);
|
|
11319
11319
|
const _hoisted_1$8 = {
|
|
11320
11320
|
key: 0,
|
|
11321
11321
|
class: "footer-wrapper"
|
|
11322
11322
|
};
|
|
11323
|
-
const _sfc_main$
|
|
11323
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
11324
11324
|
__name: "BasicDrawer",
|
|
11325
11325
|
props: {
|
|
11326
11326
|
showCancelBtn: { type: Boolean, default: true },
|
|
@@ -11494,8 +11494,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
11494
11494
|
};
|
|
11495
11495
|
}
|
|
11496
11496
|
});
|
|
11497
|
-
const XBasicDrawer = withInstall(_sfc_main$
|
|
11498
|
-
const _sfc_main$
|
|
11497
|
+
const XBasicDrawer = withInstall(_sfc_main$x);
|
|
11498
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
11499
11499
|
__name: "BasicDrawerFooter",
|
|
11500
11500
|
props: {
|
|
11501
11501
|
showDeleteButton: { type: Boolean, default: false },
|
|
@@ -11572,7 +11572,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
11572
11572
|
};
|
|
11573
11573
|
}
|
|
11574
11574
|
});
|
|
11575
|
-
const XBasicDrawerFooter = withInstall(_sfc_main$
|
|
11575
|
+
const XBasicDrawerFooter = withInstall(_sfc_main$w);
|
|
11576
11576
|
const basicEditBatchKey = Symbol("basic-edit-batch");
|
|
11577
11577
|
const createBasicEditBatchContext = (props) => {
|
|
11578
11578
|
return provide(basicEditBatchKey, props);
|
|
@@ -11581,7 +11581,7 @@ const useBasicEditBatchContext = () => {
|
|
|
11581
11581
|
return inject(basicEditBatchKey);
|
|
11582
11582
|
};
|
|
11583
11583
|
const _hoisted_1$7 = ["disabled"];
|
|
11584
|
-
const _sfc_main$
|
|
11584
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
11585
11585
|
__name: "EditBatchAction",
|
|
11586
11586
|
props: {
|
|
11587
11587
|
disabled: { type: Boolean, default: false },
|
|
@@ -11641,7 +11641,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
11641
11641
|
};
|
|
11642
11642
|
}
|
|
11643
11643
|
});
|
|
11644
|
-
const _sfc_main$
|
|
11644
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
11645
11645
|
__name: "BasicHidden",
|
|
11646
11646
|
props: {
|
|
11647
11647
|
value: {},
|
|
@@ -11668,7 +11668,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
11668
11668
|
};
|
|
11669
11669
|
}
|
|
11670
11670
|
});
|
|
11671
|
-
const XBasicHidden = withInstall(_sfc_main$
|
|
11671
|
+
const XBasicHidden = withInstall(_sfc_main$u);
|
|
11672
11672
|
const basicRadioGroupKey = Symbol("basic-radio-group");
|
|
11673
11673
|
const createBasicRadioGroupContext = (props) => {
|
|
11674
11674
|
return provide(basicRadioGroupKey, props);
|
|
@@ -12060,7 +12060,7 @@ const BasicRadioGroup = /* @__PURE__ */ defineComponent({
|
|
|
12060
12060
|
}
|
|
12061
12061
|
});
|
|
12062
12062
|
const XBasicRadioGroup = withInstall(BasicRadioGroup);
|
|
12063
|
-
const _sfc_main$
|
|
12063
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12064
12064
|
...{
|
|
12065
12065
|
inheritAttrs: false
|
|
12066
12066
|
},
|
|
@@ -12186,7 +12186,135 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
12186
12186
|
}
|
|
12187
12187
|
});
|
|
12188
12188
|
const basicSelectProps = {};
|
|
12189
|
-
const XBasicSelect = withInstall(_sfc_main$
|
|
12189
|
+
const XBasicSelect = withInstall(_sfc_main$t);
|
|
12190
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
12191
|
+
...{
|
|
12192
|
+
inheritAttrs: false
|
|
12193
|
+
},
|
|
12194
|
+
__name: "BasicTransfer",
|
|
12195
|
+
props: {
|
|
12196
|
+
defaultValue: {},
|
|
12197
|
+
value: {},
|
|
12198
|
+
options: { default: () => [] },
|
|
12199
|
+
labelField: { type: [String, Number, Function], default: "label" },
|
|
12200
|
+
valueField: { type: [String, Number, Function], default: "value" },
|
|
12201
|
+
disabled: { type: Boolean },
|
|
12202
|
+
immediate: { type: Boolean, default: true },
|
|
12203
|
+
api: { type: Function, default: void 0 },
|
|
12204
|
+
dynamicApi: { type: Function, default: void 0 },
|
|
12205
|
+
beforeFetch: {},
|
|
12206
|
+
afterFetch: {},
|
|
12207
|
+
handleSearchInfoFn: {},
|
|
12208
|
+
searchInfo: {},
|
|
12209
|
+
fetchSetting: { default: () => ({ listField: "resultList" }) }
|
|
12210
|
+
},
|
|
12211
|
+
setup(__props, { expose: __expose }) {
|
|
12212
|
+
const props = __props;
|
|
12213
|
+
const { b } = useNamespace("basic-transfer");
|
|
12214
|
+
const loading = ref(false);
|
|
12215
|
+
const dataSourceRef = ref([]);
|
|
12216
|
+
const rawDataSourceRef = ref({});
|
|
12217
|
+
const searchInfoRef = ref({});
|
|
12218
|
+
const uncontrolledValueRef = ref(props.defaultValue);
|
|
12219
|
+
const controlledValueRef = toRef(props, "value");
|
|
12220
|
+
const mergedValueRef = useMergedState$1(controlledValueRef, uncontrolledValueRef);
|
|
12221
|
+
const attrs = useAttrs();
|
|
12222
|
+
const getOptions = computed(() => {
|
|
12223
|
+
const { labelField, valueField } = props;
|
|
12224
|
+
const source = unref(dataSourceRef).length > 0 ? unref(dataSourceRef) : props.options;
|
|
12225
|
+
return source.reduce((prev, next) => {
|
|
12226
|
+
var _a;
|
|
12227
|
+
if (next) {
|
|
12228
|
+
prev.push({
|
|
12229
|
+
...next,
|
|
12230
|
+
label: String((_a = getValueKey(labelField, next)) != null ? _a : ""),
|
|
12231
|
+
value: getValueKey(valueField, next)
|
|
12232
|
+
});
|
|
12233
|
+
}
|
|
12234
|
+
return prev;
|
|
12235
|
+
}, []);
|
|
12236
|
+
});
|
|
12237
|
+
const computedProps = computed(() => {
|
|
12238
|
+
return {
|
|
12239
|
+
...attrs,
|
|
12240
|
+
...omit$1(props, ["options", "labelField", "valueField", "value", "defaultValue"]),
|
|
12241
|
+
options: unref(getOptions),
|
|
12242
|
+
loading: loading.value
|
|
12243
|
+
};
|
|
12244
|
+
});
|
|
12245
|
+
watch(
|
|
12246
|
+
() => props.searchInfo,
|
|
12247
|
+
() => {
|
|
12248
|
+
fetch2();
|
|
12249
|
+
},
|
|
12250
|
+
{ deep: true, immediate: props.immediate }
|
|
12251
|
+
);
|
|
12252
|
+
async function fetch2(opt) {
|
|
12253
|
+
const { api, dynamicApi, searchInfo, fetchSetting, beforeFetch, afterFetch, handleSearchInfoFn } = props;
|
|
12254
|
+
if (!api && !dynamicApi || loading.value) return;
|
|
12255
|
+
try {
|
|
12256
|
+
loading.value = true;
|
|
12257
|
+
const { listField } = { listField: "resultList", ...fetchSetting };
|
|
12258
|
+
const searchInfoParams = handleSearchInfoFn ? handleSearchInfoFn() : {};
|
|
12259
|
+
let params = merge$1(searchInfoParams, searchInfo, opt != null ? opt : {});
|
|
12260
|
+
if (beforeFetch && isFunction$1(beforeFetch)) {
|
|
12261
|
+
params = await beforeFetch(params) || params;
|
|
12262
|
+
}
|
|
12263
|
+
searchInfoRef.value = params;
|
|
12264
|
+
const apiFn = api || (dynamicApi == null ? void 0 : dynamicApi(params));
|
|
12265
|
+
const res = await (apiFn == null ? void 0 : apiFn(params));
|
|
12266
|
+
rawDataSourceRef.value = res.data;
|
|
12267
|
+
const isArrayResult = Array.isArray(res.data);
|
|
12268
|
+
let resultItems = isArrayResult ? res.data : get$1(res.data, listField);
|
|
12269
|
+
if (afterFetch && isFunction$1(afterFetch)) {
|
|
12270
|
+
resultItems = await afterFetch(resultItems) || resultItems;
|
|
12271
|
+
}
|
|
12272
|
+
dataSourceRef.value = resultItems;
|
|
12273
|
+
} catch (error) {
|
|
12274
|
+
console.error(error);
|
|
12275
|
+
} finally {
|
|
12276
|
+
loading.value = false;
|
|
12277
|
+
}
|
|
12278
|
+
}
|
|
12279
|
+
const handleChange = (value) => {
|
|
12280
|
+
if (props.disabled) return;
|
|
12281
|
+
const { onChange, onUpdateValue, "onUpdate:value": _onUpdateValue } = props;
|
|
12282
|
+
if (onChange) call(onChange, value);
|
|
12283
|
+
if (onUpdateValue) call(onUpdateValue, value);
|
|
12284
|
+
if (_onUpdateValue) call(_onUpdateValue, value);
|
|
12285
|
+
uncontrolledValueRef.value = value;
|
|
12286
|
+
};
|
|
12287
|
+
function handleUpdateValue(value) {
|
|
12288
|
+
handleChange(value);
|
|
12289
|
+
}
|
|
12290
|
+
async function reload(opt) {
|
|
12291
|
+
return await fetch2(opt);
|
|
12292
|
+
}
|
|
12293
|
+
function getSearchInfo() {
|
|
12294
|
+
return searchInfoRef.value;
|
|
12295
|
+
}
|
|
12296
|
+
function getOptionsMethod() {
|
|
12297
|
+
return unref(getOptions);
|
|
12298
|
+
}
|
|
12299
|
+
const transferActionType = {
|
|
12300
|
+
reload,
|
|
12301
|
+
getSearchInfo,
|
|
12302
|
+
getOptions: getOptionsMethod
|
|
12303
|
+
};
|
|
12304
|
+
__expose({
|
|
12305
|
+
...transferActionType
|
|
12306
|
+
});
|
|
12307
|
+
return (_ctx, _cache) => {
|
|
12308
|
+
return openBlock(), createBlock(unref(NTransfer), mergeProps(computedProps.value, {
|
|
12309
|
+
value: unref(mergedValueRef),
|
|
12310
|
+
class: unref(b)(),
|
|
12311
|
+
"onUpdate:value": handleUpdateValue
|
|
12312
|
+
}), null, 16, ["value", "class"]);
|
|
12313
|
+
};
|
|
12314
|
+
}
|
|
12315
|
+
});
|
|
12316
|
+
const basicTransferProps = {};
|
|
12317
|
+
const XBasicTransfer = withInstall(_sfc_main$s);
|
|
12190
12318
|
const componentMap$1 = /* @__PURE__ */ new Map();
|
|
12191
12319
|
componentMap$1.set("Input", NInput);
|
|
12192
12320
|
componentMap$1.set("InputNumber", NInputNumber);
|
|
@@ -12214,6 +12342,7 @@ componentMap$1.set("BasicText", XBasicText);
|
|
|
12214
12342
|
componentMap$1.set("BasicDatePicker", XBasicDatePicker);
|
|
12215
12343
|
componentMap$1.set("BasicCheckboxGroup", XBasicCheckboxGroup);
|
|
12216
12344
|
componentMap$1.set("BasicSelect", XBasicSelect);
|
|
12345
|
+
componentMap$1.set("BasicTransfer", XBasicTransfer);
|
|
12217
12346
|
componentMap$1.set("BasicRadioGroup", XBasicRadioGroup);
|
|
12218
12347
|
componentMap$1.set("BasicCascader", XBasicCascader);
|
|
12219
12348
|
const DEFAULT_VALUE_COMPONENTS$1 = ["Input", "InputPassword", "InputNumber", "InputSearch", "InputTextArea"];
|
|
@@ -13150,7 +13279,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
13150
13279
|
};
|
|
13151
13280
|
})
|
|
13152
13281
|
]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : createCommentVNode("", true),
|
|
13153
|
-
createVNode(_sfc_main$
|
|
13282
|
+
createVNode(_sfc_main$v, normalizeProps(guardReactiveProps(getEditBatchActionBindProps.value)), createSlots({ _: 2 }, [
|
|
13154
13283
|
renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
|
|
13155
13284
|
return {
|
|
13156
13285
|
name: item,
|
|
@@ -13746,6 +13875,7 @@ componentMap.set("BasicText", XBasicText);
|
|
|
13746
13875
|
componentMap.set("BasicDatePicker", XBasicDatePicker);
|
|
13747
13876
|
componentMap.set("BasicCheckboxGroup", XBasicCheckboxGroup);
|
|
13748
13877
|
componentMap.set("BasicSelect", XBasicSelect);
|
|
13878
|
+
componentMap.set("BasicTransfer", XBasicTransfer);
|
|
13749
13879
|
componentMap.set("BasicRadioGroup", XBasicRadioGroup);
|
|
13750
13880
|
componentMap.set("BasicCascader", XBasicCascader);
|
|
13751
13881
|
componentMap.set("BasicScrollText", XBasicScrollText);
|
|
@@ -31224,7 +31354,7 @@ VxeUI2.renderer.mixin(basicTableFilterRenderers);
|
|
|
31224
31354
|
VxeUI2.setConfig({
|
|
31225
31355
|
zIndex: 2e3
|
|
31226
31356
|
});
|
|
31227
|
-
const XBasicTable = withInstall(_sfc_main$
|
|
31357
|
+
const XBasicTable = withInstall(_sfc_main$H);
|
|
31228
31358
|
const IMPORT_PREVIEW_ROW_NO_FIELD = "rowNo";
|
|
31229
31359
|
const IMPORT_PREVIEW_ERROR_FIELD = "errorMsg";
|
|
31230
31360
|
function isErrorRow(row) {
|
|
@@ -31922,6 +32052,7 @@ const components = [
|
|
|
31922
32052
|
XBasicText,
|
|
31923
32053
|
XBasicHelp,
|
|
31924
32054
|
XBasicTitle,
|
|
32055
|
+
XBasicTransfer,
|
|
31925
32056
|
XBasicScrollText,
|
|
31926
32057
|
XBasicGradientTitle,
|
|
31927
32058
|
XBasicDrawer,
|
|
@@ -32061,6 +32192,7 @@ export {
|
|
|
32061
32192
|
XBasicTag,
|
|
32062
32193
|
XBasicText,
|
|
32063
32194
|
XBasicTitle,
|
|
32195
|
+
XBasicTransfer,
|
|
32064
32196
|
XBasicTree,
|
|
32065
32197
|
XBasicTriggerButton,
|
|
32066
32198
|
XBasicUpload,
|
|
@@ -32102,6 +32234,7 @@ export {
|
|
|
32102
32234
|
basicSelectProps,
|
|
32103
32235
|
basicSubPanelProps,
|
|
32104
32236
|
basicTableFilterRenderers,
|
|
32237
|
+
basicTransferProps,
|
|
32105
32238
|
basicUploadDraggerProps,
|
|
32106
32239
|
basicUploadProps,
|
|
32107
32240
|
configProviderProps,
|