@maxax/ui 1.1.77 → 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/helper.d.ts +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/BasicForm.vue.d.ts +2 -2
- package/dist/components/basic-form/componentMap.d.ts.map +1 -1
- package/dist/components/basic-form/helper.d.ts +1 -1
- package/dist/components/basic-form/types/component.d.ts +4 -0
- package/dist/components/basic-form/types/component.d.ts.map +1 -1
- package/dist/components/basic-multilingual-input/BasicMultilingualInput.vue.d.ts +51 -0
- package/dist/components/basic-multilingual-input/BasicMultilingualInput.vue.d.ts.map +1 -0
- package/dist/components/basic-multilingual-input/index.d.ts +7 -0
- package/dist/components/basic-multilingual-input/index.d.ts.map +1 -0
- package/dist/components/basic-multilingual-input/interface.d.ts +35 -0
- package/dist/components/basic-multilingual-input/interface.d.ts.map +1 -0
- 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 +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +489 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +490 -115
- 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 +4 -1
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.mjs +4 -1
- package/dist/locales.mjs.map +1 -1
- package/dist/theme-chalk/components/basicMultilingualInput.scss +55 -0
- package/dist/theme-chalk/components/components.scss +1 -0
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/light.css +1 -1
- package/dist/{zh-cn-KPfh6ZPA.js → zh-cn-BwGvDABC.js} +4 -1
- package/dist/zh-cn-BwGvDABC.js.map +1 -0
- package/dist/{zh-cn-BdENqlAc.cjs → zh-cn-OQuZRA6h.cjs} +4 -1
- package/dist/zh-cn-OQuZRA6h.cjs.map +1 -0
- package/package.json +3 -3
- package/dist/zh-cn-BdENqlAc.cjs.map +0 -1
- package/dist/zh-cn-KPfh6ZPA.js.map +0 -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";
|
|
@@ -11,7 +11,7 @@ import dayjs from "dayjs";
|
|
|
11
11
|
import { useBoolean, useMergedState as useMergedState$1, useEventListener as useEventListener$1, useBreakpoint } from "@maxax/hooks";
|
|
12
12
|
import { format } from "date-fns";
|
|
13
13
|
import elementResizeDetectorMaker from "element-resize-detector";
|
|
14
|
-
import { z as zhCN } from "./zh-cn-
|
|
14
|
+
import { z as zhCN } from "./zh-cn-BwGvDABC.js";
|
|
15
15
|
function tryOnScopeDispose(fn, failSilently) {
|
|
16
16
|
if (getCurrentScope()) {
|
|
17
17
|
onScopeDispose(fn, failSilently);
|
|
@@ -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: {}
|
|
@@ -5774,8 +5774,8 @@ const Icon = defineComponent((props, { emit }) => {
|
|
|
5774
5774
|
],
|
|
5775
5775
|
emits: ["load"]
|
|
5776
5776
|
});
|
|
5777
|
-
const _hoisted_1$
|
|
5778
|
-
const _sfc_main$
|
|
5777
|
+
const _hoisted_1$e = ["xlink:href"];
|
|
5778
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
5779
5779
|
__name: "BasicSvgIcon",
|
|
5780
5780
|
props: {
|
|
5781
5781
|
icon: {},
|
|
@@ -5809,7 +5809,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
5809
5809
|
createElementVNode("use", {
|
|
5810
5810
|
"xlink:href": symbolId.value,
|
|
5811
5811
|
fill: "currentColor"
|
|
5812
|
-
}, null, 8, _hoisted_1$
|
|
5812
|
+
}, null, 8, _hoisted_1$e)
|
|
5813
5813
|
], 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5814
5814
|
__props.icon ? (openBlock(), createBlock(unref(Icon), mergeProps({
|
|
5815
5815
|
key: 0,
|
|
@@ -5821,8 +5821,8 @@ const _sfc_main$11 = /* @__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$10 = /* @__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$$ = /* @__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$$ = /* @__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$Z = /* @__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$Z = /* @__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$Y = /* @__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$Y = /* @__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$X = /* @__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$X = /* @__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$W = /* @__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,
|
|
@@ -6521,7 +6521,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
6521
6521
|
}
|
|
6522
6522
|
return target;
|
|
6523
6523
|
};
|
|
6524
|
-
const _hoisted_1$
|
|
6524
|
+
const _hoisted_1$d = ["aria-label", "aria-describedby"];
|
|
6525
6525
|
const _hoisted_2$4 = ["id"];
|
|
6526
6526
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6527
6527
|
const _component_BasicSvgIcon = resolveComponent("BasicSvgIcon");
|
|
@@ -6679,7 +6679,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6679
6679
|
])
|
|
6680
6680
|
], 2)
|
|
6681
6681
|
], 6)
|
|
6682
|
-
], 42, _hoisted_1$
|
|
6682
|
+
], 42, _hoisted_1$d)
|
|
6683
6683
|
]),
|
|
6684
6684
|
_: 3
|
|
6685
6685
|
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
@@ -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$U = /* @__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$T = /* @__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$S = /* @__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$R = /* @__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$Q = /* @__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$P = /* @__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$O = /* @__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$N = /* @__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$M = /* @__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
|
|
@@ -7207,8 +7207,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7207
7207
|
};
|
|
7208
7208
|
}
|
|
7209
7209
|
});
|
|
7210
|
-
const _hoisted_1$
|
|
7211
|
-
const _sfc_main$
|
|
7210
|
+
const _hoisted_1$c = ["multiple", "name", "accept"];
|
|
7211
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
7212
7212
|
__name: "BasicButtonImport",
|
|
7213
7213
|
props: {
|
|
7214
7214
|
name: { default: "file" },
|
|
@@ -7295,7 +7295,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
7295
7295
|
accept: __props.accept,
|
|
7296
7296
|
style: normalizeStyle(buttonStyle.value),
|
|
7297
7297
|
onChange: onFileChange
|
|
7298
|
-
}, null, 44, _hoisted_1$
|
|
7298
|
+
}, null, 44, _hoisted_1$c)),
|
|
7299
7299
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
7300
7300
|
createTextVNode(toDisplayString(unref(t2)("max.basic.import")), 1)
|
|
7301
7301
|
])
|
|
@@ -7305,7 +7305,7 @@ const _sfc_main$L = /* @__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$K = /* @__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$
|
|
7341
|
-
const _hoisted_1$
|
|
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
|
+
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: "" },
|
|
@@ -7478,7 +7478,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7478
7478
|
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
7479
7479
|
])
|
|
7480
7480
|
], 2)
|
|
7481
|
-
], 46, _hoisted_1$
|
|
7481
|
+
], 46, _hoisted_1$b), [
|
|
7482
7482
|
[vShow, visible.value]
|
|
7483
7483
|
])
|
|
7484
7484
|
]),
|
|
@@ -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$I = /* @__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$I = /* @__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$G = /* @__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$G = /* @__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$G = /* @__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;
|
|
@@ -9205,8 +9205,8 @@ function useTableForm(propsRef, { fetch: fetch2, getLoading, setPagination, setS
|
|
|
9205
9205
|
handleSearchInfoReload
|
|
9206
9206
|
};
|
|
9207
9207
|
}
|
|
9208
|
-
const _hoisted_1$
|
|
9209
|
-
const _sfc_main$
|
|
9208
|
+
const _hoisted_1$a = { class: "max-table-selection-count" };
|
|
9209
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
9210
9210
|
__name: "BasicTable",
|
|
9211
9211
|
props: {
|
|
9212
9212
|
layouts: {},
|
|
@@ -9267,7 +9267,13 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
9267
9267
|
minWidth: "auto",
|
|
9268
9268
|
resizable: true,
|
|
9269
9269
|
useKey: true,
|
|
9270
|
-
maxFixedSize: 4
|
|
9270
|
+
maxFixedSize: 4,
|
|
9271
|
+
autoOptions: {
|
|
9272
|
+
isCalcHeader: true,
|
|
9273
|
+
isCalcBody: false,
|
|
9274
|
+
// 不自适应计算宽度
|
|
9275
|
+
isCalcFooter: false
|
|
9276
|
+
}
|
|
9271
9277
|
}) },
|
|
9272
9278
|
rowConfig: { default: () => ({
|
|
9273
9279
|
useKey: true,
|
|
@@ -9674,7 +9680,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
9674
9680
|
class: normalizeClass(unref(e)("selection-count"))
|
|
9675
9681
|
}, [
|
|
9676
9682
|
createElementVNode("span", null, toDisplayString(unref(t2)("max.basic.selected")), 1),
|
|
9677
|
-
createElementVNode("span", _hoisted_1$
|
|
9683
|
+
createElementVNode("span", _hoisted_1$a, toDisplayString(unref(getSelectRows)().length), 1),
|
|
9678
9684
|
createElementVNode("span", null, toDisplayString(unref(t2)("max.basic.item")), 1)
|
|
9679
9685
|
], 2)
|
|
9680
9686
|
], 2)) : createCommentVNode("", true),
|
|
@@ -9789,8 +9795,8 @@ const MaxUI = {
|
|
|
9789
9795
|
getI18n,
|
|
9790
9796
|
t
|
|
9791
9797
|
};
|
|
9792
|
-
const _hoisted_1$
|
|
9793
|
-
const _sfc_main$
|
|
9798
|
+
const _hoisted_1$9 = ["title"];
|
|
9799
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
9794
9800
|
__name: "BasicText",
|
|
9795
9801
|
props: {
|
|
9796
9802
|
icon: { default: "" },
|
|
@@ -9830,7 +9836,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
9830
9836
|
class: normalizeClass(basicTextClass.value),
|
|
9831
9837
|
title: unref(isString$1)(unref(mergedValueRef)) ? unref(mergedValueRef) : void 0
|
|
9832
9838
|
}, [
|
|
9833
|
-
__props.icon ? (openBlock(), createBlock(_sfc_main$
|
|
9839
|
+
__props.icon ? (openBlock(), createBlock(_sfc_main$13, {
|
|
9834
9840
|
key: 0,
|
|
9835
9841
|
icon: __props.icon,
|
|
9836
9842
|
class: normalizeClass(__props.iconClass),
|
|
@@ -9839,12 +9845,12 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
9839
9845
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
9840
9846
|
createTextVNode(toDisplayString(unref(mergedValueRef)), 1)
|
|
9841
9847
|
])
|
|
9842
|
-
], 10, _hoisted_1$
|
|
9848
|
+
], 10, _hoisted_1$9);
|
|
9843
9849
|
};
|
|
9844
9850
|
}
|
|
9845
9851
|
});
|
|
9846
|
-
const XBasicText = withInstall(_sfc_main$
|
|
9847
|
-
const _sfc_main$
|
|
9852
|
+
const XBasicText = withInstall(_sfc_main$G);
|
|
9853
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
9848
9854
|
__name: "BasicCard",
|
|
9849
9855
|
props: {
|
|
9850
9856
|
title: {},
|
|
@@ -9883,8 +9889,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
9883
9889
|
};
|
|
9884
9890
|
}
|
|
9885
9891
|
});
|
|
9886
|
-
const XBasicCard = withInstall(_sfc_main$
|
|
9887
|
-
const _sfc_main$
|
|
9892
|
+
const XBasicCard = withInstall(_sfc_main$F);
|
|
9893
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
9888
9894
|
...{
|
|
9889
9895
|
inheritAttrs: false
|
|
9890
9896
|
},
|
|
@@ -10009,7 +10015,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
10009
10015
|
}
|
|
10010
10016
|
});
|
|
10011
10017
|
const basicCascaderProps = {};
|
|
10012
|
-
const XBasicCascader = withInstall(_sfc_main$
|
|
10018
|
+
const XBasicCascader = withInstall(_sfc_main$E);
|
|
10013
10019
|
const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
|
|
10014
10020
|
const createBasicCheckboxGroupContext = (props) => {
|
|
10015
10021
|
return provide(basicCheckboxGroupKey, props);
|
|
@@ -10030,7 +10036,7 @@ const IconCheck = /* @__PURE__ */ defineComponent({
|
|
|
10030
10036
|
}, null)]);
|
|
10031
10037
|
}
|
|
10032
10038
|
});
|
|
10033
|
-
const _sfc_main$
|
|
10039
|
+
const _sfc_main$D = defineComponent({
|
|
10034
10040
|
name: "IconHover",
|
|
10035
10041
|
props: {
|
|
10036
10042
|
disabled: {
|
|
@@ -10058,7 +10064,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10058
10064
|
renderSlot(_ctx.$slots, "default")
|
|
10059
10065
|
], 2);
|
|
10060
10066
|
}
|
|
10061
|
-
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10067
|
+
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$1]]);
|
|
10062
10068
|
const basicCheckboxProps = {
|
|
10063
10069
|
/**
|
|
10064
10070
|
* @zh 绑定值
|
|
@@ -10731,7 +10737,7 @@ const BasicCol = /* @__PURE__ */ defineComponent({
|
|
|
10731
10737
|
}
|
|
10732
10738
|
});
|
|
10733
10739
|
const XBasicCol = withInstall(BasicCol);
|
|
10734
|
-
const _sfc_main$
|
|
10740
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
10735
10741
|
__name: "BasicCountTo",
|
|
10736
10742
|
props: {
|
|
10737
10743
|
startValue: { default: 0 },
|
|
@@ -10792,8 +10798,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
10792
10798
|
};
|
|
10793
10799
|
}
|
|
10794
10800
|
});
|
|
10795
|
-
const XBasicCountTo = withInstall(_sfc_main$
|
|
10796
|
-
const _sfc_main$
|
|
10801
|
+
const XBasicCountTo = withInstall(_sfc_main$C);
|
|
10802
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
10797
10803
|
__name: "BasicDatePicker",
|
|
10798
10804
|
props: {
|
|
10799
10805
|
disabled: { type: Boolean, default: false },
|
|
@@ -10853,7 +10859,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
10853
10859
|
};
|
|
10854
10860
|
}
|
|
10855
10861
|
});
|
|
10856
|
-
const XBasicDatePicker = withInstall(_sfc_main$
|
|
10862
|
+
const XBasicDatePicker = withInstall(_sfc_main$B);
|
|
10857
10863
|
const basicDragVerifyProps = {
|
|
10858
10864
|
value: {
|
|
10859
10865
|
type: Boolean,
|
|
@@ -10900,7 +10906,7 @@ const basicDragVerifyProps = {
|
|
|
10900
10906
|
default: () => ({})
|
|
10901
10907
|
}
|
|
10902
10908
|
};
|
|
10903
|
-
const _sfc_main$
|
|
10909
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
10904
10910
|
name: "BasicDragVerify",
|
|
10905
10911
|
props: basicDragVerifyProps,
|
|
10906
10912
|
emits: ["success", "update:value", "change", "start", "move", "end"],
|
|
@@ -11203,7 +11209,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
11203
11209
|
};
|
|
11204
11210
|
}
|
|
11205
11211
|
});
|
|
11206
|
-
const XBasicDragVerify = withInstall(_sfc_main$
|
|
11212
|
+
const XBasicDragVerify = withInstall(_sfc_main$A);
|
|
11207
11213
|
const basicHelpProps = {
|
|
11208
11214
|
/**
|
|
11209
11215
|
* Whether to display the serial number
|
|
@@ -11219,7 +11225,7 @@ const basicHelpProps = {
|
|
|
11219
11225
|
default: ""
|
|
11220
11226
|
}
|
|
11221
11227
|
};
|
|
11222
|
-
const _sfc_main$
|
|
11228
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
11223
11229
|
name: "BasicHelp",
|
|
11224
11230
|
components: {
|
|
11225
11231
|
XBasicSvgIcon
|
|
@@ -11265,8 +11271,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
11265
11271
|
});
|
|
11266
11272
|
}
|
|
11267
11273
|
});
|
|
11268
|
-
const XBasicHelp = withInstall(_sfc_main$
|
|
11269
|
-
const _sfc_main$
|
|
11274
|
+
const XBasicHelp = withInstall(_sfc_main$z);
|
|
11275
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
11270
11276
|
__name: "BasicTitle",
|
|
11271
11277
|
props: {
|
|
11272
11278
|
helpMessage: {},
|
|
@@ -11309,12 +11315,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
11309
11315
|
};
|
|
11310
11316
|
}
|
|
11311
11317
|
});
|
|
11312
|
-
const XBasicTitle = withInstall(_sfc_main$
|
|
11313
|
-
const _hoisted_1$
|
|
11318
|
+
const XBasicTitle = withInstall(_sfc_main$y);
|
|
11319
|
+
const _hoisted_1$8 = {
|
|
11314
11320
|
key: 0,
|
|
11315
11321
|
class: "footer-wrapper"
|
|
11316
11322
|
};
|
|
11317
|
-
const _sfc_main$
|
|
11323
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
11318
11324
|
__name: "BasicDrawer",
|
|
11319
11325
|
props: {
|
|
11320
11326
|
showCancelBtn: { type: Boolean, default: true },
|
|
@@ -11448,7 +11454,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
11448
11454
|
!_ctx.$slots.footer ? {
|
|
11449
11455
|
name: "footer",
|
|
11450
11456
|
fn: withCtx(() => [
|
|
11451
|
-
__props.showFooter ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11457
|
+
__props.showFooter ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
11452
11458
|
renderSlot(_ctx.$slots, "before-footer"),
|
|
11453
11459
|
__props.showCancelBtn ? (openBlock(), createBlock(unref(XBasicButton), {
|
|
11454
11460
|
key: 0,
|
|
@@ -11488,8 +11494,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
11488
11494
|
};
|
|
11489
11495
|
}
|
|
11490
11496
|
});
|
|
11491
|
-
const XBasicDrawer = withInstall(_sfc_main$
|
|
11492
|
-
const _sfc_main$
|
|
11497
|
+
const XBasicDrawer = withInstall(_sfc_main$x);
|
|
11498
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
11493
11499
|
__name: "BasicDrawerFooter",
|
|
11494
11500
|
props: {
|
|
11495
11501
|
showDeleteButton: { type: Boolean, default: false },
|
|
@@ -11566,7 +11572,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
11566
11572
|
};
|
|
11567
11573
|
}
|
|
11568
11574
|
});
|
|
11569
|
-
const XBasicDrawerFooter = withInstall(_sfc_main$
|
|
11575
|
+
const XBasicDrawerFooter = withInstall(_sfc_main$w);
|
|
11570
11576
|
const basicEditBatchKey = Symbol("basic-edit-batch");
|
|
11571
11577
|
const createBasicEditBatchContext = (props) => {
|
|
11572
11578
|
return provide(basicEditBatchKey, props);
|
|
@@ -11574,8 +11580,8 @@ const createBasicEditBatchContext = (props) => {
|
|
|
11574
11580
|
const useBasicEditBatchContext = () => {
|
|
11575
11581
|
return inject(basicEditBatchKey);
|
|
11576
11582
|
};
|
|
11577
|
-
const _hoisted_1$
|
|
11578
|
-
const _sfc_main$
|
|
11583
|
+
const _hoisted_1$7 = ["disabled"];
|
|
11584
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
11579
11585
|
__name: "EditBatchAction",
|
|
11580
11586
|
props: {
|
|
11581
11587
|
disabled: { type: Boolean, default: false },
|
|
@@ -11631,11 +11637,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
11631
11637
|
_: 1
|
|
11632
11638
|
}, 16, ["class", "onClick"])) : createCommentVNode("", true),
|
|
11633
11639
|
renderSlot(_ctx.$slots, "submitAfter")
|
|
11634
|
-
], 10, _hoisted_1$
|
|
11640
|
+
], 10, _hoisted_1$7);
|
|
11635
11641
|
};
|
|
11636
11642
|
}
|
|
11637
11643
|
});
|
|
11638
|
-
const _sfc_main$
|
|
11644
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
11639
11645
|
__name: "BasicHidden",
|
|
11640
11646
|
props: {
|
|
11641
11647
|
value: {},
|
|
@@ -11662,7 +11668,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
11662
11668
|
};
|
|
11663
11669
|
}
|
|
11664
11670
|
});
|
|
11665
|
-
const XBasicHidden = withInstall(_sfc_main$
|
|
11671
|
+
const XBasicHidden = withInstall(_sfc_main$u);
|
|
11666
11672
|
const basicRadioGroupKey = Symbol("basic-radio-group");
|
|
11667
11673
|
const createBasicRadioGroupContext = (props) => {
|
|
11668
11674
|
return provide(basicRadioGroupKey, props);
|
|
@@ -12054,7 +12060,7 @@ const BasicRadioGroup = /* @__PURE__ */ defineComponent({
|
|
|
12054
12060
|
}
|
|
12055
12061
|
});
|
|
12056
12062
|
const XBasicRadioGroup = withInstall(BasicRadioGroup);
|
|
12057
|
-
const _sfc_main$
|
|
12063
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
12058
12064
|
...{
|
|
12059
12065
|
inheritAttrs: false
|
|
12060
12066
|
},
|
|
@@ -12180,7 +12186,135 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
12180
12186
|
}
|
|
12181
12187
|
});
|
|
12182
12188
|
const basicSelectProps = {};
|
|
12183
|
-
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);
|
|
12184
12318
|
const componentMap$1 = /* @__PURE__ */ new Map();
|
|
12185
12319
|
componentMap$1.set("Input", NInput);
|
|
12186
12320
|
componentMap$1.set("InputNumber", NInputNumber);
|
|
@@ -12208,6 +12342,7 @@ componentMap$1.set("BasicText", XBasicText);
|
|
|
12208
12342
|
componentMap$1.set("BasicDatePicker", XBasicDatePicker);
|
|
12209
12343
|
componentMap$1.set("BasicCheckboxGroup", XBasicCheckboxGroup);
|
|
12210
12344
|
componentMap$1.set("BasicSelect", XBasicSelect);
|
|
12345
|
+
componentMap$1.set("BasicTransfer", XBasicTransfer);
|
|
12211
12346
|
componentMap$1.set("BasicRadioGroup", XBasicRadioGroup);
|
|
12212
12347
|
componentMap$1.set("BasicCascader", XBasicCascader);
|
|
12213
12348
|
const DEFAULT_VALUE_COMPONENTS$1 = ["Input", "InputPassword", "InputNumber", "InputSearch", "InputTextArea"];
|
|
@@ -12259,7 +12394,7 @@ function isComponentEditBatchSchema(schema) {
|
|
|
12259
12394
|
function _isSlot$1(s) {
|
|
12260
12395
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
12261
12396
|
}
|
|
12262
|
-
const _sfc_main$
|
|
12397
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
12263
12398
|
name: "BasicEditBatchItem",
|
|
12264
12399
|
components: {
|
|
12265
12400
|
XBasicHelp
|
|
@@ -12997,7 +13132,7 @@ function useEditBatchValues({ getProps, defaultValueRef, getSchema, formModel })
|
|
|
12997
13132
|
}
|
|
12998
13133
|
return { handleFormValues, initDefault };
|
|
12999
13134
|
}
|
|
13000
|
-
const _sfc_main$
|
|
13135
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
13001
13136
|
__name: "BasicEditBatch",
|
|
13002
13137
|
props: {
|
|
13003
13138
|
name: {},
|
|
@@ -13127,7 +13262,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
13127
13262
|
options: unref(getOptions)
|
|
13128
13263
|
}, null, 8, ["value", "options"])
|
|
13129
13264
|
], 2),
|
|
13130
|
-
schemaItemRef.value ? (openBlock(), createBlock(_sfc_main$
|
|
13265
|
+
schemaItemRef.value ? (openBlock(), createBlock(_sfc_main$r, {
|
|
13131
13266
|
key: 0,
|
|
13132
13267
|
schema: schemaItemRef.value,
|
|
13133
13268
|
"edit-batch-props": getProps.value,
|
|
@@ -13144,7 +13279,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
13144
13279
|
};
|
|
13145
13280
|
})
|
|
13146
13281
|
]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : createCommentVNode("", true),
|
|
13147
|
-
createVNode(_sfc_main$
|
|
13282
|
+
createVNode(_sfc_main$v, normalizeProps(guardReactiveProps(getEditBatchActionBindProps.value)), createSlots({ _: 2 }, [
|
|
13148
13283
|
renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
|
|
13149
13284
|
return {
|
|
13150
13285
|
name: item,
|
|
@@ -13158,7 +13293,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
13158
13293
|
};
|
|
13159
13294
|
}
|
|
13160
13295
|
});
|
|
13161
|
-
const XBasicEditBatch = withInstall(_sfc_main$
|
|
13296
|
+
const XBasicEditBatch = withInstall(_sfc_main$q);
|
|
13162
13297
|
const basicFontIconProps = {
|
|
13163
13298
|
icon: {
|
|
13164
13299
|
type: String,
|
|
@@ -13209,7 +13344,7 @@ const createBasicFormContext = (props) => {
|
|
|
13209
13344
|
const useBasicFormContext = () => {
|
|
13210
13345
|
return inject(basicFormKey);
|
|
13211
13346
|
};
|
|
13212
|
-
const _sfc_main$
|
|
13347
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
13213
13348
|
__name: "FormAction",
|
|
13214
13349
|
props: {
|
|
13215
13350
|
showActionButtonGroup: { type: Boolean, default: true },
|
|
@@ -13339,7 +13474,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
13339
13474
|
};
|
|
13340
13475
|
}
|
|
13341
13476
|
});
|
|
13342
|
-
const _sfc_main$
|
|
13477
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
13343
13478
|
__name: "BasicMasterTrigger",
|
|
13344
13479
|
props: {
|
|
13345
13480
|
value: {},
|
|
@@ -13405,7 +13540,240 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
13405
13540
|
};
|
|
13406
13541
|
}
|
|
13407
13542
|
});
|
|
13408
|
-
const XBasicMasterTrigger = withInstall(_sfc_main$
|
|
13543
|
+
const XBasicMasterTrigger = withInstall(_sfc_main$o);
|
|
13544
|
+
const _hoisted_1$6 = ["disabled"];
|
|
13545
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
13546
|
+
...{
|
|
13547
|
+
inheritAttrs: false
|
|
13548
|
+
},
|
|
13549
|
+
__name: "BasicMultilingualInput",
|
|
13550
|
+
props: {
|
|
13551
|
+
value: { default: void 0 },
|
|
13552
|
+
modelValue: { default: void 0 },
|
|
13553
|
+
defaultValue: { default: "" },
|
|
13554
|
+
languages: { default: () => [
|
|
13555
|
+
{ value: "en", label: "英语 (EN)", flag: "🇺🇸" },
|
|
13556
|
+
{ value: "fr", label: "法语 (FR)", flag: "🇫🇷" },
|
|
13557
|
+
{ value: "de", label: "德语 (DE)", flag: "🇩🇪" }
|
|
13558
|
+
] },
|
|
13559
|
+
defaultLanguage: { default: "zh-CN" },
|
|
13560
|
+
languageIcon: { default: "ri:global-line" },
|
|
13561
|
+
showLanguageIcon: { type: Boolean, default: true },
|
|
13562
|
+
modalWidth: { default: 600 },
|
|
13563
|
+
onUpdateValue: {},
|
|
13564
|
+
"onUpdate:value": {},
|
|
13565
|
+
"onUpdate:modelValue": {},
|
|
13566
|
+
"onUpdate:languages": {},
|
|
13567
|
+
onInput: {},
|
|
13568
|
+
onChange: {},
|
|
13569
|
+
onLanguageClick: {},
|
|
13570
|
+
onConfirm: {}
|
|
13571
|
+
},
|
|
13572
|
+
emits: ["update:value", "update:modelValue", "update:languages", "input", "change", "language-click", "confirm"],
|
|
13573
|
+
setup(__props, { emit: __emit }) {
|
|
13574
|
+
const props = __props;
|
|
13575
|
+
const emit = __emit;
|
|
13576
|
+
const attrs = useAttrs();
|
|
13577
|
+
const { b, e } = useNamespace("basic-multilingual-input");
|
|
13578
|
+
const { b: bm, e: em } = useNamespace("basic-multilingual-input-modal");
|
|
13579
|
+
const { t: t2 } = useLocale();
|
|
13580
|
+
const uncontrolledValueRef = ref(props.defaultValue);
|
|
13581
|
+
const controlledValueRef = toRef(props, "value");
|
|
13582
|
+
const controlledModelValueRef = toRef(props, "modelValue");
|
|
13583
|
+
const modalVisibleRef = ref(false);
|
|
13584
|
+
const currentLanguagesRef = ref(cloneLanguages(props.languages));
|
|
13585
|
+
const draftLanguagesRef = ref([]);
|
|
13586
|
+
const mergedValueRef = computed(() => {
|
|
13587
|
+
if (controlledValueRef.value !== void 0) return controlledValueRef.value;
|
|
13588
|
+
if (controlledModelValueRef.value !== void 0) return controlledModelValueRef.value;
|
|
13589
|
+
return uncontrolledValueRef.value;
|
|
13590
|
+
});
|
|
13591
|
+
const isLanguageTriggerDisabled = computed(() => Boolean(props.disabled || props.readonly));
|
|
13592
|
+
const modalStyle = computed(() => ({
|
|
13593
|
+
width: typeof props.modalWidth === "number" ? `${props.modalWidth}px` : props.modalWidth
|
|
13594
|
+
}));
|
|
13595
|
+
const computedProps = computed(() => ({
|
|
13596
|
+
...attrs,
|
|
13597
|
+
...omit$1(props, ["value", "modelValue", "defaultValue", "languages", "defaultLanguage", "languageIcon", "showLanguageIcon", "modalWidth", "onUpdateValue", "onUpdate:value", "onUpdate:modelValue", "onUpdate:languages", "onInput", "onChange", "onLanguageClick", "onConfirm"])
|
|
13598
|
+
}));
|
|
13599
|
+
watch(
|
|
13600
|
+
() => props.languages,
|
|
13601
|
+
(value) => {
|
|
13602
|
+
currentLanguagesRef.value = cloneLanguages(value);
|
|
13603
|
+
},
|
|
13604
|
+
{ deep: true }
|
|
13605
|
+
);
|
|
13606
|
+
watch(
|
|
13607
|
+
() => props.defaultValue,
|
|
13608
|
+
(value) => {
|
|
13609
|
+
if (controlledValueRef.value === void 0 && controlledModelValueRef.value === void 0) {
|
|
13610
|
+
uncontrolledValueRef.value = value;
|
|
13611
|
+
}
|
|
13612
|
+
}
|
|
13613
|
+
);
|
|
13614
|
+
function cloneLanguages(languages = []) {
|
|
13615
|
+
return languages.map((language) => ({ ...language }));
|
|
13616
|
+
}
|
|
13617
|
+
function updateLanguages(languages) {
|
|
13618
|
+
currentLanguagesRef.value = cloneLanguages(languages);
|
|
13619
|
+
emit("update:languages", languages);
|
|
13620
|
+
if (props["onUpdate:languages"]) call(props["onUpdate:languages"], languages);
|
|
13621
|
+
}
|
|
13622
|
+
function updateValue(value) {
|
|
13623
|
+
if (props.disabled) return;
|
|
13624
|
+
uncontrolledValueRef.value = value;
|
|
13625
|
+
emit("update:value", value);
|
|
13626
|
+
emit("update:modelValue", value);
|
|
13627
|
+
const { onUpdateValue, "onUpdate:value": _onUpdateValue, "onUpdate:modelValue": _onUpdateModelValue } = props;
|
|
13628
|
+
if (onUpdateValue) call(onUpdateValue, value);
|
|
13629
|
+
if (_onUpdateValue) call(_onUpdateValue, value);
|
|
13630
|
+
if (_onUpdateModelValue) call(_onUpdateModelValue, value);
|
|
13631
|
+
}
|
|
13632
|
+
function handleInput(value) {
|
|
13633
|
+
emit("input", value);
|
|
13634
|
+
if (props.onInput) call(props.onInput, value);
|
|
13635
|
+
}
|
|
13636
|
+
function handleChange(value) {
|
|
13637
|
+
emit("change", value);
|
|
13638
|
+
if (props.onChange) call(props.onChange, value);
|
|
13639
|
+
}
|
|
13640
|
+
function handleTranslationUpdate(index2, translation) {
|
|
13641
|
+
draftLanguagesRef.value = draftLanguagesRef.value.map((language, currentIndex) => currentIndex === index2 ? { ...language, translation } : language);
|
|
13642
|
+
}
|
|
13643
|
+
function handleLanguageClick(event) {
|
|
13644
|
+
if (isLanguageTriggerDisabled.value) return;
|
|
13645
|
+
draftLanguagesRef.value = cloneLanguages(currentLanguagesRef.value);
|
|
13646
|
+
modalVisibleRef.value = true;
|
|
13647
|
+
emit("language-click", event);
|
|
13648
|
+
if (props.onLanguageClick) call(props.onLanguageClick, event);
|
|
13649
|
+
}
|
|
13650
|
+
function handleModalConfirm() {
|
|
13651
|
+
const languages = cloneLanguages(draftLanguagesRef.value);
|
|
13652
|
+
updateLanguages(languages);
|
|
13653
|
+
emit("confirm", languages);
|
|
13654
|
+
if (props.onConfirm) call(props.onConfirm, languages);
|
|
13655
|
+
modalVisibleRef.value = false;
|
|
13656
|
+
}
|
|
13657
|
+
function handleModalCancel() {
|
|
13658
|
+
modalVisibleRef.value = false;
|
|
13659
|
+
}
|
|
13660
|
+
return (_ctx, _cache) => {
|
|
13661
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
13662
|
+
createElementVNode("div", {
|
|
13663
|
+
class: normalizeClass(unref(b)())
|
|
13664
|
+
}, [
|
|
13665
|
+
createVNode(unref(NInput), mergeProps(computedProps.value, {
|
|
13666
|
+
value: mergedValueRef.value,
|
|
13667
|
+
"onUpdate:value": updateValue,
|
|
13668
|
+
onInput: handleInput,
|
|
13669
|
+
onChange: handleChange
|
|
13670
|
+
}), createSlots({
|
|
13671
|
+
suffix: withCtx(() => [
|
|
13672
|
+
renderSlot(_ctx.$slots, "suffix", {
|
|
13673
|
+
value: mergedValueRef.value,
|
|
13674
|
+
disabled: props.disabled,
|
|
13675
|
+
languageClick: handleLanguageClick
|
|
13676
|
+
}, () => [
|
|
13677
|
+
props.showLanguageIcon ? (openBlock(), createElementBlock("button", {
|
|
13678
|
+
key: 0,
|
|
13679
|
+
type: "button",
|
|
13680
|
+
class: normalizeClass(unref(e)("language-trigger")),
|
|
13681
|
+
disabled: isLanguageTriggerDisabled.value,
|
|
13682
|
+
onClick: withModifiers(handleLanguageClick, ["stop"])
|
|
13683
|
+
}, [
|
|
13684
|
+
createVNode(unref(XBasicSvgIcon), {
|
|
13685
|
+
icon: props.languageIcon,
|
|
13686
|
+
class: normalizeClass(unref(e)("language-icon"))
|
|
13687
|
+
}, null, 8, ["icon", "class"])
|
|
13688
|
+
], 10, _hoisted_1$6)) : createCommentVNode("", true)
|
|
13689
|
+
])
|
|
13690
|
+
]),
|
|
13691
|
+
_: 2
|
|
13692
|
+
}, [
|
|
13693
|
+
_ctx.$slots.prefix ? {
|
|
13694
|
+
name: "prefix",
|
|
13695
|
+
fn: withCtx(() => [
|
|
13696
|
+
renderSlot(_ctx.$slots, "prefix")
|
|
13697
|
+
]),
|
|
13698
|
+
key: "0"
|
|
13699
|
+
} : void 0
|
|
13700
|
+
]), 1040, ["value"])
|
|
13701
|
+
], 2),
|
|
13702
|
+
createVNode(unref(NModal), {
|
|
13703
|
+
title: unref(t2)("max.multilingualInput.modalTitle"),
|
|
13704
|
+
show: modalVisibleRef.value,
|
|
13705
|
+
"onUpdate:show": _cache[0] || (_cache[0] = ($event) => modalVisibleRef.value = $event),
|
|
13706
|
+
preset: "dialog",
|
|
13707
|
+
style: normalizeStyle(modalStyle.value),
|
|
13708
|
+
"show-icon": false,
|
|
13709
|
+
"mask-closable": false,
|
|
13710
|
+
class: normalizeClass(unref(bm)())
|
|
13711
|
+
}, {
|
|
13712
|
+
default: withCtx(() => [
|
|
13713
|
+
createVNode(unref(NForm), {
|
|
13714
|
+
"label-placement": "left",
|
|
13715
|
+
"label-width": "120px",
|
|
13716
|
+
"label-align": "left"
|
|
13717
|
+
}, {
|
|
13718
|
+
default: withCtx(() => [
|
|
13719
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(draftLanguagesRef.value, (language, index2) => {
|
|
13720
|
+
return openBlock(), createBlock(unref(NFormItem), {
|
|
13721
|
+
key: language.value,
|
|
13722
|
+
class: normalizeClass(unref(em)("language-row")),
|
|
13723
|
+
label: language.label,
|
|
13724
|
+
path: language.value
|
|
13725
|
+
}, {
|
|
13726
|
+
label: withCtx(() => [
|
|
13727
|
+
language.flag ? (openBlock(), createElementBlock("span", {
|
|
13728
|
+
key: 0,
|
|
13729
|
+
class: normalizeClass(unref(em)("language-flag"))
|
|
13730
|
+
}, toDisplayString(language.flag), 3)) : createCommentVNode("", true),
|
|
13731
|
+
createElementVNode("span", null, toDisplayString(language.label), 1)
|
|
13732
|
+
]),
|
|
13733
|
+
default: withCtx(() => [
|
|
13734
|
+
createVNode(unref(NInput), {
|
|
13735
|
+
id: `${props.defaultLanguage}-${language.value}`,
|
|
13736
|
+
value: language.translation,
|
|
13737
|
+
placeholder: language.placeholder || "请输入翻译内容",
|
|
13738
|
+
"onUpdate:value": ($event) => handleTranslationUpdate(index2, $event)
|
|
13739
|
+
}, null, 8, ["id", "value", "placeholder", "onUpdate:value"])
|
|
13740
|
+
]),
|
|
13741
|
+
_: 2
|
|
13742
|
+
}, 1032, ["class", "label", "path"]);
|
|
13743
|
+
}), 128))
|
|
13744
|
+
]),
|
|
13745
|
+
_: 1
|
|
13746
|
+
}),
|
|
13747
|
+
createElementVNode("span", {
|
|
13748
|
+
class: normalizeClass(unref(em)("footer"))
|
|
13749
|
+
}, [
|
|
13750
|
+
createVNode(unref(XBasicButton), {
|
|
13751
|
+
class: normalizeClass(unref(em)("footer-btn")),
|
|
13752
|
+
onClick: handleModalCancel
|
|
13753
|
+
}, {
|
|
13754
|
+
default: withCtx(() => [
|
|
13755
|
+
createTextVNode(toDisplayString(unref(t2)("max.button.cancel")), 1)
|
|
13756
|
+
]),
|
|
13757
|
+
_: 1
|
|
13758
|
+
}, 8, ["class"]),
|
|
13759
|
+
createVNode(unref(XBasicButton), {
|
|
13760
|
+
type: "primary",
|
|
13761
|
+
onClick: handleModalConfirm
|
|
13762
|
+
}, {
|
|
13763
|
+
default: withCtx(() => [
|
|
13764
|
+
createTextVNode(toDisplayString(unref(t2)("max.button.confirm")), 1)
|
|
13765
|
+
]),
|
|
13766
|
+
_: 1
|
|
13767
|
+
})
|
|
13768
|
+
], 2)
|
|
13769
|
+
]),
|
|
13770
|
+
_: 1
|
|
13771
|
+
}, 8, ["title", "show", "style", "class"])
|
|
13772
|
+
], 64);
|
|
13773
|
+
};
|
|
13774
|
+
}
|
|
13775
|
+
});
|
|
13776
|
+
const XBasicMultilingualInput = withInstall(_sfc_main$n);
|
|
13409
13777
|
const basicScrollTextProps = {
|
|
13410
13778
|
/**
|
|
13411
13779
|
* Text content
|
|
@@ -13507,10 +13875,12 @@ componentMap.set("BasicText", XBasicText);
|
|
|
13507
13875
|
componentMap.set("BasicDatePicker", XBasicDatePicker);
|
|
13508
13876
|
componentMap.set("BasicCheckboxGroup", XBasicCheckboxGroup);
|
|
13509
13877
|
componentMap.set("BasicSelect", XBasicSelect);
|
|
13878
|
+
componentMap.set("BasicTransfer", XBasicTransfer);
|
|
13510
13879
|
componentMap.set("BasicRadioGroup", XBasicRadioGroup);
|
|
13511
13880
|
componentMap.set("BasicCascader", XBasicCascader);
|
|
13512
13881
|
componentMap.set("BasicScrollText", XBasicScrollText);
|
|
13513
13882
|
componentMap.set("BasicMasterTrigger", XBasicMasterTrigger);
|
|
13883
|
+
componentMap.set("BasicMultilingualInput", XBasicMultilingualInput);
|
|
13514
13884
|
function basicFormAddComponent(compName, component) {
|
|
13515
13885
|
componentMap.set(compName, component);
|
|
13516
13886
|
}
|
|
@@ -14897,7 +15267,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14897
15267
|
})
|
|
14898
15268
|
]), 1032, ["is-advanced", "schema", "form-props", "all-default-values", "form-model"]);
|
|
14899
15269
|
}), 128)),
|
|
14900
|
-
createVNode(_sfc_main$
|
|
15270
|
+
createVNode(_sfc_main$p, mergeProps(getFormActionBindProps.value, { onToggleAdvanced: unref(handleToggleAdvanced) }), createSlots({ _: 2 }, [
|
|
14901
15271
|
renderList(["resetBefore", "submitBefore", "advanceBefore", "advanceAfter"], (item) => {
|
|
14902
15272
|
return {
|
|
14903
15273
|
name: item,
|
|
@@ -30984,7 +31354,7 @@ VxeUI2.renderer.mixin(basicTableFilterRenderers);
|
|
|
30984
31354
|
VxeUI2.setConfig({
|
|
30985
31355
|
zIndex: 2e3
|
|
30986
31356
|
});
|
|
30987
|
-
const XBasicTable = withInstall(_sfc_main$
|
|
31357
|
+
const XBasicTable = withInstall(_sfc_main$H);
|
|
30988
31358
|
const IMPORT_PREVIEW_ROW_NO_FIELD = "rowNo";
|
|
30989
31359
|
const IMPORT_PREVIEW_ERROR_FIELD = "errorMsg";
|
|
30990
31360
|
function isErrorRow(row) {
|
|
@@ -31682,10 +32052,12 @@ const components = [
|
|
|
31682
32052
|
XBasicText,
|
|
31683
32053
|
XBasicHelp,
|
|
31684
32054
|
XBasicTitle,
|
|
32055
|
+
XBasicTransfer,
|
|
31685
32056
|
XBasicScrollText,
|
|
31686
32057
|
XBasicGradientTitle,
|
|
31687
32058
|
XBasicDrawer,
|
|
31688
32059
|
XBasicModal,
|
|
32060
|
+
XBasicMultilingualInput,
|
|
31689
32061
|
XBasicPage,
|
|
31690
32062
|
XBasicRadioGroup,
|
|
31691
32063
|
XBasicCheckboxGroup,
|
|
@@ -31802,6 +32174,7 @@ export {
|
|
|
31802
32174
|
XBasicMasterTrigger,
|
|
31803
32175
|
XBasicMessageBox,
|
|
31804
32176
|
XBasicModal,
|
|
32177
|
+
XBasicMultilingualInput,
|
|
31805
32178
|
XBasicNotification,
|
|
31806
32179
|
XBasicPage,
|
|
31807
32180
|
XBasicPanel,
|
|
@@ -31819,6 +32192,7 @@ export {
|
|
|
31819
32192
|
XBasicTag,
|
|
31820
32193
|
XBasicText,
|
|
31821
32194
|
XBasicTitle,
|
|
32195
|
+
XBasicTransfer,
|
|
31822
32196
|
XBasicTree,
|
|
31823
32197
|
XBasicTriggerButton,
|
|
31824
32198
|
XBasicUpload,
|
|
@@ -31860,6 +32234,7 @@ export {
|
|
|
31860
32234
|
basicSelectProps,
|
|
31861
32235
|
basicSubPanelProps,
|
|
31862
32236
|
basicTableFilterRenderers,
|
|
32237
|
+
basicTransferProps,
|
|
31863
32238
|
basicUploadDraggerProps,
|
|
31864
32239
|
basicUploadProps,
|
|
31865
32240
|
configProviderProps,
|