@maxax/ui 1.1.28 → 1.1.30
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-button-export-max/BasicButtonExportMax.vue.d.ts +21 -0
- package/dist/components/basic-button-export-max/BasicButtonExportMax.vue.d.ts.map +1 -0
- package/dist/components/basic-button-export-max/context.d.ts +6 -0
- package/dist/components/basic-button-export-max/context.d.ts.map +1 -0
- package/dist/components/basic-button-export-max/index.d.ts +7 -0
- package/dist/components/basic-button-export-max/index.d.ts.map +1 -0
- package/dist/components/basic-button-export-max/interface.d.ts +26 -0
- package/dist/components/basic-button-export-max/interface.d.ts.map +1 -0
- package/dist/components/{basic-button-import-preview/BasicButtonImportPreview.vue.d.ts → basic-button-import-max/BasicButtonImportMax.vue.d.ts} +6 -6
- package/dist/components/basic-button-import-max/BasicButtonImportMax.vue.d.ts.map +1 -0
- package/dist/components/{basic-button-import-preview/BasicButtonImportPreviewModal.vue.d.ts → basic-button-import-max/BasicButtonImportMaxModal.vue.d.ts} +4 -4
- package/dist/components/basic-button-import-max/BasicButtonImportMaxModal.vue.d.ts.map +1 -0
- package/dist/components/basic-button-import-max/BasicButtonImportUploadModal.vue.d.ts.map +1 -0
- package/dist/components/basic-button-import-max/context.d.ts +6 -0
- package/dist/components/basic-button-import-max/context.d.ts.map +1 -0
- package/dist/components/basic-button-import-max/index.d.ts +7 -0
- package/dist/components/basic-button-import-max/index.d.ts.map +1 -0
- package/dist/components/{basic-button-import-preview → basic-button-import-max}/interface.d.ts +5 -5
- package/dist/components/basic-button-import-max/interface.d.ts.map +1 -0
- package/dist/components/basic-form/components/FormItem.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +81 -300
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +81 -300
- package/dist/index.mjs.map +1 -1
- package/dist/locale/lang/en.d.ts.map +1 -1
- package/dist/locale/lang/zh-cn.d.ts.map +1 -1
- package/dist/locales.cjs +6 -2
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.mjs +6 -2
- package/dist/locales.mjs.map +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/light.css +1 -1
- package/dist/{utils-BEqfRRBG.js → utils-BqJsjHj1.js} +6 -2
- package/dist/utils-BqJsjHj1.js.map +1 -0
- package/dist/{utils-COQsBuSS.cjs → utils-o29LtjNO.cjs} +6 -2
- package/dist/utils-o29LtjNO.cjs.map +1 -0
- package/package.json +3 -3
- package/dist/components/basic-button-import-preview/BasicButtonImportPreview.vue.d.ts.map +0 -1
- package/dist/components/basic-button-import-preview/BasicButtonImportPreviewModal.vue.d.ts.map +0 -1
- package/dist/components/basic-button-import-preview/BasicButtonImportUploadModal.vue.d.ts.map +0 -1
- package/dist/components/basic-button-import-preview/context.d.ts +0 -6
- package/dist/components/basic-button-import-preview/context.d.ts.map +0 -1
- package/dist/components/basic-button-import-preview/index.d.ts +0 -7
- package/dist/components/basic-button-import-preview/index.d.ts.map +0 -1
- package/dist/components/basic-button-import-preview/interface.d.ts.map +0 -1
- package/dist/components/basic-button-import-with-tpl/BasicButtonImportWithTpl.vue.d.ts +0 -23
- package/dist/components/basic-button-import-with-tpl/BasicButtonImportWithTpl.vue.d.ts.map +0 -1
- package/dist/components/basic-button-import-with-tpl/context.d.ts +0 -6
- package/dist/components/basic-button-import-with-tpl/context.d.ts.map +0 -1
- package/dist/components/basic-button-import-with-tpl/index.d.ts +0 -7
- package/dist/components/basic-button-import-with-tpl/index.d.ts.map +0 -1
- package/dist/components/basic-button-import-with-tpl/interface.d.ts +0 -20
- package/dist/components/basic-button-import-with-tpl/interface.d.ts.map +0 -1
- package/dist/utils-BEqfRRBG.js.map +0 -1
- package/dist/utils-COQsBuSS.cjs.map +0 -1
- /package/dist/components/{basic-button-import-preview → basic-button-import-max}/BasicButtonImportUploadModal.vue.d.ts +0 -0
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { camelize, isNumber, isString, removeClass, addClass, pascalCase, isClie
|
|
|
2
2
|
import { shallowRef, shallowReadonly, onUnmounted, onMounted, nextTick, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, watch, computed, unref, Fragment, isVNode, Comment, Text, watchEffect, onBeforeUnmount, inject, ref, isRef, toRaw, defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, h, useAttrs, mergeProps, createBlock, createCommentVNode, withCtx, createTextVNode, toDisplayString, createVNode, useSlots, createSlots, provide, reactive, toRefs, resolveComponent, Transition, withDirectives, withModifiers, normalizeStyle, withKeys, resolveDynamicComponent, vShow, render as render$1, useTemplateRef, renderList, normalizeProps, guardReactiveProps, triggerRef, TransitionGroup, toRef, vModelText, createApp, toHandlers, mergeDefaults } from "vue";
|
|
3
3
|
import BScroll from "@better-scroll/core";
|
|
4
4
|
import { NTooltip, NButton, NInput, NButtonGroup, NDropdown, NModal, NProgress, NSwitch, NCard, NCascader, NDatePicker, NDrawer, NDrawerContent, NSelect, NInputNumber, NUpload, NAutoComplete, NDynamicTags, NTreeSelect, NTimePicker, NCheckbox, NCheckboxGroup, NRadio, NRadioButton, NRadioGroup, NSlider, NTransfer, NDivider, NColorPicker, NRate, NCol, NFormItem, NForm, NRow, NPopover, NTabs, NTabPane, NScrollbar, NEmpty, NPagination, NSpin } from "naive-ui";
|
|
5
|
-
import { b as buildLocaleContext, z as zhCN } from "./utils-
|
|
5
|
+
import { b as buildLocaleContext, z as zhCN } from "./utils-BqJsjHj1.js";
|
|
6
6
|
import { merge, cloneDeep as cloneDeep$1, uniqBy, isBoolean as isBoolean$1, isFunction as isFunction$1, isArray as isArray$1, isString as isString$1, isEqual, get, concat, partition, omit, has, set, unset, isNumber as isNumber$1, isPlainObject } from "lodash-es";
|
|
7
7
|
import { VxePager } from "vxe-pc-ui";
|
|
8
8
|
import { VxeUI, VxePager as VxePager2 } from "vxe-pc-ui";
|
|
@@ -1128,7 +1128,7 @@ const useZIndex = (zIndexOverrides) => {
|
|
|
1128
1128
|
nextZIndex
|
|
1129
1129
|
};
|
|
1130
1130
|
};
|
|
1131
|
-
const _sfc_main
|
|
1131
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
1132
1132
|
__name: "better-scroll",
|
|
1133
1133
|
props: {
|
|
1134
1134
|
options: {}
|
|
@@ -2853,8 +2853,8 @@ const Icon = defineComponent((props, { emit }) => {
|
|
|
2853
2853
|
],
|
|
2854
2854
|
emits: ["load"]
|
|
2855
2855
|
});
|
|
2856
|
-
const _hoisted_1$
|
|
2857
|
-
const _sfc_main
|
|
2856
|
+
const _hoisted_1$d = ["xlink:href"];
|
|
2857
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
2858
2858
|
__name: "BasicSvgIcon",
|
|
2859
2859
|
props: {
|
|
2860
2860
|
icon: {},
|
|
@@ -2888,7 +2888,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
2888
2888
|
createElementVNode("use", {
|
|
2889
2889
|
"xlink:href": symbolId.value,
|
|
2890
2890
|
fill: "currentColor"
|
|
2891
|
-
}, null, 8, _hoisted_1$
|
|
2891
|
+
}, null, 8, _hoisted_1$d)
|
|
2892
2892
|
], 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2893
2893
|
__props.icon ? (openBlock(), createBlock(unref(Icon), mergeProps({
|
|
2894
2894
|
key: 0,
|
|
@@ -2900,8 +2900,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
2900
2900
|
};
|
|
2901
2901
|
}
|
|
2902
2902
|
});
|
|
2903
|
-
const XBasicSvgIcon = withInstall(_sfc_main
|
|
2904
|
-
const _sfc_main$
|
|
2903
|
+
const XBasicSvgIcon = withInstall(_sfc_main$_);
|
|
2904
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
2905
2905
|
...{
|
|
2906
2906
|
inheritAttrs: false
|
|
2907
2907
|
},
|
|
@@ -2950,7 +2950,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
2950
2950
|
};
|
|
2951
2951
|
}
|
|
2952
2952
|
});
|
|
2953
|
-
const _sfc_main$
|
|
2953
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
2954
2954
|
__name: "full-screen",
|
|
2955
2955
|
props: {
|
|
2956
2956
|
full: { type: Boolean }
|
|
@@ -2958,7 +2958,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
2958
2958
|
setup(__props) {
|
|
2959
2959
|
const { t } = useLocale();
|
|
2960
2960
|
return (_ctx, _cache) => {
|
|
2961
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2961
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
2962
2962
|
key: String(__props.full),
|
|
2963
2963
|
"tooltip-content": __props.full ? unref(t)("max.icon.fullscreenExit") : unref(t)("max.icon.fullscreen")
|
|
2964
2964
|
}, {
|
|
@@ -2976,7 +2976,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
2978
|
});
|
|
2979
|
-
const _sfc_main$
|
|
2979
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
2980
2980
|
__name: "icon-tooltip",
|
|
2981
2981
|
props: {
|
|
2982
2982
|
icon: { default: "mdi-help-circle" },
|
|
@@ -3016,7 +3016,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
3016
3016
|
};
|
|
3017
3017
|
}
|
|
3018
3018
|
});
|
|
3019
|
-
const _sfc_main$
|
|
3019
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
3020
3020
|
__name: "menu-toggler",
|
|
3021
3021
|
props: {
|
|
3022
3022
|
collapsed: { type: Boolean },
|
|
@@ -3042,7 +3042,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
3042
3042
|
return icons[arrowIcon][collapsed];
|
|
3043
3043
|
});
|
|
3044
3044
|
return (_ctx, _cache) => {
|
|
3045
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3045
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
3046
3046
|
key: String(__props.collapsed),
|
|
3047
3047
|
"tooltip-content": __props.collapsed ? unref(t)("max.icon.expand") : unref(t)("max.icon.collapse"),
|
|
3048
3048
|
"tooltip-placement": "bottom-start",
|
|
@@ -3056,7 +3056,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
3056
3056
|
};
|
|
3057
3057
|
}
|
|
3058
3058
|
});
|
|
3059
|
-
const _sfc_main$
|
|
3059
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
3060
3060
|
__name: "pin-toggler",
|
|
3061
3061
|
props: {
|
|
3062
3062
|
pin: { type: Boolean }
|
|
@@ -3066,7 +3066,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
3066
3066
|
const { t } = useLocale();
|
|
3067
3067
|
const icon = computed(() => props.pin ? "mdi-pin-off" : "mdi-pin");
|
|
3068
3068
|
return (_ctx, _cache) => {
|
|
3069
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3069
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
3070
3070
|
"tooltip-content": __props.pin ? unref(t)("max.icon.unpin") : unref(t)("max.icon.pin"),
|
|
3071
3071
|
"tooltip-placement": "bottom-start",
|
|
3072
3072
|
"z-index": 100
|
|
@@ -3079,7 +3079,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
3079
3079
|
};
|
|
3080
3080
|
}
|
|
3081
3081
|
});
|
|
3082
|
-
const _sfc_main$
|
|
3082
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
3083
3083
|
__name: "reload-button",
|
|
3084
3084
|
props: {
|
|
3085
3085
|
loading: { type: Boolean }
|
|
@@ -3088,7 +3088,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
3088
3088
|
const { t } = useLocale();
|
|
3089
3089
|
const { b } = useNamespace("reload-button");
|
|
3090
3090
|
return (_ctx, _cache) => {
|
|
3091
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3091
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
3092
3092
|
"tooltip-content": unref(t)("max.icon.reload")
|
|
3093
3093
|
}, {
|
|
3094
3094
|
default: withCtx(() => [
|
|
@@ -3102,14 +3102,14 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
3102
3102
|
};
|
|
3103
3103
|
}
|
|
3104
3104
|
});
|
|
3105
|
-
const XCommonBetterScroll = withInstall(_sfc_main
|
|
3106
|
-
const XCommonButtonIcon = withInstall(_sfc_main$
|
|
3107
|
-
const XCommonFullScreen = withInstall(_sfc_main$
|
|
3108
|
-
const XCommonIconTooltip = withInstall(_sfc_main$
|
|
3109
|
-
const XCommonMenuToggler = withInstall(_sfc_main$
|
|
3110
|
-
const XCommonPinToggler = withInstall(_sfc_main$
|
|
3111
|
-
const XCommonReloadButton = withInstall(_sfc_main$
|
|
3112
|
-
const _sfc_main$
|
|
3105
|
+
const XCommonBetterScroll = withInstall(_sfc_main$$);
|
|
3106
|
+
const XCommonButtonIcon = withInstall(_sfc_main$Z);
|
|
3107
|
+
const XCommonFullScreen = withInstall(_sfc_main$Y);
|
|
3108
|
+
const XCommonIconTooltip = withInstall(_sfc_main$X);
|
|
3109
|
+
const XCommonMenuToggler = withInstall(_sfc_main$W);
|
|
3110
|
+
const XCommonPinToggler = withInstall(_sfc_main$V);
|
|
3111
|
+
const XCommonReloadButton = withInstall(_sfc_main$U);
|
|
3112
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
3113
3113
|
__name: "BasicButton",
|
|
3114
3114
|
props: {
|
|
3115
3115
|
size: {},
|
|
@@ -3164,7 +3164,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3164
3164
|
};
|
|
3165
3165
|
}
|
|
3166
3166
|
});
|
|
3167
|
-
const XBasicButton = withInstall(_sfc_main$
|
|
3167
|
+
const XBasicButton = withInstall(_sfc_main$T);
|
|
3168
3168
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
3169
3169
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
3170
3170
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -3385,7 +3385,7 @@ const basicMessageBoxProps = {
|
|
|
3385
3385
|
default: ""
|
|
3386
3386
|
}
|
|
3387
3387
|
};
|
|
3388
|
-
const _sfc_main$
|
|
3388
|
+
const _sfc_main$S = defineComponent({
|
|
3389
3389
|
components: {
|
|
3390
3390
|
NButton,
|
|
3391
3391
|
NInput,
|
|
@@ -3625,7 +3625,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
3625
3625
|
}
|
|
3626
3626
|
return target;
|
|
3627
3627
|
};
|
|
3628
|
-
const _hoisted_1$
|
|
3628
|
+
const _hoisted_1$c = ["aria-label", "aria-describedby"];
|
|
3629
3629
|
const _hoisted_2$4 = ["id"];
|
|
3630
3630
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3631
3631
|
const _component_BasicSvgIcon = resolveComponent("BasicSvgIcon");
|
|
@@ -3783,7 +3783,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3783
3783
|
])
|
|
3784
3784
|
], 2)
|
|
3785
3785
|
], 6)
|
|
3786
|
-
], 42, _hoisted_1$
|
|
3786
|
+
], 42, _hoisted_1$c)
|
|
3787
3787
|
]),
|
|
3788
3788
|
_: 3
|
|
3789
3789
|
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
@@ -3793,7 +3793,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3793
3793
|
_: 3
|
|
3794
3794
|
});
|
|
3795
3795
|
}
|
|
3796
|
-
const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3796
|
+
const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$2]]);
|
|
3797
3797
|
const messageInstance = /* @__PURE__ */ new Map();
|
|
3798
3798
|
const getAppendToElement = (props) => {
|
|
3799
3799
|
let appendTo = document.body;
|
|
@@ -3919,7 +3919,7 @@ MessageBox.close = () => {
|
|
|
3919
3919
|
MessageBox._context = null;
|
|
3920
3920
|
const $MessageBox = MessageBox;
|
|
3921
3921
|
const XBasicMessageBox = $MessageBox;
|
|
3922
|
-
const _sfc_main$
|
|
3922
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
3923
3923
|
__name: "BasicActionFooter",
|
|
3924
3924
|
props: {
|
|
3925
3925
|
showDeleteButton: { type: Boolean, default: false },
|
|
@@ -4001,8 +4001,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
4001
4001
|
};
|
|
4002
4002
|
}
|
|
4003
4003
|
});
|
|
4004
|
-
const XBasicActionFooter = withInstall(_sfc_main$
|
|
4005
|
-
const _sfc_main$
|
|
4004
|
+
const XBasicActionFooter = withInstall(_sfc_main$R);
|
|
4005
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
4006
4006
|
__name: "BasicArrow",
|
|
4007
4007
|
props: {
|
|
4008
4008
|
expand: { type: Boolean },
|
|
@@ -4034,8 +4034,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
4034
4034
|
};
|
|
4035
4035
|
}
|
|
4036
4036
|
});
|
|
4037
|
-
const XBasicArrow = withInstall(_sfc_main$
|
|
4038
|
-
const _sfc_main$
|
|
4037
|
+
const XBasicArrow = withInstall(_sfc_main$Q);
|
|
4038
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
4039
4039
|
__name: "BasicButtonCreate",
|
|
4040
4040
|
emits: ["click"],
|
|
4041
4041
|
setup(__props, { emit: __emit }) {
|
|
@@ -4060,7 +4060,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4060
4060
|
};
|
|
4061
4061
|
}
|
|
4062
4062
|
});
|
|
4063
|
-
const _sfc_main$
|
|
4063
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
4064
4064
|
__name: "BasicButtonDelete",
|
|
4065
4065
|
emits: ["click"],
|
|
4066
4066
|
setup(__props, { emit: __emit }) {
|
|
@@ -4085,7 +4085,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
4085
4085
|
};
|
|
4086
4086
|
}
|
|
4087
4087
|
});
|
|
4088
|
-
const _sfc_main$
|
|
4088
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
4089
4089
|
__name: "BasicButtonDrop",
|
|
4090
4090
|
props: {
|
|
4091
4091
|
disabled: { type: Boolean },
|
|
@@ -4150,7 +4150,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
4150
4150
|
};
|
|
4151
4151
|
}
|
|
4152
4152
|
});
|
|
4153
|
-
const _sfc_main$
|
|
4153
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
4154
4154
|
__name: "BasicButtonEdit",
|
|
4155
4155
|
emits: ["click"],
|
|
4156
4156
|
setup(__props, { emit: __emit }) {
|
|
@@ -4175,7 +4175,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
4175
4175
|
};
|
|
4176
4176
|
}
|
|
4177
4177
|
});
|
|
4178
|
-
const _sfc_main$
|
|
4178
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
4179
4179
|
__name: "BasicButtonExport",
|
|
4180
4180
|
props: {
|
|
4181
4181
|
href: {},
|
|
@@ -4226,7 +4226,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
4226
4226
|
};
|
|
4227
4227
|
}
|
|
4228
4228
|
});
|
|
4229
|
-
const _sfc_main$
|
|
4229
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
4230
4230
|
__name: "BasicButtonExportDrop",
|
|
4231
4231
|
props: {
|
|
4232
4232
|
disabled: { type: Boolean },
|
|
@@ -4250,7 +4250,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
4250
4250
|
emit("click", key2);
|
|
4251
4251
|
}
|
|
4252
4252
|
return (_ctx, _cache) => {
|
|
4253
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4253
|
+
return openBlock(), createBlock(_sfc_main$N, {
|
|
4254
4254
|
icon: __props.icon,
|
|
4255
4255
|
options: cOptions.value,
|
|
4256
4256
|
onClick: handleClick
|
|
@@ -4263,8 +4263,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
4263
4263
|
};
|
|
4264
4264
|
}
|
|
4265
4265
|
});
|
|
4266
|
-
const _hoisted_1$
|
|
4267
|
-
const _sfc_main$
|
|
4266
|
+
const _hoisted_1$b = ["multiple", "name", "accept"];
|
|
4267
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
4268
4268
|
__name: "BasicButtonImport",
|
|
4269
4269
|
props: {
|
|
4270
4270
|
name: { default: "file" },
|
|
@@ -4351,7 +4351,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4351
4351
|
accept: __props.accept,
|
|
4352
4352
|
style: normalizeStyle(buttonStyle.value),
|
|
4353
4353
|
onChange: onFileChange
|
|
4354
|
-
}, null, 44, _hoisted_1$
|
|
4354
|
+
}, null, 44, _hoisted_1$b)),
|
|
4355
4355
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4356
4356
|
createTextVNode(toDisplayString(unref(t)("max.basic.import")), 1)
|
|
4357
4357
|
])
|
|
@@ -4361,7 +4361,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4361
4361
|
};
|
|
4362
4362
|
}
|
|
4363
4363
|
});
|
|
4364
|
-
const _sfc_main$
|
|
4364
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4365
4365
|
__name: "BasicButtonPrint",
|
|
4366
4366
|
emits: ["click"],
|
|
4367
4367
|
setup(__props, { emit: __emit }) {
|
|
@@ -4386,18 +4386,18 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4386
4386
|
};
|
|
4387
4387
|
}
|
|
4388
4388
|
});
|
|
4389
|
-
const XBasicButtonCreate = withInstall(_sfc_main$
|
|
4390
|
-
const XBasicButtonEdit = withInstall(_sfc_main$
|
|
4391
|
-
const XBasicButtonDelete = withInstall(_sfc_main$
|
|
4392
|
-
const XBasicButtonExport = withInstall(_sfc_main$
|
|
4393
|
-
const XBasicButtonImport = withInstall(_sfc_main$
|
|
4394
|
-
const XBasicButtonPrint = withInstall(_sfc_main$
|
|
4395
|
-
const XBasicButtonDrop = withInstall(_sfc_main$
|
|
4396
|
-
const XBasicButtonExportDrop = withInstall(_sfc_main$
|
|
4389
|
+
const XBasicButtonCreate = withInstall(_sfc_main$P);
|
|
4390
|
+
const XBasicButtonEdit = withInstall(_sfc_main$M);
|
|
4391
|
+
const XBasicButtonDelete = withInstall(_sfc_main$O);
|
|
4392
|
+
const XBasicButtonExport = withInstall(_sfc_main$L);
|
|
4393
|
+
const XBasicButtonImport = withInstall(_sfc_main$J);
|
|
4394
|
+
const XBasicButtonPrint = withInstall(_sfc_main$I);
|
|
4395
|
+
const XBasicButtonDrop = withInstall(_sfc_main$N);
|
|
4396
|
+
const XBasicButtonExportDrop = withInstall(_sfc_main$K);
|
|
4397
4397
|
function _isSlot$3(s) {
|
|
4398
4398
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
4399
4399
|
}
|
|
4400
|
-
const _sfc_main$
|
|
4400
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
4401
4401
|
name: "ButtonGroupItem",
|
|
4402
4402
|
props: {
|
|
4403
4403
|
schema: {
|
|
@@ -4750,7 +4750,7 @@ function useButtonGroupSchema({ getProps, schemaRef }) {
|
|
|
4750
4750
|
});
|
|
4751
4751
|
return { getSchema };
|
|
4752
4752
|
}
|
|
4753
|
-
const _sfc_main$
|
|
4753
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
4754
4754
|
__name: "BasicButtonGroup",
|
|
4755
4755
|
props: {
|
|
4756
4756
|
showReturnButton: { type: Boolean },
|
|
@@ -4831,7 +4831,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
4831
4831
|
return (_ctx, _cache) => {
|
|
4832
4832
|
return openBlock(), createElementBlock("div", mergeProps({ class: unref(getWrapperClass) }, getBindValue.value), [
|
|
4833
4833
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
|
|
4834
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4834
|
+
return openBlock(), createBlock(_sfc_main$H, {
|
|
4835
4835
|
key: schema.field,
|
|
4836
4836
|
schema,
|
|
4837
4837
|
"button-group-action-type": buttonGroupActionType,
|
|
@@ -4852,12 +4852,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
4852
4852
|
};
|
|
4853
4853
|
}
|
|
4854
4854
|
});
|
|
4855
|
-
const XBasicButtonGroup = withInstall(_sfc_main$
|
|
4856
|
-
const _hoisted_1$
|
|
4855
|
+
const XBasicButtonGroup = withInstall(_sfc_main$G);
|
|
4856
|
+
const _hoisted_1$a = ["id"];
|
|
4857
4857
|
const _hoisted_2$3 = ["textContent"];
|
|
4858
4858
|
const _hoisted_3 = { key: 0 };
|
|
4859
4859
|
const _hoisted_4 = ["innerHTML"];
|
|
4860
|
-
const _sfc_main$
|
|
4860
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
4861
4861
|
__name: "BasicNotification",
|
|
4862
4862
|
props: {
|
|
4863
4863
|
customClass: { default: "" },
|
|
@@ -4993,7 +4993,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
4993
4993
|
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
4994
4994
|
])
|
|
4995
4995
|
], 2)
|
|
4996
|
-
], 46, _hoisted_1$
|
|
4996
|
+
], 46, _hoisted_1$a), [
|
|
4997
4997
|
[vShow, visible.value]
|
|
4998
4998
|
])
|
|
4999
4999
|
]),
|
|
@@ -5044,7 +5044,7 @@ const notify = (options, context) => {
|
|
|
5044
5044
|
appendTo = document.body;
|
|
5045
5045
|
}
|
|
5046
5046
|
const container = document.createElement("div");
|
|
5047
|
-
const vm = createVNode(_sfc_main$
|
|
5047
|
+
const vm = createVNode(_sfc_main$F, props, isFunction(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
|
|
5048
5048
|
vm.appContext = isUndefined(context) ? notify._context : context;
|
|
5049
5049
|
vm.props.onDestroy = () => {
|
|
5050
5050
|
render$1(null, container);
|
|
@@ -5938,8 +5938,8 @@ function useTableForm(propsRef, { fetch: fetch2, getLoading, setPagination, setS
|
|
|
5938
5938
|
handleSearchInfoReload
|
|
5939
5939
|
};
|
|
5940
5940
|
}
|
|
5941
|
-
const _hoisted_1$
|
|
5942
|
-
const _sfc_main$
|
|
5941
|
+
const _hoisted_1$9 = { class: "max-table-selection-count" };
|
|
5942
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
5943
5943
|
__name: "BasicTable",
|
|
5944
5944
|
props: {
|
|
5945
5945
|
layouts: {},
|
|
@@ -6388,7 +6388,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
6388
6388
|
class: normalizeClass(unref(e)("selection-count"))
|
|
6389
6389
|
}, [
|
|
6390
6390
|
createElementVNode("span", null, toDisplayString(unref(t)("max.basic.selected")), 1),
|
|
6391
|
-
createElementVNode("span", _hoisted_1$
|
|
6391
|
+
createElementVNode("span", _hoisted_1$9, toDisplayString(unref(getSelectRows)().length), 1),
|
|
6392
6392
|
createElementVNode("span", null, toDisplayString(unref(t)("max.basic.item")), 1)
|
|
6393
6393
|
], 2)
|
|
6394
6394
|
], 2)) : createCommentVNode("", true),
|
|
@@ -6456,9 +6456,9 @@ VxeUI2.formats.mixin(vxeTableFormatter);
|
|
|
6456
6456
|
VxeUI2.setConfig({
|
|
6457
6457
|
zIndex: 2e3
|
|
6458
6458
|
});
|
|
6459
|
-
const XBasicTable = withInstall(_sfc_main$
|
|
6460
|
-
const _sfc_main$
|
|
6461
|
-
__name: "
|
|
6459
|
+
const XBasicTable = withInstall(_sfc_main$E);
|
|
6460
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
6461
|
+
__name: "BasicButtonImportMaxModal",
|
|
6462
6462
|
props: {
|
|
6463
6463
|
previewWidth: {},
|
|
6464
6464
|
previewColumns: {},
|
|
@@ -6470,7 +6470,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6470
6470
|
const props = __props;
|
|
6471
6471
|
const emit = __emit;
|
|
6472
6472
|
const basicTableRef = useTemplateRef("basicTableRef");
|
|
6473
|
-
const { b: bm, e: em } = useNamespace("basic-button-import-
|
|
6473
|
+
const { b: bm, e: em } = useNamespace("basic-button-import-max-modal");
|
|
6474
6474
|
const { t } = useLocale();
|
|
6475
6475
|
const tableDataCount = ref(0);
|
|
6476
6476
|
const { visible, show, hide } = useBasicDrawerModal({
|
|
@@ -8225,8 +8225,8 @@ const BasicUpload = /* @__PURE__ */ defineComponent({
|
|
|
8225
8225
|
}
|
|
8226
8226
|
});
|
|
8227
8227
|
const XBasicUpload = withInstall(BasicUpload);
|
|
8228
|
-
const _hoisted_1$
|
|
8229
|
-
const _sfc_main$
|
|
8228
|
+
const _hoisted_1$8 = { key: 0 };
|
|
8229
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
8230
8230
|
__name: "BasicButtonImportUploadModal",
|
|
8231
8231
|
props: {
|
|
8232
8232
|
width: {},
|
|
@@ -8237,7 +8237,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8237
8237
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8238
8238
|
const props = __props;
|
|
8239
8239
|
const emit = __emit;
|
|
8240
|
-
const { b: bm, e: em } = useNamespace("basic-button-import-
|
|
8240
|
+
const { b: bm, e: em } = useNamespace("basic-button-import-max-modal");
|
|
8241
8241
|
const { t } = useLocale();
|
|
8242
8242
|
const fileList = ref([]);
|
|
8243
8243
|
const checked = ref(false);
|
|
@@ -8292,7 +8292,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8292
8292
|
createElementVNode("div", {
|
|
8293
8293
|
class: normalizeClass(unref(em)("footer-left"))
|
|
8294
8294
|
}, [
|
|
8295
|
-
props.showCoverSwitch ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
8295
|
+
props.showCoverSwitch ? (openBlock(), createElementBlock("span", _hoisted_1$8, [
|
|
8296
8296
|
createElementVNode("span", {
|
|
8297
8297
|
class: normalizeClass([unref(em)("footer-text"), { [unref(em)("footer-text--checked")]: checked.value }])
|
|
8298
8298
|
}, toDisplayString(unref(t)("max.import.updateExisting")), 3),
|
|
@@ -8379,8 +8379,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8379
8379
|
};
|
|
8380
8380
|
}
|
|
8381
8381
|
});
|
|
8382
|
-
const _sfc_main$
|
|
8383
|
-
__name: "
|
|
8382
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
8383
|
+
__name: "BasicButtonImportMax",
|
|
8384
8384
|
props: {
|
|
8385
8385
|
showTplButton: { type: Boolean, default: true },
|
|
8386
8386
|
showCoverSwitch: { type: Boolean },
|
|
@@ -8406,7 +8406,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8406
8406
|
const emit = __emit;
|
|
8407
8407
|
const previewModalRef = useTemplateRef("previewModalRef");
|
|
8408
8408
|
const uploadModalRef = useTemplateRef("uploadModalRef");
|
|
8409
|
-
const { b } = useNamespace("basic-button-import-
|
|
8409
|
+
const { b } = useNamespace("basic-button-import-max");
|
|
8410
8410
|
const { t } = useLocale();
|
|
8411
8411
|
const attrs = useAttrs();
|
|
8412
8412
|
const currentFile = ref(null);
|
|
@@ -8531,7 +8531,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8531
8531
|
_: 3
|
|
8532
8532
|
}, 16)
|
|
8533
8533
|
], 2),
|
|
8534
|
-
createVNode(_sfc_main$
|
|
8534
|
+
createVNode(_sfc_main$C, {
|
|
8535
8535
|
ref_key: "uploadModalRef",
|
|
8536
8536
|
ref: uploadModalRef,
|
|
8537
8537
|
width: props.width,
|
|
@@ -8540,7 +8540,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8540
8540
|
onConfirm: onUploadConfirm,
|
|
8541
8541
|
onDownloadTemplate: onExport
|
|
8542
8542
|
}, null, 8, ["width", "show-tpl-button", "show-cover-switch"]),
|
|
8543
|
-
createVNode(_sfc_main$
|
|
8543
|
+
createVNode(_sfc_main$D, {
|
|
8544
8544
|
ref_key: "previewModalRef",
|
|
8545
8545
|
ref: previewModalRef,
|
|
8546
8546
|
"preview-width": props.previewWidth,
|
|
@@ -8553,224 +8553,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8553
8553
|
};
|
|
8554
8554
|
}
|
|
8555
8555
|
});
|
|
8556
|
-
const
|
|
8557
|
-
const _hoisted_1$8 = { key: 0 };
|
|
8558
|
-
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
8559
|
-
__name: "BasicButtonImportWithTpl",
|
|
8560
|
-
props: {
|
|
8561
|
-
showTplButton: { type: Boolean, default: true },
|
|
8562
|
-
showCoverSwitch: { type: Boolean },
|
|
8563
|
-
width: {},
|
|
8564
|
-
href: {},
|
|
8565
|
-
importApi: {},
|
|
8566
|
-
templateApi: {},
|
|
8567
|
-
handleSearchInfoFn: {}
|
|
8568
|
-
},
|
|
8569
|
-
emits: ["confirm"],
|
|
8570
|
-
setup(__props, { emit: __emit }) {
|
|
8571
|
-
const props = __props;
|
|
8572
|
-
const emit = __emit;
|
|
8573
|
-
const { b } = useNamespace("basic-button-import-with-tpl");
|
|
8574
|
-
const { b: bm, e: em } = useNamespace("basic-button-import-with-tpl-modal");
|
|
8575
|
-
const { t } = useLocale();
|
|
8576
|
-
const attrs = useAttrs();
|
|
8577
|
-
const visible = ref(false);
|
|
8578
|
-
const fileList = ref([]);
|
|
8579
|
-
const checked = ref(false);
|
|
8580
|
-
const loading = ref(false);
|
|
8581
|
-
const modalStyle = computed(() => {
|
|
8582
|
-
return { width: props.width || "630px" };
|
|
8583
|
-
});
|
|
8584
|
-
async function onImport() {
|
|
8585
|
-
const { importApi, handleSearchInfoFn } = props;
|
|
8586
|
-
if (!importApi || loading.value) return;
|
|
8587
|
-
try {
|
|
8588
|
-
loading.value = true;
|
|
8589
|
-
const po = new FormData();
|
|
8590
|
-
po.append("file", fileList.value[0].originFileObj);
|
|
8591
|
-
const params = handleSearchInfoFn ? handleSearchInfoFn(po) : po;
|
|
8592
|
-
const { error, data } = await importApi(params);
|
|
8593
|
-
if (error) return;
|
|
8594
|
-
emit("confirm", { data, checked: checked.value });
|
|
8595
|
-
visible.value = false;
|
|
8596
|
-
} catch (error) {
|
|
8597
|
-
console.error(error);
|
|
8598
|
-
} finally {
|
|
8599
|
-
loading.value = false;
|
|
8600
|
-
}
|
|
8601
|
-
}
|
|
8602
|
-
async function onExport() {
|
|
8603
|
-
if (props.href) {
|
|
8604
|
-
const url = typeof props.href === "function" ? props.href() : props.href;
|
|
8605
|
-
window.open(url, "_blank");
|
|
8606
|
-
return;
|
|
8607
|
-
}
|
|
8608
|
-
const { templateApi } = props;
|
|
8609
|
-
if (!templateApi) {
|
|
8610
|
-
XBasicNotification.error(t("max.import.noTemplateApi"));
|
|
8611
|
-
return;
|
|
8612
|
-
}
|
|
8613
|
-
try {
|
|
8614
|
-
loading.value = true;
|
|
8615
|
-
const { error, response } = await templateApi();
|
|
8616
|
-
if (error) return;
|
|
8617
|
-
XBasicNotification.success(t("max.import.exportSuccess"));
|
|
8618
|
-
downloadFileByResponseData(response);
|
|
8619
|
-
} catch (error) {
|
|
8620
|
-
console.error(error);
|
|
8621
|
-
} finally {
|
|
8622
|
-
loading.value = false;
|
|
8623
|
-
}
|
|
8624
|
-
}
|
|
8625
|
-
const beforeUpload = (file) => {
|
|
8626
|
-
const isLt2M = (file.size || 0) / 1024 / 1024 < 50;
|
|
8627
|
-
if (!isLt2M) {
|
|
8628
|
-
XBasicNotification.error(t("max.import.fileSizeLimit"));
|
|
8629
|
-
return false;
|
|
8630
|
-
}
|
|
8631
|
-
return false;
|
|
8632
|
-
};
|
|
8633
|
-
function onPositiveClickHandler() {
|
|
8634
|
-
if (fileList.value.length === 0) {
|
|
8635
|
-
XBasicNotification.error(t("max.import.uploadFile"));
|
|
8636
|
-
return;
|
|
8637
|
-
}
|
|
8638
|
-
XBasicMessageBox.confirm(t("max.import.confirmImport"), {
|
|
8639
|
-
confirmButtonText: t("max.import.confirm"),
|
|
8640
|
-
cancelButtonText: t("max.import.cancel")
|
|
8641
|
-
}).then(() => {
|
|
8642
|
-
onImport();
|
|
8643
|
-
}).catch(() => {
|
|
8644
|
-
});
|
|
8645
|
-
}
|
|
8646
|
-
function onClickHandler() {
|
|
8647
|
-
fileList.value = [];
|
|
8648
|
-
visible.value = true;
|
|
8649
|
-
}
|
|
8650
|
-
function downloadTemplate() {
|
|
8651
|
-
onExport();
|
|
8652
|
-
}
|
|
8653
|
-
return (_ctx, _cache) => {
|
|
8654
|
-
return openBlock(), createElementBlock("span", null, [
|
|
8655
|
-
createElementVNode("div", {
|
|
8656
|
-
class: normalizeClass(unref(b)())
|
|
8657
|
-
}, [
|
|
8658
|
-
createVNode(unref(XBasicButton), mergeProps({
|
|
8659
|
-
icon: "ri:import-line",
|
|
8660
|
-
type: "primary"
|
|
8661
|
-
}, unref(attrs), { onClick: onClickHandler }), {
|
|
8662
|
-
default: withCtx(() => [
|
|
8663
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
8664
|
-
createTextVNode(toDisplayString(unref(t)("max.import.import")), 1)
|
|
8665
|
-
])
|
|
8666
|
-
]),
|
|
8667
|
-
_: 3
|
|
8668
|
-
}, 16)
|
|
8669
|
-
], 2),
|
|
8670
|
-
createVNode(unref(NModal), {
|
|
8671
|
-
show: visible.value,
|
|
8672
|
-
"onUpdate:show": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
|
|
8673
|
-
segmented: { footer: "soft" },
|
|
8674
|
-
closable: false,
|
|
8675
|
-
preset: "card",
|
|
8676
|
-
class: normalizeClass(unref(bm)()),
|
|
8677
|
-
style: normalizeStyle(modalStyle.value)
|
|
8678
|
-
}, {
|
|
8679
|
-
footer: withCtx(() => [
|
|
8680
|
-
createElementVNode("span", {
|
|
8681
|
-
class: normalizeClass(unref(em)("footer"))
|
|
8682
|
-
}, [
|
|
8683
|
-
createElementVNode("div", {
|
|
8684
|
-
class: normalizeClass(unref(em)("footer-left"))
|
|
8685
|
-
}, [
|
|
8686
|
-
__props.showCoverSwitch ? (openBlock(), createElementBlock("span", _hoisted_1$8, [
|
|
8687
|
-
createElementVNode("span", {
|
|
8688
|
-
class: normalizeClass([unref(em)("footer-text"), { [unref(em)("footer-text--checked")]: checked.value }])
|
|
8689
|
-
}, toDisplayString(unref(t)("max.import.updateExisting")), 3),
|
|
8690
|
-
createVNode(unref(NSwitch), {
|
|
8691
|
-
checked: checked.value,
|
|
8692
|
-
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => checked.value = $event),
|
|
8693
|
-
class: normalizeClass(unref(em)("footer-switch"))
|
|
8694
|
-
}, null, 8, ["checked", "class"])
|
|
8695
|
-
])) : createCommentVNode("", true)
|
|
8696
|
-
], 2),
|
|
8697
|
-
createElementVNode("span", {
|
|
8698
|
-
class: normalizeClass(unref(em)("footer-right"))
|
|
8699
|
-
}, [
|
|
8700
|
-
createVNode(unref(XBasicButton), {
|
|
8701
|
-
class: normalizeClass(unref(em)("footer-btn")),
|
|
8702
|
-
onClick: _cache[2] || (_cache[2] = ($event) => visible.value = false)
|
|
8703
|
-
}, {
|
|
8704
|
-
default: withCtx(() => [
|
|
8705
|
-
createTextVNode(toDisplayString(unref(t)("max.import.cancel")), 1)
|
|
8706
|
-
]),
|
|
8707
|
-
_: 1
|
|
8708
|
-
}, 8, ["class"]),
|
|
8709
|
-
createVNode(unref(XBasicButton), {
|
|
8710
|
-
type: "primary",
|
|
8711
|
-
onClick: onPositiveClickHandler
|
|
8712
|
-
}, {
|
|
8713
|
-
default: withCtx(() => [
|
|
8714
|
-
createTextVNode(toDisplayString(unref(t)("max.import.confirm")), 1)
|
|
8715
|
-
]),
|
|
8716
|
-
_: 1
|
|
8717
|
-
})
|
|
8718
|
-
], 2)
|
|
8719
|
-
], 2)
|
|
8720
|
-
]),
|
|
8721
|
-
default: withCtx(() => [
|
|
8722
|
-
createElementVNode("div", null, [
|
|
8723
|
-
createVNode(unref(XBasicUpload), {
|
|
8724
|
-
"file-list": fileList.value,
|
|
8725
|
-
"onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => fileList.value = $event),
|
|
8726
|
-
"before-upload": beforeUpload,
|
|
8727
|
-
"show-upload-list": "",
|
|
8728
|
-
type: "drag",
|
|
8729
|
-
"max-count": 1,
|
|
8730
|
-
accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
|
|
8731
|
-
}, {
|
|
8732
|
-
default: withCtx(() => [
|
|
8733
|
-
createElementVNode("p", {
|
|
8734
|
-
class: normalizeClass(unref(em)("upload-icon"))
|
|
8735
|
-
}, [
|
|
8736
|
-
createVNode(unref(XBasicSvgIcon), {
|
|
8737
|
-
icon: "ri:upload-2-line",
|
|
8738
|
-
class: normalizeClass(unref(em)("upload-icon-svg"))
|
|
8739
|
-
}, null, 8, ["class"])
|
|
8740
|
-
], 2),
|
|
8741
|
-
createElementVNode("p", {
|
|
8742
|
-
class: normalizeClass(unref(em)("upload-text"))
|
|
8743
|
-
}, toDisplayString(unref(t)("max.import.uploadTip")), 3)
|
|
8744
|
-
]),
|
|
8745
|
-
_: 1
|
|
8746
|
-
}, 8, ["file-list"]),
|
|
8747
|
-
__props.showTplButton ? (openBlock(), createElementBlock("div", {
|
|
8748
|
-
key: 0,
|
|
8749
|
-
class: normalizeClass(unref(em)("tips"))
|
|
8750
|
-
}, [
|
|
8751
|
-
createElementVNode("span", null, toDisplayString(unref(t)("max.import.allowedFormats")), 1),
|
|
8752
|
-
createVNode(unref(XBasicButton), {
|
|
8753
|
-
type: "primary",
|
|
8754
|
-
size: "tiny",
|
|
8755
|
-
secondary: "",
|
|
8756
|
-
icon: "ri-file-excel-2-line",
|
|
8757
|
-
onClick: downloadTemplate
|
|
8758
|
-
}, {
|
|
8759
|
-
default: withCtx(() => [
|
|
8760
|
-
createTextVNode(toDisplayString(unref(t)("max.import.downloadTemplate")), 1)
|
|
8761
|
-
]),
|
|
8762
|
-
_: 1
|
|
8763
|
-
})
|
|
8764
|
-
], 2)) : createCommentVNode("", true)
|
|
8765
|
-
])
|
|
8766
|
-
]),
|
|
8767
|
-
_: 1
|
|
8768
|
-
}, 8, ["show", "class", "style"])
|
|
8769
|
-
]);
|
|
8770
|
-
};
|
|
8771
|
-
}
|
|
8772
|
-
});
|
|
8773
|
-
const XBasicButtonImportWithTpl = withInstall(_sfc_main$B);
|
|
8556
|
+
const XBasicButtonImportMax = withInstall(_sfc_main$B);
|
|
8774
8557
|
const _hoisted_1$7 = ["title"];
|
|
8775
8558
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
8776
8559
|
__name: "BasicText",
|
|
@@ -8810,7 +8593,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8810
8593
|
class: normalizeClass(basicTextClass.value),
|
|
8811
8594
|
title: unref(isString)(unref(mergedValueRef)) ? unref(mergedValueRef) : void 0
|
|
8812
8595
|
}, [
|
|
8813
|
-
__props.icon ? (openBlock(), createBlock(_sfc_main
|
|
8596
|
+
__props.icon ? (openBlock(), createBlock(_sfc_main$_, {
|
|
8814
8597
|
key: 0,
|
|
8815
8598
|
icon: __props.icon,
|
|
8816
8599
|
class: normalizeClass(__props.iconClass),
|
|
@@ -12777,7 +12560,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
12777
12560
|
}
|
|
12778
12561
|
propsData.codeField = field;
|
|
12779
12562
|
propsData.formValues = unref(getValues);
|
|
12780
|
-
let bindValueValue = props.formModel[field];
|
|
12563
|
+
let bindValueValue = isUndefined(props.formModel[field]) ? null : props.formModel[field];
|
|
12781
12564
|
if (itemIsDateComponent(component)) {
|
|
12782
12565
|
if (!isArray(bindValueValue)) {
|
|
12783
12566
|
bindValueValue = bindValueValue ? dayjs(bindValueValue).valueOf() : null;
|
|
@@ -27807,8 +27590,7 @@ const components = [
|
|
|
27807
27590
|
XBasicCard,
|
|
27808
27591
|
XBasicRegion,
|
|
27809
27592
|
XBasicRegionSelect,
|
|
27810
|
-
|
|
27811
|
-
XBasicButtonImportPreview
|
|
27593
|
+
XBasicButtonImportMax
|
|
27812
27594
|
];
|
|
27813
27595
|
const makeInstaller = (components2 = []) => {
|
|
27814
27596
|
const install2 = (app, options) => {
|
|
@@ -28132,8 +27914,7 @@ export {
|
|
|
28132
27914
|
XBasicButtonExportDrop,
|
|
28133
27915
|
XBasicButtonGroup,
|
|
28134
27916
|
XBasicButtonImport,
|
|
28135
|
-
|
|
28136
|
-
XBasicButtonImportWithTpl,
|
|
27917
|
+
XBasicButtonImportMax,
|
|
28137
27918
|
XBasicButtonPrint,
|
|
28138
27919
|
XBasicCard,
|
|
28139
27920
|
XBasicCascader,
|