@maxax/ui 1.1.76 → 1.1.78
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-import-max/BasicButtonImportMax.vue.d.ts.map +1 -1
- package/dist/components/basic-button-import-max/PreviewModal.vue.d.ts.map +1 -1
- package/dist/components/basic-edit-batch/helper.d.ts +1 -1
- package/dist/components/basic-form/BasicForm.vue.d.ts +2 -2
- package/dist/components/basic-form/BasicForm.vue.d.ts.map +1 -1
- 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/hooks/use-form-grid.d.ts +1 -1
- package/dist/components/basic-form/hooks/use-form-grid.d.ts.map +1 -1
- package/dist/components/basic-form/types/component.d.ts +2 -0
- package/dist/components/basic-form/types/component.d.ts.map +1 -1
- package/dist/components/basic-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-table/filter.d.ts +14 -0
- package/dist/components/basic-table/filter.d.ts.map +1 -0
- package/dist/components/basic-table/helper.d.ts +2 -1
- package/dist/components/basic-table/helper.d.ts.map +1 -1
- package/dist/components/basic-table/hooks/use-data-source.d.ts.map +1 -1
- package/dist/components/basic-table/index.d.ts +3 -2
- package/dist/components/basic-table/index.d.ts.map +1 -1
- package/dist/components/basic-table/interface.d.ts +2 -2
- package/dist/components/basic-table/interface.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +441 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +441 -117
- 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/basicTable.scss +15 -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.cjs
CHANGED
|
@@ -11,7 +11,7 @@ const dayjs = require("dayjs");
|
|
|
11
11
|
const hooks = require("@maxax/hooks");
|
|
12
12
|
const dateFns = require("date-fns");
|
|
13
13
|
const elementResizeDetectorMaker = require("element-resize-detector");
|
|
14
|
-
const zhCn = require("./zh-cn-
|
|
14
|
+
const zhCn = require("./zh-cn-OQuZRA6h.cjs");
|
|
15
15
|
function tryOnScopeDispose(fn, failSilently) {
|
|
16
16
|
if (vue.getCurrentScope()) {
|
|
17
17
|
vue.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$13 = /* @__PURE__ */ vue.defineComponent({
|
|
4053
4053
|
__name: "better-scroll",
|
|
4054
4054
|
props: {
|
|
4055
4055
|
options: {}
|
|
@@ -5774,8 +5774,8 @@ const Icon = vue.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$12 = /* @__PURE__ */ vue.defineComponent({
|
|
5779
5779
|
__name: "BasicSvgIcon",
|
|
5780
5780
|
props: {
|
|
5781
5781
|
icon: {},
|
|
@@ -5809,7 +5809,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5809
5809
|
vue.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)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
5814
5814
|
__props.icon ? (vue.openBlock(), vue.createBlock(vue.unref(Icon), vue.mergeProps({
|
|
5815
5815
|
key: 0,
|
|
@@ -5821,8 +5821,8 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5821
5821
|
};
|
|
5822
5822
|
}
|
|
5823
5823
|
});
|
|
5824
|
-
const XBasicSvgIcon = utils.withInstall(_sfc_main$
|
|
5825
|
-
const _sfc_main$
|
|
5824
|
+
const XBasicSvgIcon = utils.withInstall(_sfc_main$12);
|
|
5825
|
+
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
5826
5826
|
...{
|
|
5827
5827
|
inheritAttrs: false
|
|
5828
5828
|
},
|
|
@@ -5871,7 +5871,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5871
5871
|
};
|
|
5872
5872
|
}
|
|
5873
5873
|
});
|
|
5874
|
-
const _sfc_main
|
|
5874
|
+
const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
5875
5875
|
__name: "full-screen",
|
|
5876
5876
|
props: {
|
|
5877
5877
|
full: { type: Boolean }
|
|
@@ -5879,7 +5879,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
5879
5879
|
setup(__props) {
|
|
5880
5880
|
const { t: t2 } = useLocale();
|
|
5881
5881
|
return (_ctx, _cache) => {
|
|
5882
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5882
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$11, {
|
|
5883
5883
|
key: String(__props.full),
|
|
5884
5884
|
"tooltip-content": __props.full ? vue.unref(t2)("max.icon.fullscreenExit") : vue.unref(t2)("max.icon.fullscreen")
|
|
5885
5885
|
}, {
|
|
@@ -5897,7 +5897,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
5897
5897
|
};
|
|
5898
5898
|
}
|
|
5899
5899
|
});
|
|
5900
|
-
const _sfc_main
|
|
5900
|
+
const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
5901
5901
|
__name: "icon-tooltip",
|
|
5902
5902
|
props: {
|
|
5903
5903
|
icon: { default: "mdi-help-circle" },
|
|
@@ -5937,7 +5937,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
5937
5937
|
};
|
|
5938
5938
|
}
|
|
5939
5939
|
});
|
|
5940
|
-
const _sfc_main$
|
|
5940
|
+
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
5941
5941
|
__name: "menu-toggler",
|
|
5942
5942
|
props: {
|
|
5943
5943
|
collapsed: { type: Boolean },
|
|
@@ -5963,7 +5963,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5963
5963
|
return icons[arrowIcon][collapsed];
|
|
5964
5964
|
});
|
|
5965
5965
|
return (_ctx, _cache) => {
|
|
5966
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5966
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$11, {
|
|
5967
5967
|
key: String(__props.collapsed),
|
|
5968
5968
|
"tooltip-content": __props.collapsed ? vue.unref(t2)("max.icon.expand") : vue.unref(t2)("max.icon.collapse"),
|
|
5969
5969
|
"tooltip-placement": "bottom-start",
|
|
@@ -5977,7 +5977,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5977
5977
|
};
|
|
5978
5978
|
}
|
|
5979
5979
|
});
|
|
5980
|
-
const _sfc_main$
|
|
5980
|
+
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
5981
5981
|
__name: "pin-toggler",
|
|
5982
5982
|
props: {
|
|
5983
5983
|
pin: { type: Boolean }
|
|
@@ -5987,7 +5987,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
5987
5987
|
const { t: t2 } = useLocale();
|
|
5988
5988
|
const icon = vue.computed(() => props.pin ? "mdi-pin-off" : "mdi-pin");
|
|
5989
5989
|
return (_ctx, _cache) => {
|
|
5990
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5990
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$11, {
|
|
5991
5991
|
"tooltip-content": __props.pin ? vue.unref(t2)("max.icon.unpin") : vue.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__ */ vue.defineComponent({
|
|
|
6000
6000
|
};
|
|
6001
6001
|
}
|
|
6002
6002
|
});
|
|
6003
|
-
const _sfc_main$
|
|
6003
|
+
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
6004
6004
|
__name: "reload-button",
|
|
6005
6005
|
props: {
|
|
6006
6006
|
loading: { type: Boolean }
|
|
@@ -6009,7 +6009,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
6009
6009
|
const { t: t2 } = useLocale();
|
|
6010
6010
|
const { b } = useNamespace("reload-button");
|
|
6011
6011
|
return (_ctx, _cache) => {
|
|
6012
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
6012
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$11, {
|
|
6013
6013
|
"tooltip-content": vue.unref(t2)("max.icon.reload")
|
|
6014
6014
|
}, {
|
|
6015
6015
|
default: vue.withCtx(() => [
|
|
@@ -6023,14 +6023,14 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
6023
6023
|
};
|
|
6024
6024
|
}
|
|
6025
6025
|
});
|
|
6026
|
-
const XCommonBetterScroll = utils.withInstall(_sfc_main$
|
|
6027
|
-
const XCommonButtonIcon = utils.withInstall(_sfc_main$
|
|
6028
|
-
const XCommonFullScreen = utils.withInstall(_sfc_main
|
|
6029
|
-
const XCommonIconTooltip = utils.withInstall(_sfc_main
|
|
6030
|
-
const XCommonMenuToggler = utils.withInstall(_sfc_main$
|
|
6031
|
-
const XCommonPinToggler = utils.withInstall(_sfc_main$
|
|
6032
|
-
const XCommonReloadButton = utils.withInstall(_sfc_main$
|
|
6033
|
-
const _sfc_main$
|
|
6026
|
+
const XCommonBetterScroll = utils.withInstall(_sfc_main$13);
|
|
6027
|
+
const XCommonButtonIcon = utils.withInstall(_sfc_main$11);
|
|
6028
|
+
const XCommonFullScreen = utils.withInstall(_sfc_main$10);
|
|
6029
|
+
const XCommonIconTooltip = utils.withInstall(_sfc_main$$);
|
|
6030
|
+
const XCommonMenuToggler = utils.withInstall(_sfc_main$_);
|
|
6031
|
+
const XCommonPinToggler = utils.withInstall(_sfc_main$Z);
|
|
6032
|
+
const XCommonReloadButton = utils.withInstall(_sfc_main$Y);
|
|
6033
|
+
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
6034
6034
|
__name: "BasicButton",
|
|
6035
6035
|
props: {
|
|
6036
6036
|
icon: {}
|
|
@@ -6060,7 +6060,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
6060
6060
|
};
|
|
6061
6061
|
}
|
|
6062
6062
|
});
|
|
6063
|
-
const XBasicButton = utils.withInstall(_sfc_main$
|
|
6063
|
+
const XBasicButton = utils.withInstall(_sfc_main$X);
|
|
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$W = vue.defineComponent({
|
|
6285
6285
|
components: {
|
|
6286
6286
|
NButton: naiveUi.NButton,
|
|
6287
6287
|
NInput: naiveUi.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 = vue.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$W, [["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$V = /* @__PURE__ */ vue.defineComponent({
|
|
6819
6819
|
__name: "BasicActionFooter",
|
|
6820
6820
|
props: {
|
|
6821
6821
|
showDeleteButton: { type: Boolean, default: false },
|
|
@@ -6897,8 +6897,8 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
6897
6897
|
};
|
|
6898
6898
|
}
|
|
6899
6899
|
});
|
|
6900
|
-
const XBasicActionFooter = utils.withInstall(_sfc_main$
|
|
6901
|
-
const _sfc_main$
|
|
6900
|
+
const XBasicActionFooter = utils.withInstall(_sfc_main$V);
|
|
6901
|
+
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
6902
6902
|
__name: "BasicArrow",
|
|
6903
6903
|
props: {
|
|
6904
6904
|
expand: { type: Boolean },
|
|
@@ -6930,8 +6930,8 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
6930
6930
|
};
|
|
6931
6931
|
}
|
|
6932
6932
|
});
|
|
6933
|
-
const XBasicArrow = utils.withInstall(_sfc_main$
|
|
6934
|
-
const _sfc_main$
|
|
6933
|
+
const XBasicArrow = utils.withInstall(_sfc_main$U);
|
|
6934
|
+
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
6935
6935
|
__name: "BasicBoolIcon",
|
|
6936
6936
|
props: {
|
|
6937
6937
|
value: { type: [Boolean, null] },
|
|
@@ -6978,8 +6978,8 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
6978
6978
|
};
|
|
6979
6979
|
}
|
|
6980
6980
|
});
|
|
6981
|
-
const XBasicBoolIcon = utils.withInstall(_sfc_main$
|
|
6982
|
-
const _sfc_main$
|
|
6981
|
+
const XBasicBoolIcon = utils.withInstall(_sfc_main$T);
|
|
6982
|
+
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
6983
6983
|
__name: "BasicButtonCreate",
|
|
6984
6984
|
emits: ["click"],
|
|
6985
6985
|
setup(__props, { emit: __emit }) {
|
|
@@ -7004,7 +7004,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
7004
7004
|
};
|
|
7005
7005
|
}
|
|
7006
7006
|
});
|
|
7007
|
-
const _sfc_main$
|
|
7007
|
+
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
7008
7008
|
__name: "BasicButtonDelete",
|
|
7009
7009
|
emits: ["click"],
|
|
7010
7010
|
setup(__props, { emit: __emit }) {
|
|
@@ -7029,7 +7029,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
7029
7029
|
};
|
|
7030
7030
|
}
|
|
7031
7031
|
});
|
|
7032
|
-
const _sfc_main$
|
|
7032
|
+
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
7033
7033
|
__name: "BasicButtonDrop",
|
|
7034
7034
|
props: {
|
|
7035
7035
|
disabled: { type: Boolean },
|
|
@@ -7094,7 +7094,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
7094
7094
|
};
|
|
7095
7095
|
}
|
|
7096
7096
|
});
|
|
7097
|
-
const _sfc_main$
|
|
7097
|
+
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
7098
7098
|
__name: "BasicButtonEdit",
|
|
7099
7099
|
emits: ["click"],
|
|
7100
7100
|
setup(__props, { emit: __emit }) {
|
|
@@ -7119,7 +7119,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
7119
7119
|
};
|
|
7120
7120
|
}
|
|
7121
7121
|
});
|
|
7122
|
-
const _sfc_main$
|
|
7122
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
7123
7123
|
__name: "BasicButtonExport",
|
|
7124
7124
|
props: {
|
|
7125
7125
|
href: {},
|
|
@@ -7170,7 +7170,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
7170
7170
|
};
|
|
7171
7171
|
}
|
|
7172
7172
|
});
|
|
7173
|
-
const _sfc_main$
|
|
7173
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
7174
7174
|
__name: "BasicButtonExportDrop",
|
|
7175
7175
|
props: {
|
|
7176
7176
|
disabled: { type: Boolean },
|
|
@@ -7194,7 +7194,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7194
7194
|
emit("click", key2);
|
|
7195
7195
|
}
|
|
7196
7196
|
return (_ctx, _cache) => {
|
|
7197
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7197
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$Q, {
|
|
7198
7198
|
icon: __props.icon,
|
|
7199
7199
|
options: cOptions.value,
|
|
7200
7200
|
onClick: handleClick
|
|
@@ -7207,8 +7207,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.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$M = /* @__PURE__ */ vue.defineComponent({
|
|
7212
7212
|
__name: "BasicButtonImport",
|
|
7213
7213
|
props: {
|
|
7214
7214
|
name: { default: "file" },
|
|
@@ -7295,7 +7295,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7295
7295
|
accept: __props.accept,
|
|
7296
7296
|
style: vue.normalizeStyle(buttonStyle.value),
|
|
7297
7297
|
onChange: onFileChange
|
|
7298
|
-
}, null, 44, _hoisted_1$
|
|
7298
|
+
}, null, 44, _hoisted_1$c)),
|
|
7299
7299
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
7300
7300
|
vue.createTextVNode(vue.toDisplayString(vue.unref(t2)("max.basic.import")), 1)
|
|
7301
7301
|
])
|
|
@@ -7305,7 +7305,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7305
7305
|
};
|
|
7306
7306
|
}
|
|
7307
7307
|
});
|
|
7308
|
-
const _sfc_main$
|
|
7308
|
+
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
7309
7309
|
__name: "BasicButtonPrint",
|
|
7310
7310
|
emits: ["click"],
|
|
7311
7311
|
setup(__props, { emit: __emit }) {
|
|
@@ -7330,19 +7330,19 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
7330
7330
|
};
|
|
7331
7331
|
}
|
|
7332
7332
|
});
|
|
7333
|
-
const XBasicButtonCreate = utils.withInstall(_sfc_main$
|
|
7334
|
-
const XBasicButtonEdit = utils.withInstall(_sfc_main$
|
|
7335
|
-
const XBasicButtonDelete = utils.withInstall(_sfc_main$
|
|
7336
|
-
const XBasicButtonExport = utils.withInstall(_sfc_main$
|
|
7337
|
-
const XBasicButtonImport = utils.withInstall(_sfc_main$
|
|
7338
|
-
const XBasicButtonPrint = utils.withInstall(_sfc_main$
|
|
7339
|
-
const XBasicButtonDrop = utils.withInstall(_sfc_main$
|
|
7340
|
-
const XBasicButtonExportDrop = utils.withInstall(_sfc_main$
|
|
7341
|
-
const _hoisted_1$
|
|
7333
|
+
const XBasicButtonCreate = utils.withInstall(_sfc_main$S);
|
|
7334
|
+
const XBasicButtonEdit = utils.withInstall(_sfc_main$P);
|
|
7335
|
+
const XBasicButtonDelete = utils.withInstall(_sfc_main$R);
|
|
7336
|
+
const XBasicButtonExport = utils.withInstall(_sfc_main$O);
|
|
7337
|
+
const XBasicButtonImport = utils.withInstall(_sfc_main$M);
|
|
7338
|
+
const XBasicButtonPrint = utils.withInstall(_sfc_main$L);
|
|
7339
|
+
const XBasicButtonDrop = utils.withInstall(_sfc_main$Q);
|
|
7340
|
+
const XBasicButtonExportDrop = utils.withInstall(_sfc_main$N);
|
|
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$K = /* @__PURE__ */ vue.defineComponent({
|
|
7346
7346
|
__name: "BasicNotification",
|
|
7347
7347
|
props: {
|
|
7348
7348
|
customClass: { default: "" },
|
|
@@ -7478,7 +7478,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
7478
7478
|
}, null, 8, ["class"])) : vue.createCommentVNode("", true)
|
|
7479
7479
|
])
|
|
7480
7480
|
], 2)
|
|
7481
|
-
], 46, _hoisted_1$
|
|
7481
|
+
], 46, _hoisted_1$b), [
|
|
7482
7482
|
[vue.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 = vue.createVNode(_sfc_main$
|
|
7532
|
+
const vm = vue.createVNode(_sfc_main$K, props, utils.isFunction(props.message) ? props.message : vue.isVNode(props.message) ? () => props.message : null);
|
|
7533
7533
|
vm.appContext = utils.isUndefined(context) ? notify._context : context;
|
|
7534
7534
|
vm.props.onDestroy = () => {
|
|
7535
7535
|
vue.render(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$J = /* @__PURE__ */ vue.defineComponent({
|
|
7591
7591
|
__name: "BasicButtonExportMax",
|
|
7592
7592
|
props: {
|
|
7593
7593
|
drop: { type: Boolean, default: true },
|
|
@@ -7672,7 +7672,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
7672
7672
|
}
|
|
7673
7673
|
return (_ctx, _cache) => {
|
|
7674
7674
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
7675
|
-
__props.drop ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7675
|
+
__props.drop ? (vue.openBlock(), vue.createBlock(_sfc_main$Q, vue.mergeProps({
|
|
7676
7676
|
key: 0,
|
|
7677
7677
|
icon: __props.icon,
|
|
7678
7678
|
options: cOptions.value,
|
|
@@ -7724,11 +7724,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
7724
7724
|
};
|
|
7725
7725
|
}
|
|
7726
7726
|
});
|
|
7727
|
-
const XBasicButtonExportMax = utils.withInstall(_sfc_main$
|
|
7727
|
+
const XBasicButtonExportMax = utils.withInstall(_sfc_main$J);
|
|
7728
7728
|
function _isSlot$3(s) {
|
|
7729
7729
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
7730
7730
|
}
|
|
7731
|
-
const _sfc_main$
|
|
7731
|
+
const _sfc_main$I = /* @__PURE__ */ vue.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$H = /* @__PURE__ */ vue.defineComponent({
|
|
8108
8108
|
__name: "BasicButtonGroup",
|
|
8109
8109
|
props: {
|
|
8110
8110
|
showReturnButton: { type: Boolean, default: true },
|
|
@@ -8196,7 +8196,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
8196
8196
|
}, [
|
|
8197
8197
|
vue.renderSlot(_ctx.$slots, "left-left"),
|
|
8198
8198
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getLeftSchema.value, (schema) => {
|
|
8199
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8199
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$I, {
|
|
8200
8200
|
key: schema.field,
|
|
8201
8201
|
schema,
|
|
8202
8202
|
"button-group-action-type": buttonGroupActionType,
|
|
@@ -8221,7 +8221,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
8221
8221
|
}, [
|
|
8222
8222
|
vue.renderSlot(_ctx.$slots, "right-left"),
|
|
8223
8223
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getRightSchema.value, (schema) => {
|
|
8224
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8224
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$I, {
|
|
8225
8225
|
key: schema.field,
|
|
8226
8226
|
schema,
|
|
8227
8227
|
"button-group-action-type": buttonGroupActionType,
|
|
@@ -8244,7 +8244,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
8244
8244
|
};
|
|
8245
8245
|
}
|
|
8246
8246
|
});
|
|
8247
|
-
const XBasicButtonGroup = utils.withInstall(_sfc_main$
|
|
8247
|
+
const XBasicButtonGroup = utils.withInstall(_sfc_main$H);
|
|
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;
|
|
@@ -8582,19 +8582,33 @@ function parseRowKeyValue$1(rowKey, record, autoCreateKey) {
|
|
|
8582
8582
|
function setTableGlobalFormats(formats) {
|
|
8583
8583
|
vxeTable.VxeUI.formats.mixin(formats);
|
|
8584
8584
|
}
|
|
8585
|
+
function setTableGlobalFilterRenderers(renderers) {
|
|
8586
|
+
vxeTable.VxeUI.renderer.mixin(renderers);
|
|
8587
|
+
}
|
|
8588
|
+
function parseFilterInfo(filterList = []) {
|
|
8589
|
+
return filterList.reduce((filterInfo, item) => {
|
|
8590
|
+
filterInfo[item.field] = item.datas.length > 1 ? item.datas : item.datas[0];
|
|
8591
|
+
return filterInfo;
|
|
8592
|
+
}, {});
|
|
8593
|
+
}
|
|
8585
8594
|
function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination, setSelection, setLoading, emit }) {
|
|
8586
8595
|
const searchState = vue.reactive({
|
|
8587
8596
|
sortInfo: {},
|
|
8588
8597
|
filterInfo: {}
|
|
8589
8598
|
});
|
|
8590
8599
|
const getSortRef = vue.computed(() => {
|
|
8591
|
-
const { onSortChange } = vue.unref(propsRef);
|
|
8600
|
+
const { onFilterChange, onSortChange } = vue.unref(propsRef);
|
|
8592
8601
|
return {
|
|
8593
8602
|
onSortChange: (params) => {
|
|
8594
8603
|
searchState.sortInfo.ascSortColumn = params.order === "asc" ? params.field : "";
|
|
8595
8604
|
searchState.sortInfo.descSortColumn = params.order === "desc" ? params.field : "";
|
|
8596
8605
|
onSortChange && onSortChange(params);
|
|
8597
8606
|
fetch2();
|
|
8607
|
+
},
|
|
8608
|
+
onFilterChange: (params) => {
|
|
8609
|
+
searchState.filterInfo = parseFilterInfo(params.filterList);
|
|
8610
|
+
onFilterChange && onFilterChange(params);
|
|
8611
|
+
fetch2();
|
|
8598
8612
|
}
|
|
8599
8613
|
};
|
|
8600
8614
|
});
|
|
@@ -9191,8 +9205,8 @@ function useTableForm(propsRef, { fetch: fetch2, getLoading, setPagination, setS
|
|
|
9191
9205
|
handleSearchInfoReload
|
|
9192
9206
|
};
|
|
9193
9207
|
}
|
|
9194
|
-
const _hoisted_1$
|
|
9195
|
-
const _sfc_main$
|
|
9208
|
+
const _hoisted_1$a = { class: "max-table-selection-count" };
|
|
9209
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
9196
9210
|
__name: "BasicTable",
|
|
9197
9211
|
props: {
|
|
9198
9212
|
layouts: {},
|
|
@@ -9253,7 +9267,13 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
9253
9267
|
minWidth: "auto",
|
|
9254
9268
|
resizable: true,
|
|
9255
9269
|
useKey: true,
|
|
9256
|
-
maxFixedSize: 4
|
|
9270
|
+
maxFixedSize: 4,
|
|
9271
|
+
autoOptions: {
|
|
9272
|
+
isCalcHeader: true,
|
|
9273
|
+
isCalcBody: false,
|
|
9274
|
+
// 不自适应计算宽度
|
|
9275
|
+
isCalcFooter: true
|
|
9276
|
+
}
|
|
9257
9277
|
}) },
|
|
9258
9278
|
rowConfig: { default: () => ({
|
|
9259
9279
|
useKey: true,
|
|
@@ -9660,7 +9680,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
9660
9680
|
class: vue.normalizeClass(vue.unref(e)("selection-count"))
|
|
9661
9681
|
}, [
|
|
9662
9682
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t2)("max.basic.selected")), 1),
|
|
9663
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
9683
|
+
vue.createElementVNode("span", _hoisted_1$a, vue.toDisplayString(vue.unref(getSelectRows)().length), 1),
|
|
9664
9684
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t2)("max.basic.item")), 1)
|
|
9665
9685
|
], 2)
|
|
9666
9686
|
], 2)) : vue.createCommentVNode("", true),
|
|
@@ -9686,6 +9706,69 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
9686
9706
|
};
|
|
9687
9707
|
}
|
|
9688
9708
|
});
|
|
9709
|
+
const BASIC_TABLE_FILTER_INPUT_RENDERER = "XBasicTableFilterInput";
|
|
9710
|
+
function isEmptyValue(value) {
|
|
9711
|
+
return value === null || value === void 0 || value === "";
|
|
9712
|
+
}
|
|
9713
|
+
function updateFilterOptionStatus(params, option) {
|
|
9714
|
+
params.$table.updateFilterOptionStatus(option, !isEmptyValue(option.data));
|
|
9715
|
+
}
|
|
9716
|
+
function callFilterEvent(events, name, params, payload) {
|
|
9717
|
+
var _a;
|
|
9718
|
+
(_a = events == null ? void 0 : events[name]) == null ? void 0 : _a.call(events, params, payload);
|
|
9719
|
+
}
|
|
9720
|
+
const basicTableFilterRenderers = {
|
|
9721
|
+
[BASIC_TABLE_FILTER_INPUT_RENDERER]: {
|
|
9722
|
+
tableFilterClassName: "x-basic-table-filter-input",
|
|
9723
|
+
showTableFilterFooter: true,
|
|
9724
|
+
createTableFilterOptions: () => [{
|
|
9725
|
+
data: ""
|
|
9726
|
+
}],
|
|
9727
|
+
renderTableFilter(renderOpts, params) {
|
|
9728
|
+
const {
|
|
9729
|
+
props = {},
|
|
9730
|
+
attrs = {},
|
|
9731
|
+
events = {}
|
|
9732
|
+
} = renderOpts;
|
|
9733
|
+
return params.column.filters.map((option, index2) => {
|
|
9734
|
+
return vue.createVNode(naiveUi.NInput, vue.mergeProps({
|
|
9735
|
+
"key": index2,
|
|
9736
|
+
"clearable": true,
|
|
9737
|
+
"placeholder": "请输入筛选内容"
|
|
9738
|
+
}, attrs, props, {
|
|
9739
|
+
"value": option.data,
|
|
9740
|
+
"onUpdateValue": (value) => {
|
|
9741
|
+
option.data = value;
|
|
9742
|
+
updateFilterOptionStatus(params, option);
|
|
9743
|
+
callFilterEvent(events, "update:value", params, value);
|
|
9744
|
+
},
|
|
9745
|
+
"onChange": (value) => {
|
|
9746
|
+
updateFilterOptionStatus(params, option);
|
|
9747
|
+
callFilterEvent(events, "change", params, value);
|
|
9748
|
+
},
|
|
9749
|
+
"onBlur": (event) => {
|
|
9750
|
+
updateFilterOptionStatus(params, option);
|
|
9751
|
+
callFilterEvent(events, "blur", params, event);
|
|
9752
|
+
},
|
|
9753
|
+
"onKeydown": (event) => {
|
|
9754
|
+
if (event.key !== "Enter") return;
|
|
9755
|
+
event.preventDefault();
|
|
9756
|
+
updateFilterOptionStatus(params, option);
|
|
9757
|
+
params.$table.saveFilterByEvent(event, params.column);
|
|
9758
|
+
callFilterEvent(events, "keydown", params, event);
|
|
9759
|
+
}
|
|
9760
|
+
}), null);
|
|
9761
|
+
});
|
|
9762
|
+
},
|
|
9763
|
+
tableFilterDefaultMethod({
|
|
9764
|
+
option,
|
|
9765
|
+
cellValue
|
|
9766
|
+
}) {
|
|
9767
|
+
if (isEmptyValue(option.data)) return true;
|
|
9768
|
+
return String(cellValue != null ? cellValue : "").includes(String(option.data));
|
|
9769
|
+
}
|
|
9770
|
+
}
|
|
9771
|
+
};
|
|
9689
9772
|
const formatterFYN = (value) => {
|
|
9690
9773
|
return value ? t("max.basic.yes") : t("max.basic.no");
|
|
9691
9774
|
};
|
|
@@ -9712,8 +9795,8 @@ const MaxUI = {
|
|
|
9712
9795
|
getI18n,
|
|
9713
9796
|
t
|
|
9714
9797
|
};
|
|
9715
|
-
const _hoisted_1$
|
|
9716
|
-
const _sfc_main$
|
|
9798
|
+
const _hoisted_1$9 = ["title"];
|
|
9799
|
+
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
9717
9800
|
__name: "BasicText",
|
|
9718
9801
|
props: {
|
|
9719
9802
|
icon: { default: "" },
|
|
@@ -9753,7 +9836,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
9753
9836
|
class: vue.normalizeClass(basicTextClass.value),
|
|
9754
9837
|
title: vue.unref(utils.isString)(vue.unref(mergedValueRef)) ? vue.unref(mergedValueRef) : void 0
|
|
9755
9838
|
}, [
|
|
9756
|
-
__props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
9839
|
+
__props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$12, {
|
|
9757
9840
|
key: 0,
|
|
9758
9841
|
icon: __props.icon,
|
|
9759
9842
|
class: vue.normalizeClass(__props.iconClass),
|
|
@@ -9762,12 +9845,12 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
9762
9845
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
9763
9846
|
vue.createTextVNode(vue.toDisplayString(vue.unref(mergedValueRef)), 1)
|
|
9764
9847
|
])
|
|
9765
|
-
], 10, _hoisted_1$
|
|
9848
|
+
], 10, _hoisted_1$9);
|
|
9766
9849
|
};
|
|
9767
9850
|
}
|
|
9768
9851
|
});
|
|
9769
|
-
const XBasicText = utils.withInstall(_sfc_main$
|
|
9770
|
-
const _sfc_main$
|
|
9852
|
+
const XBasicText = utils.withInstall(_sfc_main$F);
|
|
9853
|
+
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
9771
9854
|
__name: "BasicCard",
|
|
9772
9855
|
props: {
|
|
9773
9856
|
title: {},
|
|
@@ -9806,8 +9889,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
9806
9889
|
};
|
|
9807
9890
|
}
|
|
9808
9891
|
});
|
|
9809
|
-
const XBasicCard = utils.withInstall(_sfc_main$
|
|
9810
|
-
const _sfc_main$
|
|
9892
|
+
const XBasicCard = utils.withInstall(_sfc_main$E);
|
|
9893
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
9811
9894
|
...{
|
|
9812
9895
|
inheritAttrs: false
|
|
9813
9896
|
},
|
|
@@ -9932,7 +10015,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
9932
10015
|
}
|
|
9933
10016
|
});
|
|
9934
10017
|
const basicCascaderProps = {};
|
|
9935
|
-
const XBasicCascader = utils.withInstall(_sfc_main$
|
|
10018
|
+
const XBasicCascader = utils.withInstall(_sfc_main$D);
|
|
9936
10019
|
const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
|
|
9937
10020
|
const createBasicCheckboxGroupContext = (props) => {
|
|
9938
10021
|
return vue.provide(basicCheckboxGroupKey, props);
|
|
@@ -9953,7 +10036,7 @@ const IconCheck = /* @__PURE__ */ vue.defineComponent({
|
|
|
9953
10036
|
}, null)]);
|
|
9954
10037
|
}
|
|
9955
10038
|
});
|
|
9956
|
-
const _sfc_main$
|
|
10039
|
+
const _sfc_main$C = vue.defineComponent({
|
|
9957
10040
|
name: "IconHover",
|
|
9958
10041
|
props: {
|
|
9959
10042
|
disabled: {
|
|
@@ -9981,7 +10064,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9981
10064
|
vue.renderSlot(_ctx.$slots, "default")
|
|
9982
10065
|
], 2);
|
|
9983
10066
|
}
|
|
9984
|
-
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10067
|
+
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$1]]);
|
|
9985
10068
|
const basicCheckboxProps = {
|
|
9986
10069
|
/**
|
|
9987
10070
|
* @zh 绑定值
|
|
@@ -10654,7 +10737,7 @@ const BasicCol = /* @__PURE__ */ vue.defineComponent({
|
|
|
10654
10737
|
}
|
|
10655
10738
|
});
|
|
10656
10739
|
const XBasicCol = utils.withInstall(BasicCol);
|
|
10657
|
-
const _sfc_main$
|
|
10740
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
10658
10741
|
__name: "BasicCountTo",
|
|
10659
10742
|
props: {
|
|
10660
10743
|
startValue: { default: 0 },
|
|
@@ -10715,8 +10798,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
10715
10798
|
};
|
|
10716
10799
|
}
|
|
10717
10800
|
});
|
|
10718
|
-
const XBasicCountTo = utils.withInstall(_sfc_main$
|
|
10719
|
-
const _sfc_main$
|
|
10801
|
+
const XBasicCountTo = utils.withInstall(_sfc_main$B);
|
|
10802
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
10720
10803
|
__name: "BasicDatePicker",
|
|
10721
10804
|
props: {
|
|
10722
10805
|
disabled: { type: Boolean, default: false },
|
|
@@ -10776,7 +10859,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
10776
10859
|
};
|
|
10777
10860
|
}
|
|
10778
10861
|
});
|
|
10779
|
-
const XBasicDatePicker = utils.withInstall(_sfc_main$
|
|
10862
|
+
const XBasicDatePicker = utils.withInstall(_sfc_main$A);
|
|
10780
10863
|
const basicDragVerifyProps = {
|
|
10781
10864
|
value: {
|
|
10782
10865
|
type: Boolean,
|
|
@@ -10823,7 +10906,7 @@ const basicDragVerifyProps = {
|
|
|
10823
10906
|
default: () => ({})
|
|
10824
10907
|
}
|
|
10825
10908
|
};
|
|
10826
|
-
const _sfc_main$
|
|
10909
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
10827
10910
|
name: "BasicDragVerify",
|
|
10828
10911
|
props: basicDragVerifyProps,
|
|
10829
10912
|
emits: ["success", "update:value", "change", "start", "move", "end"],
|
|
@@ -11126,7 +11209,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
11126
11209
|
};
|
|
11127
11210
|
}
|
|
11128
11211
|
});
|
|
11129
|
-
const XBasicDragVerify = utils.withInstall(_sfc_main$
|
|
11212
|
+
const XBasicDragVerify = utils.withInstall(_sfc_main$z);
|
|
11130
11213
|
const basicHelpProps = {
|
|
11131
11214
|
/**
|
|
11132
11215
|
* Whether to display the serial number
|
|
@@ -11142,7 +11225,7 @@ const basicHelpProps = {
|
|
|
11142
11225
|
default: ""
|
|
11143
11226
|
}
|
|
11144
11227
|
};
|
|
11145
|
-
const _sfc_main$
|
|
11228
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
11146
11229
|
name: "BasicHelp",
|
|
11147
11230
|
components: {
|
|
11148
11231
|
XBasicSvgIcon
|
|
@@ -11188,8 +11271,8 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
11188
11271
|
});
|
|
11189
11272
|
}
|
|
11190
11273
|
});
|
|
11191
|
-
const XBasicHelp = utils.withInstall(_sfc_main$
|
|
11192
|
-
const _sfc_main$
|
|
11274
|
+
const XBasicHelp = utils.withInstall(_sfc_main$y);
|
|
11275
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
11193
11276
|
__name: "BasicTitle",
|
|
11194
11277
|
props: {
|
|
11195
11278
|
helpMessage: {},
|
|
@@ -11232,12 +11315,12 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
11232
11315
|
};
|
|
11233
11316
|
}
|
|
11234
11317
|
});
|
|
11235
|
-
const XBasicTitle = utils.withInstall(_sfc_main$
|
|
11236
|
-
const _hoisted_1$
|
|
11318
|
+
const XBasicTitle = utils.withInstall(_sfc_main$x);
|
|
11319
|
+
const _hoisted_1$8 = {
|
|
11237
11320
|
key: 0,
|
|
11238
11321
|
class: "footer-wrapper"
|
|
11239
11322
|
};
|
|
11240
|
-
const _sfc_main$
|
|
11323
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
11241
11324
|
__name: "BasicDrawer",
|
|
11242
11325
|
props: {
|
|
11243
11326
|
showCancelBtn: { type: Boolean, default: true },
|
|
@@ -11371,7 +11454,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
11371
11454
|
!_ctx.$slots.footer ? {
|
|
11372
11455
|
name: "footer",
|
|
11373
11456
|
fn: vue.withCtx(() => [
|
|
11374
|
-
__props.showFooter ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
11457
|
+
__props.showFooter ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
11375
11458
|
vue.renderSlot(_ctx.$slots, "before-footer"),
|
|
11376
11459
|
__props.showCancelBtn ? (vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), {
|
|
11377
11460
|
key: 0,
|
|
@@ -11411,8 +11494,8 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
11411
11494
|
};
|
|
11412
11495
|
}
|
|
11413
11496
|
});
|
|
11414
|
-
const XBasicDrawer = utils.withInstall(_sfc_main$
|
|
11415
|
-
const _sfc_main$
|
|
11497
|
+
const XBasicDrawer = utils.withInstall(_sfc_main$w);
|
|
11498
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
11416
11499
|
__name: "BasicDrawerFooter",
|
|
11417
11500
|
props: {
|
|
11418
11501
|
showDeleteButton: { type: Boolean, default: false },
|
|
@@ -11489,7 +11572,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
11489
11572
|
};
|
|
11490
11573
|
}
|
|
11491
11574
|
});
|
|
11492
|
-
const XBasicDrawerFooter = utils.withInstall(_sfc_main$
|
|
11575
|
+
const XBasicDrawerFooter = utils.withInstall(_sfc_main$v);
|
|
11493
11576
|
const basicEditBatchKey = Symbol("basic-edit-batch");
|
|
11494
11577
|
const createBasicEditBatchContext = (props) => {
|
|
11495
11578
|
return vue.provide(basicEditBatchKey, props);
|
|
@@ -11497,8 +11580,8 @@ const createBasicEditBatchContext = (props) => {
|
|
|
11497
11580
|
const useBasicEditBatchContext = () => {
|
|
11498
11581
|
return vue.inject(basicEditBatchKey);
|
|
11499
11582
|
};
|
|
11500
|
-
const _hoisted_1$
|
|
11501
|
-
const _sfc_main$
|
|
11583
|
+
const _hoisted_1$7 = ["disabled"];
|
|
11584
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
11502
11585
|
__name: "EditBatchAction",
|
|
11503
11586
|
props: {
|
|
11504
11587
|
disabled: { type: Boolean, default: false },
|
|
@@ -11554,11 +11637,11 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
11554
11637
|
_: 1
|
|
11555
11638
|
}, 16, ["class", "onClick"])) : vue.createCommentVNode("", true),
|
|
11556
11639
|
vue.renderSlot(_ctx.$slots, "submitAfter")
|
|
11557
|
-
], 10, _hoisted_1$
|
|
11640
|
+
], 10, _hoisted_1$7);
|
|
11558
11641
|
};
|
|
11559
11642
|
}
|
|
11560
11643
|
});
|
|
11561
|
-
const _sfc_main$
|
|
11644
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
11562
11645
|
__name: "BasicHidden",
|
|
11563
11646
|
props: {
|
|
11564
11647
|
value: {},
|
|
@@ -11585,7 +11668,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
11585
11668
|
};
|
|
11586
11669
|
}
|
|
11587
11670
|
});
|
|
11588
|
-
const XBasicHidden = utils.withInstall(_sfc_main$
|
|
11671
|
+
const XBasicHidden = utils.withInstall(_sfc_main$t);
|
|
11589
11672
|
const basicRadioGroupKey = Symbol("basic-radio-group");
|
|
11590
11673
|
const createBasicRadioGroupContext = (props) => {
|
|
11591
11674
|
return vue.provide(basicRadioGroupKey, props);
|
|
@@ -11977,7 +12060,7 @@ const BasicRadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
11977
12060
|
}
|
|
11978
12061
|
});
|
|
11979
12062
|
const XBasicRadioGroup = utils.withInstall(BasicRadioGroup);
|
|
11980
|
-
const _sfc_main$
|
|
12063
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
11981
12064
|
...{
|
|
11982
12065
|
inheritAttrs: false
|
|
11983
12066
|
},
|
|
@@ -12103,7 +12186,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
12103
12186
|
}
|
|
12104
12187
|
});
|
|
12105
12188
|
const basicSelectProps = {};
|
|
12106
|
-
const XBasicSelect = utils.withInstall(_sfc_main$
|
|
12189
|
+
const XBasicSelect = utils.withInstall(_sfc_main$s);
|
|
12107
12190
|
const componentMap$1 = /* @__PURE__ */ new Map();
|
|
12108
12191
|
componentMap$1.set("Input", naiveUi.NInput);
|
|
12109
12192
|
componentMap$1.set("InputNumber", naiveUi.NInputNumber);
|
|
@@ -12182,7 +12265,7 @@ function isComponentEditBatchSchema(schema) {
|
|
|
12182
12265
|
function _isSlot$1(s) {
|
|
12183
12266
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
12184
12267
|
}
|
|
12185
|
-
const _sfc_main$
|
|
12268
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
12186
12269
|
name: "BasicEditBatchItem",
|
|
12187
12270
|
components: {
|
|
12188
12271
|
XBasicHelp
|
|
@@ -12920,7 +13003,7 @@ function useEditBatchValues({ getProps, defaultValueRef, getSchema, formModel })
|
|
|
12920
13003
|
}
|
|
12921
13004
|
return { handleFormValues, initDefault };
|
|
12922
13005
|
}
|
|
12923
|
-
const _sfc_main$
|
|
13006
|
+
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
12924
13007
|
__name: "BasicEditBatch",
|
|
12925
13008
|
props: {
|
|
12926
13009
|
name: {},
|
|
@@ -13050,7 +13133,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
13050
13133
|
options: vue.unref(getOptions)
|
|
13051
13134
|
}, null, 8, ["value", "options"])
|
|
13052
13135
|
], 2),
|
|
13053
|
-
schemaItemRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
13136
|
+
schemaItemRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$r, {
|
|
13054
13137
|
key: 0,
|
|
13055
13138
|
schema: schemaItemRef.value,
|
|
13056
13139
|
"edit-batch-props": getProps.value,
|
|
@@ -13067,7 +13150,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
13067
13150
|
};
|
|
13068
13151
|
})
|
|
13069
13152
|
]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : vue.createCommentVNode("", true),
|
|
13070
|
-
vue.createVNode(_sfc_main$
|
|
13153
|
+
vue.createVNode(_sfc_main$u, vue.normalizeProps(vue.guardReactiveProps(getEditBatchActionBindProps.value)), vue.createSlots({ _: 2 }, [
|
|
13071
13154
|
vue.renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
|
|
13072
13155
|
return {
|
|
13073
13156
|
name: item,
|
|
@@ -13081,7 +13164,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
13081
13164
|
};
|
|
13082
13165
|
}
|
|
13083
13166
|
});
|
|
13084
|
-
const XBasicEditBatch = utils.withInstall(_sfc_main$
|
|
13167
|
+
const XBasicEditBatch = utils.withInstall(_sfc_main$q);
|
|
13085
13168
|
const basicFontIconProps = {
|
|
13086
13169
|
icon: {
|
|
13087
13170
|
type: String,
|
|
@@ -13132,7 +13215,7 @@ const createBasicFormContext = (props) => {
|
|
|
13132
13215
|
const useBasicFormContext = () => {
|
|
13133
13216
|
return vue.inject(basicFormKey);
|
|
13134
13217
|
};
|
|
13135
|
-
const _sfc_main$
|
|
13218
|
+
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
13136
13219
|
__name: "FormAction",
|
|
13137
13220
|
props: {
|
|
13138
13221
|
showActionButtonGroup: { type: Boolean, default: true },
|
|
@@ -13262,7 +13345,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
13262
13345
|
};
|
|
13263
13346
|
}
|
|
13264
13347
|
});
|
|
13265
|
-
const _sfc_main$
|
|
13348
|
+
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
13266
13349
|
__name: "BasicMasterTrigger",
|
|
13267
13350
|
props: {
|
|
13268
13351
|
value: {},
|
|
@@ -13328,7 +13411,240 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
13328
13411
|
};
|
|
13329
13412
|
}
|
|
13330
13413
|
});
|
|
13331
|
-
const XBasicMasterTrigger = utils.withInstall(_sfc_main$
|
|
13414
|
+
const XBasicMasterTrigger = utils.withInstall(_sfc_main$o);
|
|
13415
|
+
const _hoisted_1$6 = ["disabled"];
|
|
13416
|
+
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
13417
|
+
...{
|
|
13418
|
+
inheritAttrs: false
|
|
13419
|
+
},
|
|
13420
|
+
__name: "BasicMultilingualInput",
|
|
13421
|
+
props: {
|
|
13422
|
+
value: { default: void 0 },
|
|
13423
|
+
modelValue: { default: void 0 },
|
|
13424
|
+
defaultValue: { default: "" },
|
|
13425
|
+
languages: { default: () => [
|
|
13426
|
+
{ value: "en", label: "英语 (EN)", flag: "🇺🇸" },
|
|
13427
|
+
{ value: "fr", label: "法语 (FR)", flag: "🇫🇷" },
|
|
13428
|
+
{ value: "de", label: "德语 (DE)", flag: "🇩🇪" }
|
|
13429
|
+
] },
|
|
13430
|
+
defaultLanguage: { default: "zh-CN" },
|
|
13431
|
+
languageIcon: { default: "ri:global-line" },
|
|
13432
|
+
showLanguageIcon: { type: Boolean, default: true },
|
|
13433
|
+
modalWidth: { default: 600 },
|
|
13434
|
+
onUpdateValue: {},
|
|
13435
|
+
"onUpdate:value": {},
|
|
13436
|
+
"onUpdate:modelValue": {},
|
|
13437
|
+
"onUpdate:languages": {},
|
|
13438
|
+
onInput: {},
|
|
13439
|
+
onChange: {},
|
|
13440
|
+
onLanguageClick: {},
|
|
13441
|
+
onConfirm: {}
|
|
13442
|
+
},
|
|
13443
|
+
emits: ["update:value", "update:modelValue", "update:languages", "input", "change", "language-click", "confirm"],
|
|
13444
|
+
setup(__props, { emit: __emit }) {
|
|
13445
|
+
const props = __props;
|
|
13446
|
+
const emit = __emit;
|
|
13447
|
+
const attrs = vue.useAttrs();
|
|
13448
|
+
const { b, e } = useNamespace("basic-multilingual-input");
|
|
13449
|
+
const { b: bm, e: em } = useNamespace("basic-multilingual-input-modal");
|
|
13450
|
+
const { t: t2 } = useLocale();
|
|
13451
|
+
const uncontrolledValueRef = vue.ref(props.defaultValue);
|
|
13452
|
+
const controlledValueRef = vue.toRef(props, "value");
|
|
13453
|
+
const controlledModelValueRef = vue.toRef(props, "modelValue");
|
|
13454
|
+
const modalVisibleRef = vue.ref(false);
|
|
13455
|
+
const currentLanguagesRef = vue.ref(cloneLanguages(props.languages));
|
|
13456
|
+
const draftLanguagesRef = vue.ref([]);
|
|
13457
|
+
const mergedValueRef = vue.computed(() => {
|
|
13458
|
+
if (controlledValueRef.value !== void 0) return controlledValueRef.value;
|
|
13459
|
+
if (controlledModelValueRef.value !== void 0) return controlledModelValueRef.value;
|
|
13460
|
+
return uncontrolledValueRef.value;
|
|
13461
|
+
});
|
|
13462
|
+
const isLanguageTriggerDisabled = vue.computed(() => Boolean(props.disabled || props.readonly));
|
|
13463
|
+
const modalStyle = vue.computed(() => ({
|
|
13464
|
+
width: typeof props.modalWidth === "number" ? `${props.modalWidth}px` : props.modalWidth
|
|
13465
|
+
}));
|
|
13466
|
+
const computedProps = vue.computed(() => ({
|
|
13467
|
+
...attrs,
|
|
13468
|
+
...lodashEs.omit(props, ["value", "modelValue", "defaultValue", "languages", "defaultLanguage", "languageIcon", "showLanguageIcon", "modalWidth", "onUpdateValue", "onUpdate:value", "onUpdate:modelValue", "onUpdate:languages", "onInput", "onChange", "onLanguageClick", "onConfirm"])
|
|
13469
|
+
}));
|
|
13470
|
+
vue.watch(
|
|
13471
|
+
() => props.languages,
|
|
13472
|
+
(value) => {
|
|
13473
|
+
currentLanguagesRef.value = cloneLanguages(value);
|
|
13474
|
+
},
|
|
13475
|
+
{ deep: true }
|
|
13476
|
+
);
|
|
13477
|
+
vue.watch(
|
|
13478
|
+
() => props.defaultValue,
|
|
13479
|
+
(value) => {
|
|
13480
|
+
if (controlledValueRef.value === void 0 && controlledModelValueRef.value === void 0) {
|
|
13481
|
+
uncontrolledValueRef.value = value;
|
|
13482
|
+
}
|
|
13483
|
+
}
|
|
13484
|
+
);
|
|
13485
|
+
function cloneLanguages(languages = []) {
|
|
13486
|
+
return languages.map((language) => ({ ...language }));
|
|
13487
|
+
}
|
|
13488
|
+
function updateLanguages(languages) {
|
|
13489
|
+
currentLanguagesRef.value = cloneLanguages(languages);
|
|
13490
|
+
emit("update:languages", languages);
|
|
13491
|
+
if (props["onUpdate:languages"]) utils.call(props["onUpdate:languages"], languages);
|
|
13492
|
+
}
|
|
13493
|
+
function updateValue(value) {
|
|
13494
|
+
if (props.disabled) return;
|
|
13495
|
+
uncontrolledValueRef.value = value;
|
|
13496
|
+
emit("update:value", value);
|
|
13497
|
+
emit("update:modelValue", value);
|
|
13498
|
+
const { onUpdateValue, "onUpdate:value": _onUpdateValue, "onUpdate:modelValue": _onUpdateModelValue } = props;
|
|
13499
|
+
if (onUpdateValue) utils.call(onUpdateValue, value);
|
|
13500
|
+
if (_onUpdateValue) utils.call(_onUpdateValue, value);
|
|
13501
|
+
if (_onUpdateModelValue) utils.call(_onUpdateModelValue, value);
|
|
13502
|
+
}
|
|
13503
|
+
function handleInput(value) {
|
|
13504
|
+
emit("input", value);
|
|
13505
|
+
if (props.onInput) utils.call(props.onInput, value);
|
|
13506
|
+
}
|
|
13507
|
+
function handleChange(value) {
|
|
13508
|
+
emit("change", value);
|
|
13509
|
+
if (props.onChange) utils.call(props.onChange, value);
|
|
13510
|
+
}
|
|
13511
|
+
function handleTranslationUpdate(index2, translation) {
|
|
13512
|
+
draftLanguagesRef.value = draftLanguagesRef.value.map((language, currentIndex) => currentIndex === index2 ? { ...language, translation } : language);
|
|
13513
|
+
}
|
|
13514
|
+
function handleLanguageClick(event) {
|
|
13515
|
+
if (isLanguageTriggerDisabled.value) return;
|
|
13516
|
+
draftLanguagesRef.value = cloneLanguages(currentLanguagesRef.value);
|
|
13517
|
+
modalVisibleRef.value = true;
|
|
13518
|
+
emit("language-click", event);
|
|
13519
|
+
if (props.onLanguageClick) utils.call(props.onLanguageClick, event);
|
|
13520
|
+
}
|
|
13521
|
+
function handleModalConfirm() {
|
|
13522
|
+
const languages = cloneLanguages(draftLanguagesRef.value);
|
|
13523
|
+
updateLanguages(languages);
|
|
13524
|
+
emit("confirm", languages);
|
|
13525
|
+
if (props.onConfirm) utils.call(props.onConfirm, languages);
|
|
13526
|
+
modalVisibleRef.value = false;
|
|
13527
|
+
}
|
|
13528
|
+
function handleModalCancel() {
|
|
13529
|
+
modalVisibleRef.value = false;
|
|
13530
|
+
}
|
|
13531
|
+
return (_ctx, _cache) => {
|
|
13532
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
13533
|
+
vue.createElementVNode("div", {
|
|
13534
|
+
class: vue.normalizeClass(vue.unref(b)())
|
|
13535
|
+
}, [
|
|
13536
|
+
vue.createVNode(vue.unref(naiveUi.NInput), vue.mergeProps(computedProps.value, {
|
|
13537
|
+
value: mergedValueRef.value,
|
|
13538
|
+
"onUpdate:value": updateValue,
|
|
13539
|
+
onInput: handleInput,
|
|
13540
|
+
onChange: handleChange
|
|
13541
|
+
}), vue.createSlots({
|
|
13542
|
+
suffix: vue.withCtx(() => [
|
|
13543
|
+
vue.renderSlot(_ctx.$slots, "suffix", {
|
|
13544
|
+
value: mergedValueRef.value,
|
|
13545
|
+
disabled: props.disabled,
|
|
13546
|
+
languageClick: handleLanguageClick
|
|
13547
|
+
}, () => [
|
|
13548
|
+
props.showLanguageIcon ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
13549
|
+
key: 0,
|
|
13550
|
+
type: "button",
|
|
13551
|
+
class: vue.normalizeClass(vue.unref(e)("language-trigger")),
|
|
13552
|
+
disabled: isLanguageTriggerDisabled.value,
|
|
13553
|
+
onClick: vue.withModifiers(handleLanguageClick, ["stop"])
|
|
13554
|
+
}, [
|
|
13555
|
+
vue.createVNode(vue.unref(XBasicSvgIcon), {
|
|
13556
|
+
icon: props.languageIcon,
|
|
13557
|
+
class: vue.normalizeClass(vue.unref(e)("language-icon"))
|
|
13558
|
+
}, null, 8, ["icon", "class"])
|
|
13559
|
+
], 10, _hoisted_1$6)) : vue.createCommentVNode("", true)
|
|
13560
|
+
])
|
|
13561
|
+
]),
|
|
13562
|
+
_: 2
|
|
13563
|
+
}, [
|
|
13564
|
+
_ctx.$slots.prefix ? {
|
|
13565
|
+
name: "prefix",
|
|
13566
|
+
fn: vue.withCtx(() => [
|
|
13567
|
+
vue.renderSlot(_ctx.$slots, "prefix")
|
|
13568
|
+
]),
|
|
13569
|
+
key: "0"
|
|
13570
|
+
} : void 0
|
|
13571
|
+
]), 1040, ["value"])
|
|
13572
|
+
], 2),
|
|
13573
|
+
vue.createVNode(vue.unref(naiveUi.NModal), {
|
|
13574
|
+
title: vue.unref(t2)("max.multilingualInput.modalTitle"),
|
|
13575
|
+
show: modalVisibleRef.value,
|
|
13576
|
+
"onUpdate:show": _cache[0] || (_cache[0] = ($event) => modalVisibleRef.value = $event),
|
|
13577
|
+
preset: "dialog",
|
|
13578
|
+
style: vue.normalizeStyle(modalStyle.value),
|
|
13579
|
+
"show-icon": false,
|
|
13580
|
+
"mask-closable": false,
|
|
13581
|
+
class: vue.normalizeClass(vue.unref(bm)())
|
|
13582
|
+
}, {
|
|
13583
|
+
default: vue.withCtx(() => [
|
|
13584
|
+
vue.createVNode(vue.unref(naiveUi.NForm), {
|
|
13585
|
+
"label-placement": "left",
|
|
13586
|
+
"label-width": "120px",
|
|
13587
|
+
"label-align": "left"
|
|
13588
|
+
}, {
|
|
13589
|
+
default: vue.withCtx(() => [
|
|
13590
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(draftLanguagesRef.value, (language, index2) => {
|
|
13591
|
+
return vue.openBlock(), vue.createBlock(vue.unref(naiveUi.NFormItem), {
|
|
13592
|
+
key: language.value,
|
|
13593
|
+
class: vue.normalizeClass(vue.unref(em)("language-row")),
|
|
13594
|
+
label: language.label,
|
|
13595
|
+
path: language.value
|
|
13596
|
+
}, {
|
|
13597
|
+
label: vue.withCtx(() => [
|
|
13598
|
+
language.flag ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
13599
|
+
key: 0,
|
|
13600
|
+
class: vue.normalizeClass(vue.unref(em)("language-flag"))
|
|
13601
|
+
}, vue.toDisplayString(language.flag), 3)) : vue.createCommentVNode("", true),
|
|
13602
|
+
vue.createElementVNode("span", null, vue.toDisplayString(language.label), 1)
|
|
13603
|
+
]),
|
|
13604
|
+
default: vue.withCtx(() => [
|
|
13605
|
+
vue.createVNode(vue.unref(naiveUi.NInput), {
|
|
13606
|
+
id: `${props.defaultLanguage}-${language.value}`,
|
|
13607
|
+
value: language.translation,
|
|
13608
|
+
placeholder: language.placeholder || "请输入翻译内容",
|
|
13609
|
+
"onUpdate:value": ($event) => handleTranslationUpdate(index2, $event)
|
|
13610
|
+
}, null, 8, ["id", "value", "placeholder", "onUpdate:value"])
|
|
13611
|
+
]),
|
|
13612
|
+
_: 2
|
|
13613
|
+
}, 1032, ["class", "label", "path"]);
|
|
13614
|
+
}), 128))
|
|
13615
|
+
]),
|
|
13616
|
+
_: 1
|
|
13617
|
+
}),
|
|
13618
|
+
vue.createElementVNode("span", {
|
|
13619
|
+
class: vue.normalizeClass(vue.unref(em)("footer"))
|
|
13620
|
+
}, [
|
|
13621
|
+
vue.createVNode(vue.unref(XBasicButton), {
|
|
13622
|
+
class: vue.normalizeClass(vue.unref(em)("footer-btn")),
|
|
13623
|
+
onClick: handleModalCancel
|
|
13624
|
+
}, {
|
|
13625
|
+
default: vue.withCtx(() => [
|
|
13626
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(t2)("max.button.cancel")), 1)
|
|
13627
|
+
]),
|
|
13628
|
+
_: 1
|
|
13629
|
+
}, 8, ["class"]),
|
|
13630
|
+
vue.createVNode(vue.unref(XBasicButton), {
|
|
13631
|
+
type: "primary",
|
|
13632
|
+
onClick: handleModalConfirm
|
|
13633
|
+
}, {
|
|
13634
|
+
default: vue.withCtx(() => [
|
|
13635
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(t2)("max.button.confirm")), 1)
|
|
13636
|
+
]),
|
|
13637
|
+
_: 1
|
|
13638
|
+
})
|
|
13639
|
+
], 2)
|
|
13640
|
+
]),
|
|
13641
|
+
_: 1
|
|
13642
|
+
}, 8, ["title", "show", "style", "class"])
|
|
13643
|
+
], 64);
|
|
13644
|
+
};
|
|
13645
|
+
}
|
|
13646
|
+
});
|
|
13647
|
+
const XBasicMultilingualInput = utils.withInstall(_sfc_main$n);
|
|
13332
13648
|
const basicScrollTextProps = {
|
|
13333
13649
|
/**
|
|
13334
13650
|
* Text content
|
|
@@ -13434,6 +13750,7 @@ componentMap.set("BasicRadioGroup", XBasicRadioGroup);
|
|
|
13434
13750
|
componentMap.set("BasicCascader", XBasicCascader);
|
|
13435
13751
|
componentMap.set("BasicScrollText", XBasicScrollText);
|
|
13436
13752
|
componentMap.set("BasicMasterTrigger", XBasicMasterTrigger);
|
|
13753
|
+
componentMap.set("BasicMultilingualInput", XBasicMultilingualInput);
|
|
13437
13754
|
function basicFormAddComponent(compName, component) {
|
|
13438
13755
|
componentMap.set(compName, component);
|
|
13439
13756
|
}
|
|
@@ -13920,7 +14237,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
13920
14237
|
...itemProps,
|
|
13921
14238
|
style: {
|
|
13922
14239
|
"--n-feedback-height": "16px",
|
|
13923
|
-
"--n-label-padding": "0 12px 0 12px"
|
|
14240
|
+
"--n-label-padding": props.formProps.labelPlacement === "top" ? "0" : "0 12px 0 12px"
|
|
13924
14241
|
}
|
|
13925
14242
|
};
|
|
13926
14243
|
const getContent = () => {
|
|
@@ -14454,8 +14771,9 @@ function getDefaultValue(schema, defaultValueRef, key2) {
|
|
|
14454
14771
|
}
|
|
14455
14772
|
function useFormGrid(propsRef) {
|
|
14456
14773
|
const getRow = vue.computed(() => {
|
|
14457
|
-
const { baseRowStyle = {}, rowProps } = vue.unref(propsRef);
|
|
14774
|
+
const { baseRowStyle = {}, labelPlacement, rowProps } = vue.unref(propsRef);
|
|
14458
14775
|
return {
|
|
14776
|
+
gutter: labelPlacement === "top" ? [16, 0] : 0,
|
|
14459
14777
|
style: baseRowStyle,
|
|
14460
14778
|
...rowProps
|
|
14461
14779
|
};
|
|
@@ -14819,7 +15137,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
14819
15137
|
})
|
|
14820
15138
|
]), 1032, ["is-advanced", "schema", "form-props", "all-default-values", "form-model"]);
|
|
14821
15139
|
}), 128)),
|
|
14822
|
-
vue.createVNode(_sfc_main$
|
|
15140
|
+
vue.createVNode(_sfc_main$p, vue.mergeProps(getFormActionBindProps.value, { onToggleAdvanced: vue.unref(handleToggleAdvanced) }), vue.createSlots({ _: 2 }, [
|
|
14823
15141
|
vue.renderList(["resetBefore", "submitBefore", "advanceBefore", "advanceAfter"], (item) => {
|
|
14824
15142
|
return {
|
|
14825
15143
|
name: item,
|
|
@@ -30902,10 +31220,11 @@ const vxeTableFormatter = {
|
|
|
30902
31220
|
}
|
|
30903
31221
|
};
|
|
30904
31222
|
vxeTable.VxeUI.formats.mixin(vxeTableFormatter);
|
|
31223
|
+
vxeTable.VxeUI.renderer.mixin(basicTableFilterRenderers);
|
|
30905
31224
|
vxeTable.VxeUI.setConfig({
|
|
30906
31225
|
zIndex: 2e3
|
|
30907
31226
|
});
|
|
30908
|
-
const XBasicTable = utils.withInstall(_sfc_main$
|
|
31227
|
+
const XBasicTable = utils.withInstall(_sfc_main$G);
|
|
30909
31228
|
const IMPORT_PREVIEW_ROW_NO_FIELD = "rowNo";
|
|
30910
31229
|
const IMPORT_PREVIEW_ERROR_FIELD = "errorMsg";
|
|
30911
31230
|
function isErrorRow(row) {
|
|
@@ -31607,6 +31926,7 @@ const components = [
|
|
|
31607
31926
|
XBasicGradientTitle,
|
|
31608
31927
|
XBasicDrawer,
|
|
31609
31928
|
XBasicModal,
|
|
31929
|
+
XBasicMultilingualInput,
|
|
31610
31930
|
XBasicPage,
|
|
31611
31931
|
XBasicRadioGroup,
|
|
31612
31932
|
XBasicCheckboxGroup,
|
|
@@ -31704,6 +32024,7 @@ Object.defineProperty(exports, "VxeToolbar", {
|
|
|
31704
32024
|
enumerable: true,
|
|
31705
32025
|
get: () => vxeTable.VxeToolbar
|
|
31706
32026
|
});
|
|
32027
|
+
exports.BASIC_TABLE_FILTER_INPUT_RENDERER = BASIC_TABLE_FILTER_INPUT_RENDERER;
|
|
31707
32028
|
exports.LIST_IGNORE = LIST_IGNORE;
|
|
31708
32029
|
exports.MaxUI = MaxUI;
|
|
31709
32030
|
exports.TreeNode = TreeNode;
|
|
@@ -31748,6 +32069,7 @@ exports.XBasicLoadingService = Loading;
|
|
|
31748
32069
|
exports.XBasicMasterTrigger = XBasicMasterTrigger;
|
|
31749
32070
|
exports.XBasicMessageBox = XBasicMessageBox;
|
|
31750
32071
|
exports.XBasicModal = XBasicModal;
|
|
32072
|
+
exports.XBasicMultilingualInput = XBasicMultilingualInput;
|
|
31751
32073
|
exports.XBasicNotification = XBasicNotification;
|
|
31752
32074
|
exports.XBasicPage = XBasicPage;
|
|
31753
32075
|
exports.XBasicPanel = XBasicPanel;
|
|
@@ -31805,6 +32127,7 @@ exports.basicRowProps = basicRowProps;
|
|
|
31805
32127
|
exports.basicScrollTextProps = basicScrollTextProps;
|
|
31806
32128
|
exports.basicSelectProps = basicSelectProps;
|
|
31807
32129
|
exports.basicSubPanelProps = basicSubPanelProps;
|
|
32130
|
+
exports.basicTableFilterRenderers = basicTableFilterRenderers;
|
|
31808
32131
|
exports.basicUploadDraggerProps = basicUploadDraggerProps;
|
|
31809
32132
|
exports.basicUploadProps = basicUploadProps;
|
|
31810
32133
|
exports.configProviderProps = configProviderProps;
|
|
@@ -31820,6 +32143,7 @@ exports.normalizeExportXlsxColumns = normalizeExportXlsxColumns;
|
|
|
31820
32143
|
exports.notificationTypes = notificationTypes;
|
|
31821
32144
|
exports.provideGlobalConfig = provideGlobalConfig;
|
|
31822
32145
|
exports.responsiveArray = responsiveArray;
|
|
32146
|
+
exports.setTableGlobalFilterRenderers = setTableGlobalFilterRenderers;
|
|
31823
32147
|
exports.setTableGlobalFormats = setTableGlobalFormats;
|
|
31824
32148
|
exports.treeNodeProps = treeNodeProps;
|
|
31825
32149
|
exports.treeNodePropsPass = treeNodePropsPass$1;
|