@maxax/ui 1.1.28 → 1.1.30

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