@maxax/ui 1.1.33 → 1.1.35

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 (30) hide show
  1. package/dist/component.d.ts.map +1 -1
  2. package/dist/components/basic-button-import-max/BasicButtonImportMax.vue.d.ts +483 -415
  3. package/dist/components/basic-button-import-max/BasicButtonImportMax.vue.d.ts.map +1 -1
  4. package/dist/components/basic-button-import-max/BasicButtonImportMaxModal.vue.d.ts +19 -3
  5. package/dist/components/basic-button-import-max/BasicButtonImportMaxModal.vue.d.ts.map +1 -1
  6. package/dist/components/basic-button-import-max/interface.d.ts +2 -0
  7. package/dist/components/basic-button-import-max/interface.d.ts.map +1 -1
  8. package/dist/components/basic-tree/BasicTree.vue.d.ts +30 -0
  9. package/dist/components/basic-tree/BasicTree.vue.d.ts.map +1 -0
  10. package/dist/components/basic-tree/constants.d.ts +8 -0
  11. package/dist/components/basic-tree/constants.d.ts.map +1 -0
  12. package/dist/components/basic-tree/context.d.ts +6 -0
  13. package/dist/components/basic-tree/context.d.ts.map +1 -0
  14. package/dist/components/basic-tree/index.d.ts +7 -0
  15. package/dist/components/basic-tree/index.d.ts.map +1 -0
  16. package/dist/components/basic-tree/interface.d.ts +42 -0
  17. package/dist/components/basic-tree/interface.d.ts.map +1 -0
  18. package/dist/components/index.d.ts +1 -0
  19. package/dist/components/index.d.ts.map +1 -1
  20. package/dist/components/tree/interface.d.ts +2 -1
  21. package/dist/components/tree/interface.d.ts.map +1 -1
  22. package/dist/components/tree-drop/TreeDrop.vue.d.ts +2 -2
  23. package/dist/components/tree-search/TreeSearch.vue.d.ts +1 -1
  24. package/dist/index.cjs +495 -361
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.mjs +497 -363
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/theme-chalk/index.css +1 -1
  29. package/dist/theme-chalk/light.css +1 -1
  30. package/package.json +3 -3
package/dist/index.cjs CHANGED
@@ -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$11 = /* @__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$d = ["xlink:href"];
2857
- const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
2856
+ const _hoisted_1$e = ["xlink:href"];
2857
+ const _sfc_main$10 = /* @__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$d)
2891
+ }, null, 8, _hoisted_1$e)
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$10);
2904
+ const _sfc_main$$ = /* @__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$_ = /* @__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$$, {
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$Z = /* @__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$Y = /* @__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$$, {
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$X = /* @__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$$, {
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$W = /* @__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$$, {
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$11);
3106
+ const XCommonButtonIcon = utils.withInstall(_sfc_main$$);
3107
+ const XCommonFullScreen = utils.withInstall(_sfc_main$_);
3108
+ const XCommonIconTooltip = utils.withInstall(_sfc_main$Z);
3109
+ const XCommonMenuToggler = utils.withInstall(_sfc_main$Y);
3110
+ const XCommonPinToggler = utils.withInstall(_sfc_main$X);
3111
+ const XCommonReloadButton = utils.withInstall(_sfc_main$W);
3112
+ const _sfc_main$V = /* @__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$V);
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$U = 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$c = ["aria-label", "aria-describedby"];
3628
+ const _hoisted_1$d = ["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$c)
3786
+ ], 42, _hoisted_1$d)
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$U, [["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$T = /* @__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$T);
4005
+ const _sfc_main$S = /* @__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$S);
4038
+ const _sfc_main$R = /* @__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$Q = /* @__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$P = /* @__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$O = /* @__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$N = /* @__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$M = /* @__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$P, {
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$b = ["multiple", "name", "accept"];
4267
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
4266
+ const _hoisted_1$c = ["multiple", "name", "accept"];
4267
+ const _sfc_main$L = /* @__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$b)),
4354
+ }, null, 44, _hoisted_1$c)),
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$K = /* @__PURE__ */ vue.defineComponent({
4365
4365
  __name: "BasicButtonPrint",
4366
4366
  emits: ["click"],
4367
4367
  setup(__props, { emit: __emit }) {
@@ -4386,19 +4386,19 @@ 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);
4397
- const _hoisted_1$a = ["id"];
4389
+ const XBasicButtonCreate = utils.withInstall(_sfc_main$R);
4390
+ const XBasicButtonEdit = utils.withInstall(_sfc_main$O);
4391
+ const XBasicButtonDelete = utils.withInstall(_sfc_main$Q);
4392
+ const XBasicButtonExport = utils.withInstall(_sfc_main$N);
4393
+ const XBasicButtonImport = utils.withInstall(_sfc_main$L);
4394
+ const XBasicButtonPrint = utils.withInstall(_sfc_main$K);
4395
+ const XBasicButtonDrop = utils.withInstall(_sfc_main$P);
4396
+ const XBasicButtonExportDrop = utils.withInstall(_sfc_main$M);
4397
+ const _hoisted_1$b = ["id"];
4398
4398
  const _hoisted_2$3 = ["textContent"];
4399
4399
  const _hoisted_3 = { key: 0 };
4400
4400
  const _hoisted_4 = ["innerHTML"];
4401
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
4401
+ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
4402
4402
  __name: "BasicNotification",
4403
4403
  props: {
4404
4404
  customClass: { default: "" },
@@ -4534,7 +4534,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
4534
4534
  }, null, 8, ["class"])) : vue.createCommentVNode("", true)
4535
4535
  ])
4536
4536
  ], 2)
4537
- ], 46, _hoisted_1$a), [
4537
+ ], 46, _hoisted_1$b), [
4538
4538
  [vue.vShow, visible.value]
4539
4539
  ])
4540
4540
  ]),
@@ -4585,7 +4585,7 @@ const notify = (options, context) => {
4585
4585
  appendTo = document.body;
4586
4586
  }
4587
4587
  const container = document.createElement("div");
4588
- const vm = vue.createVNode(_sfc_main$I, props, utils.isFunction(props.message) ? props.message : vue.isVNode(props.message) ? () => props.message : null);
4588
+ const vm = vue.createVNode(_sfc_main$J, props, utils.isFunction(props.message) ? props.message : vue.isVNode(props.message) ? () => props.message : null);
4589
4589
  vm.appContext = utils.isUndefined(context) ? notify._context : context;
4590
4590
  vm.props.onDestroy = () => {
4591
4591
  vue.render(null, container);
@@ -4643,7 +4643,7 @@ notify.closeAll = closeAll;
4643
4643
  notify._context = null;
4644
4644
  const $Notification = notify;
4645
4645
  const XBasicNotification = $Notification;
4646
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
4646
+ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
4647
4647
  __name: "BasicButtonExportMax",
4648
4648
  props: {
4649
4649
  drop: { type: Boolean, default: true },
@@ -4728,7 +4728,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
4728
4728
  }
4729
4729
  return (_ctx, _cache) => {
4730
4730
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
4731
- __props.drop ? (vue.openBlock(), vue.createBlock(_sfc_main$O, vue.mergeProps({
4731
+ __props.drop ? (vue.openBlock(), vue.createBlock(_sfc_main$P, vue.mergeProps({
4732
4732
  key: 0,
4733
4733
  icon: __props.icon,
4734
4734
  options: cOptions.value,
@@ -4780,11 +4780,11 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
4780
4780
  };
4781
4781
  }
4782
4782
  });
4783
- const XBasicButtonExportMax = utils.withInstall(_sfc_main$H);
4783
+ const XBasicButtonExportMax = utils.withInstall(_sfc_main$I);
4784
4784
  function _isSlot$3(s) {
4785
4785
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
4786
4786
  }
4787
- const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
4787
+ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
4788
4788
  name: "ButtonGroupItem",
4789
4789
  props: {
4790
4790
  schema: {
@@ -5137,7 +5137,7 @@ function useButtonGroupSchema({ getProps, schemaRef }) {
5137
5137
  });
5138
5138
  return { getSchema };
5139
5139
  }
5140
- const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
5140
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
5141
5141
  __name: "BasicButtonGroup",
5142
5142
  props: {
5143
5143
  showReturnButton: { type: Boolean },
@@ -5218,7 +5218,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
5218
5218
  return (_ctx, _cache) => {
5219
5219
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: vue.unref(getWrapperClass) }, getBindValue.value), [
5220
5220
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getSchema), (schema) => {
5221
- return vue.openBlock(), vue.createBlock(_sfc_main$G, {
5221
+ return vue.openBlock(), vue.createBlock(_sfc_main$H, {
5222
5222
  key: schema.field,
5223
5223
  schema,
5224
5224
  "button-group-action-type": buttonGroupActionType,
@@ -5239,7 +5239,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
5239
5239
  };
5240
5240
  }
5241
5241
  });
5242
- const XBasicButtonGroup = utils.withInstall(_sfc_main$F);
5242
+ const XBasicButtonGroup = utils.withInstall(_sfc_main$G);
5243
5243
  const ROW_KEY$1 = "_MAX_ROW_KEY";
5244
5244
  const PAGE_SIZE_OPTIONS$1 = [10, 50, 80, 100];
5245
5245
  const PAGE_SIZE$1 = 10;
@@ -6076,8 +6076,8 @@ function useTableForm(propsRef, { fetch: fetch2, getLoading, setPagination, setS
6076
6076
  handleSearchInfoReload
6077
6077
  };
6078
6078
  }
6079
- const _hoisted_1$9 = { class: "max-table-selection-count" };
6080
- const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6079
+ const _hoisted_1$a = { class: "max-table-selection-count" };
6080
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
6081
6081
  __name: "BasicTable",
6082
6082
  props: {
6083
6083
  layouts: {},
@@ -6526,7 +6526,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6526
6526
  class: vue.normalizeClass(vue.unref(e)("selection-count"))
6527
6527
  }, [
6528
6528
  vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("max.basic.selected")), 1),
6529
- vue.createElementVNode("span", _hoisted_1$9, vue.toDisplayString(vue.unref(getSelectRows)().length), 1),
6529
+ vue.createElementVNode("span", _hoisted_1$a, vue.toDisplayString(vue.unref(getSelectRows)().length), 1),
6530
6530
  vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("max.basic.item")), 1)
6531
6531
  ], 2)
6532
6532
  ], 2)) : vue.createCommentVNode("", true),
@@ -6594,14 +6594,15 @@ vxeTable.VxeUI.formats.mixin(vxeTableFormatter);
6594
6594
  vxeTable.VxeUI.setConfig({
6595
6595
  zIndex: 2e3
6596
6596
  });
6597
- const XBasicTable = utils.withInstall(_sfc_main$E);
6598
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
6597
+ const XBasicTable = utils.withInstall(_sfc_main$F);
6598
+ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6599
6599
  __name: "BasicButtonImportMaxModal",
6600
6600
  props: {
6601
6601
  previewWidth: {},
6602
6602
  previewColumns: {},
6603
6603
  previewTableProps: {},
6604
- previewTitle: {}
6604
+ previewTitle: {},
6605
+ showPreviewCount: { type: Boolean, default: true }
6605
6606
  },
6606
6607
  emits: ["confirm", "cancel"],
6607
6608
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -6611,12 +6612,14 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
6611
6612
  const { b: bm, e: em } = useNamespace("basic-button-import-max-modal");
6612
6613
  const { t } = useLocale();
6613
6614
  const tableDataCount = vue.ref(0);
6615
+ const tableData = vue.ref([]);
6614
6616
  const { visible, show, hide } = useBasicDrawerModal({
6615
6617
  async onShow(context) {
6616
- var _a, _b, _c, _d;
6618
+ var _a, _b, _c, _d, _e;
6617
6619
  await vue.nextTick();
6618
- (_b = basicTableRef.value) == null ? void 0 : _b.setTableData(((_a = context.data) == null ? void 0 : _a.list) || []);
6619
- tableDataCount.value = ((_d = (_c = context.data) == null ? void 0 : _c.list) == null ? void 0 : _d.length) || 0;
6620
+ tableData.value = ((_a = context.data) == null ? void 0 : _a.list) || [];
6621
+ (_c = basicTableRef.value) == null ? void 0 : _c.setTableData(((_b = context.data) == null ? void 0 : _b.list) || []);
6622
+ tableDataCount.value = ((_e = (_d = context.data) == null ? void 0 : _d.list) == null ? void 0 : _e.length) || 0;
6620
6623
  }
6621
6624
  });
6622
6625
  const previewModalStyle = vue.computed(() => {
@@ -6667,9 +6670,10 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
6667
6670
  vue.createElementVNode("div", {
6668
6671
  class: vue.normalizeClass(vue.unref(em)("footer-left"))
6669
6672
  }, [
6670
- vue.createElementVNode("span", {
6673
+ props.showPreviewCount ? (vue.openBlock(), vue.createElementBlock("span", {
6674
+ key: 0,
6671
6675
  class: vue.normalizeClass(vue.unref(em)("preview-count"))
6672
- }, vue.toDisplayString(vue.unref(t)("max.import.totalCount")) + ": " + vue.toDisplayString(tableDataCount.value), 3)
6676
+ }, vue.toDisplayString(vue.unref(t)("max.import.totalCount")) + ": " + vue.toDisplayString(tableDataCount.value), 3)) : vue.createCommentVNode("", true)
6673
6677
  ], 2),
6674
6678
  vue.createElementVNode("span", {
6675
6679
  class: vue.normalizeClass(vue.unref(em)("footer-right"))
@@ -6696,6 +6700,10 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
6696
6700
  ], 2)
6697
6701
  ]),
6698
6702
  default: vue.withCtx(() => [
6703
+ vue.renderSlot(_ctx.$slots, "preview-table-before", {
6704
+ count: tableDataCount.value,
6705
+ data: tableData.value
6706
+ }),
6699
6707
  vue.createElementVNode("div", {
6700
6708
  class: vue.normalizeClass(vue.unref(em)("preview-table"))
6701
6709
  }, [
@@ -6703,9 +6711,13 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
6703
6711
  ref_key: "basicTableRef",
6704
6712
  ref: basicTableRef
6705
6713
  }), null, 16)
6706
- ], 2)
6714
+ ], 2),
6715
+ vue.renderSlot(_ctx.$slots, "preview-table-after", {
6716
+ count: tableDataCount.value,
6717
+ data: tableData.value
6718
+ })
6707
6719
  ]),
6708
- _: 1
6720
+ _: 3
6709
6721
  }, 8, ["show", "class", "style"]);
6710
6722
  };
6711
6723
  }
@@ -8363,8 +8375,8 @@ const BasicUpload = /* @__PURE__ */ vue.defineComponent({
8363
8375
  }
8364
8376
  });
8365
8377
  const XBasicUpload = utils.withInstall(BasicUpload);
8366
- const _hoisted_1$8 = { key: 0 };
8367
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
8378
+ const _hoisted_1$9 = { key: 0 };
8379
+ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
8368
8380
  __name: "BasicButtonImportUploadModal",
8369
8381
  props: {
8370
8382
  width: {},
@@ -8430,7 +8442,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
8430
8442
  vue.createElementVNode("div", {
8431
8443
  class: vue.normalizeClass(vue.unref(em)("footer-left"))
8432
8444
  }, [
8433
- props.showCoverSwitch ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$8, [
8445
+ props.showCoverSwitch ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$9, [
8434
8446
  vue.createElementVNode("span", {
8435
8447
  class: vue.normalizeClass([vue.unref(em)("footer-text"), { [vue.unref(em)("footer-text--checked")]: checked.value }])
8436
8448
  }, vue.toDisplayString(vue.unref(t)("max.import.updateExisting")), 3),
@@ -8517,7 +8529,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
8517
8529
  };
8518
8530
  }
8519
8531
  });
8520
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
8532
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
8521
8533
  __name: "BasicButtonImportMax",
8522
8534
  props: {
8523
8535
  showTplButton: { type: Boolean, default: true },
@@ -8533,6 +8545,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
8533
8545
  previewColumns: {},
8534
8546
  previewTableProps: {},
8535
8547
  previewTitle: {},
8548
+ showPreviewCount: { type: Boolean },
8536
8549
  saveApi: {},
8537
8550
  beforeSaveInterceptor: {},
8538
8551
  beforeFetchSave: {},
@@ -8669,7 +8682,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
8669
8682
  _: 3
8670
8683
  }, 16)
8671
8684
  ], 2),
8672
- vue.createVNode(_sfc_main$C, {
8685
+ vue.createVNode(_sfc_main$D, {
8673
8686
  ref_key: "uploadModalRef",
8674
8687
  ref: uploadModalRef,
8675
8688
  width: props.width,
@@ -8678,22 +8691,38 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
8678
8691
  onConfirm: onUploadConfirm,
8679
8692
  onDownloadTemplate: onExport
8680
8693
  }, null, 8, ["width", "show-tpl-button", "show-cover-switch"]),
8681
- vue.createVNode(_sfc_main$D, {
8694
+ vue.createVNode(_sfc_main$E, {
8682
8695
  ref_key: "previewModalRef",
8683
8696
  ref: previewModalRef,
8684
8697
  "preview-width": props.previewWidth,
8685
8698
  "preview-columns": props.previewColumns,
8686
8699
  "preview-table-props": props.previewTableProps,
8687
8700
  "preview-title": props.previewTitle,
8701
+ "show-preview-count": props.showPreviewCount,
8688
8702
  onConfirm: onPreviewConfirm
8689
- }, null, 8, ["preview-width", "preview-columns", "preview-table-props", "preview-title"])
8703
+ }, vue.createSlots({ _: 2 }, [
8704
+ _ctx.$slots["preview-table-before"] ? {
8705
+ name: "preview-table-before",
8706
+ fn: vue.withCtx((slotProps) => [
8707
+ vue.renderSlot(_ctx.$slots, "preview-table-before", vue.normalizeProps(vue.guardReactiveProps(slotProps)))
8708
+ ]),
8709
+ key: "0"
8710
+ } : void 0,
8711
+ _ctx.$slots["preview-table-after"] ? {
8712
+ name: "preview-table-after",
8713
+ fn: vue.withCtx((slotProps) => [
8714
+ vue.renderSlot(_ctx.$slots, "preview-table-after", vue.normalizeProps(vue.guardReactiveProps(slotProps)))
8715
+ ]),
8716
+ key: "1"
8717
+ } : void 0
8718
+ ]), 1032, ["preview-width", "preview-columns", "preview-table-props", "preview-title", "show-preview-count"])
8690
8719
  ]);
8691
8720
  };
8692
8721
  }
8693
8722
  });
8694
- const XBasicButtonImportMax = utils.withInstall(_sfc_main$B);
8695
- const _hoisted_1$7 = ["title"];
8696
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
8723
+ const XBasicButtonImportMax = utils.withInstall(_sfc_main$C);
8724
+ const _hoisted_1$8 = ["title"];
8725
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
8697
8726
  __name: "BasicText",
8698
8727
  props: {
8699
8728
  icon: { default: "" },
@@ -8731,7 +8760,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
8731
8760
  class: vue.normalizeClass(basicTextClass.value),
8732
8761
  title: vue.unref(utils.isString)(vue.unref(mergedValueRef)) ? vue.unref(mergedValueRef) : void 0
8733
8762
  }, [
8734
- __props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$$, {
8763
+ __props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$10, {
8735
8764
  key: 0,
8736
8765
  icon: __props.icon,
8737
8766
  class: vue.normalizeClass(__props.iconClass),
@@ -8740,12 +8769,12 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
8740
8769
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
8741
8770
  vue.createTextVNode(vue.toDisplayString(vue.unref(mergedValueRef)), 1)
8742
8771
  ])
8743
- ], 10, _hoisted_1$7);
8772
+ ], 10, _hoisted_1$8);
8744
8773
  };
8745
8774
  }
8746
8775
  });
8747
- const XBasicText = utils.withInstall(_sfc_main$A);
8748
- const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
8776
+ const XBasicText = utils.withInstall(_sfc_main$B);
8777
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
8749
8778
  __name: "BasicCard",
8750
8779
  props: {
8751
8780
  title: {},
@@ -8784,8 +8813,8 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
8784
8813
  };
8785
8814
  }
8786
8815
  });
8787
- const XBasicCard = utils.withInstall(_sfc_main$z);
8788
- const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
8816
+ const XBasicCard = utils.withInstall(_sfc_main$A);
8817
+ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
8789
8818
  ...{
8790
8819
  inheritAttrs: false
8791
8820
  },
@@ -8897,7 +8926,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
8897
8926
  }
8898
8927
  });
8899
8928
  const basicCascaderProps = {};
8900
- const XBasicCascader = utils.withInstall(_sfc_main$y);
8929
+ const XBasicCascader = utils.withInstall(_sfc_main$z);
8901
8930
  const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
8902
8931
  const createBasicCheckboxGroupContext = (props) => {
8903
8932
  return vue.provide(basicCheckboxGroupKey, props);
@@ -8918,7 +8947,7 @@ const IconCheck = /* @__PURE__ */ vue.defineComponent({
8918
8947
  }, null)]);
8919
8948
  }
8920
8949
  });
8921
- const _sfc_main$x = vue.defineComponent({
8950
+ const _sfc_main$y = vue.defineComponent({
8922
8951
  name: "IconHover",
8923
8952
  props: {
8924
8953
  disabled: {
@@ -8946,7 +8975,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
8946
8975
  vue.renderSlot(_ctx.$slots, "default")
8947
8976
  ], 2);
8948
8977
  }
8949
- const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$1]]);
8978
+ const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$1]]);
8950
8979
  const basicCheckboxProps = {
8951
8980
  /**
8952
8981
  * @zh 绑定值
@@ -9619,7 +9648,7 @@ const BasicCol = /* @__PURE__ */ vue.defineComponent({
9619
9648
  }
9620
9649
  });
9621
9650
  const XBasicCol = utils.withInstall(BasicCol);
9622
- const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
9651
+ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
9623
9652
  __name: "BasicCountTo",
9624
9653
  props: {
9625
9654
  startValue: { default: 0 },
@@ -9680,8 +9709,8 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
9680
9709
  };
9681
9710
  }
9682
9711
  });
9683
- const XBasicCountTo = utils.withInstall(_sfc_main$w);
9684
- const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
9712
+ const XBasicCountTo = utils.withInstall(_sfc_main$x);
9713
+ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
9685
9714
  __name: "BasicDatePicker",
9686
9715
  props: {
9687
9716
  disabled: { type: Boolean, default: false },
@@ -9741,7 +9770,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
9741
9770
  };
9742
9771
  }
9743
9772
  });
9744
- const XBasicDatePicker = utils.withInstall(_sfc_main$v);
9773
+ const XBasicDatePicker = utils.withInstall(_sfc_main$w);
9745
9774
  const basicDragVerifyProps = {
9746
9775
  value: {
9747
9776
  type: Boolean,
@@ -9788,7 +9817,7 @@ const basicDragVerifyProps = {
9788
9817
  default: () => ({})
9789
9818
  }
9790
9819
  };
9791
- const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
9820
+ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
9792
9821
  name: "BasicDragVerify",
9793
9822
  props: basicDragVerifyProps,
9794
9823
  emits: ["success", "update:value", "change", "start", "move", "end"],
@@ -10091,7 +10120,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
10091
10120
  };
10092
10121
  }
10093
10122
  });
10094
- const XBasicDragVerify = utils.withInstall(_sfc_main$u);
10123
+ const XBasicDragVerify = utils.withInstall(_sfc_main$v);
10095
10124
  const basicHelpProps = {
10096
10125
  /**
10097
10126
  * Whether to display the serial number
@@ -10107,7 +10136,7 @@ const basicHelpProps = {
10107
10136
  default: ""
10108
10137
  }
10109
10138
  };
10110
- const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
10139
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
10111
10140
  name: "BasicHelp",
10112
10141
  components: {
10113
10142
  XBasicSvgIcon
@@ -10153,8 +10182,8 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
10153
10182
  });
10154
10183
  }
10155
10184
  });
10156
- const XBasicHelp = utils.withInstall(_sfc_main$t);
10157
- const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
10185
+ const XBasicHelp = utils.withInstall(_sfc_main$u);
10186
+ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
10158
10187
  __name: "BasicTitle",
10159
10188
  props: {
10160
10189
  helpMessage: {},
@@ -10197,12 +10226,12 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
10197
10226
  };
10198
10227
  }
10199
10228
  });
10200
- const XBasicTitle = utils.withInstall(_sfc_main$s);
10201
- const _hoisted_1$6 = {
10229
+ const XBasicTitle = utils.withInstall(_sfc_main$t);
10230
+ const _hoisted_1$7 = {
10202
10231
  key: 0,
10203
10232
  class: "footer-wrapper"
10204
10233
  };
10205
- const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
10234
+ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
10206
10235
  __name: "BasicDrawer",
10207
10236
  props: {
10208
10237
  showCancelBtn: { type: Boolean, default: true },
@@ -10336,7 +10365,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
10336
10365
  !_ctx.$slots.footer ? {
10337
10366
  name: "footer",
10338
10367
  fn: vue.withCtx(() => [
10339
- __props.showFooter ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
10368
+ __props.showFooter ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
10340
10369
  vue.renderSlot(_ctx.$slots, "before-footer"),
10341
10370
  __props.showCancelBtn ? (vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), {
10342
10371
  key: 0,
@@ -10376,7 +10405,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
10376
10405
  };
10377
10406
  }
10378
10407
  });
10379
- const XBasicDrawer = utils.withInstall(_sfc_main$r);
10408
+ const XBasicDrawer = utils.withInstall(_sfc_main$s);
10380
10409
  const basicEditBatchKey = Symbol("basic-edit-batch");
10381
10410
  const createBasicEditBatchContext = (props) => {
10382
10411
  return vue.provide(basicEditBatchKey, props);
@@ -10384,8 +10413,8 @@ const createBasicEditBatchContext = (props) => {
10384
10413
  const useBasicEditBatchContext = () => {
10385
10414
  return vue.inject(basicEditBatchKey);
10386
10415
  };
10387
- const _hoisted_1$5 = ["disabled"];
10388
- const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
10416
+ const _hoisted_1$6 = ["disabled"];
10417
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
10389
10418
  __name: "EditBatchAction",
10390
10419
  props: {
10391
10420
  disabled: { type: Boolean, default: false },
@@ -10441,11 +10470,11 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
10441
10470
  _: 1
10442
10471
  }, 16, ["class", "onClick"])) : vue.createCommentVNode("", true),
10443
10472
  vue.renderSlot(_ctx.$slots, "submitAfter")
10444
- ], 10, _hoisted_1$5);
10473
+ ], 10, _hoisted_1$6);
10445
10474
  };
10446
10475
  }
10447
10476
  });
10448
- const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
10477
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
10449
10478
  __name: "BasicHidden",
10450
10479
  props: {
10451
10480
  value: {},
@@ -10472,7 +10501,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
10472
10501
  };
10473
10502
  }
10474
10503
  });
10475
- const XBasicHidden = utils.withInstall(_sfc_main$p);
10504
+ const XBasicHidden = utils.withInstall(_sfc_main$q);
10476
10505
  const basicRadioGroupKey = Symbol("basic-radio-group");
10477
10506
  const createBasicRadioGroupContext = (props) => {
10478
10507
  return vue.provide(basicRadioGroupKey, props);
@@ -10864,7 +10893,7 @@ const BasicRadioGroup = /* @__PURE__ */ vue.defineComponent({
10864
10893
  }
10865
10894
  });
10866
10895
  const XBasicRadioGroup = utils.withInstall(BasicRadioGroup);
10867
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
10896
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
10868
10897
  ...{
10869
10898
  inheritAttrs: false
10870
10899
  },
@@ -10990,7 +11019,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
10990
11019
  }
10991
11020
  });
10992
11021
  const basicSelectProps = {};
10993
- const XBasicSelect = utils.withInstall(_sfc_main$o);
11022
+ const XBasicSelect = utils.withInstall(_sfc_main$p);
10994
11023
  const componentMap$1 = /* @__PURE__ */ new Map();
10995
11024
  componentMap$1.set("Input", naiveUi.NInput);
10996
11025
  componentMap$1.set("InputNumber", naiveUi.NInputNumber);
@@ -11069,7 +11098,7 @@ function isComponentEditBatchSchema(schema) {
11069
11098
  function _isSlot$1(s) {
11070
11099
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
11071
11100
  }
11072
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
11101
+ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
11073
11102
  name: "BasicEditBatchItem",
11074
11103
  components: {
11075
11104
  XBasicHelp
@@ -11807,7 +11836,7 @@ function useEditBatchValues({ getProps, defaultValueRef, getSchema, formModel })
11807
11836
  }
11808
11837
  return { handleFormValues, initDefault };
11809
11838
  }
11810
- const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
11839
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
11811
11840
  __name: "BasicEditBatch",
11812
11841
  props: {
11813
11842
  name: {},
@@ -11937,7 +11966,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
11937
11966
  options: vue.unref(getOptions)
11938
11967
  }, null, 8, ["value", "options"])
11939
11968
  ], 2),
11940
- schemaItemRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$n, {
11969
+ schemaItemRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
11941
11970
  key: 0,
11942
11971
  schema: schemaItemRef.value,
11943
11972
  "edit-batch-props": getProps.value,
@@ -11954,7 +11983,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
11954
11983
  };
11955
11984
  })
11956
11985
  ]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : vue.createCommentVNode("", true),
11957
- vue.createVNode(_sfc_main$q, vue.normalizeProps(vue.guardReactiveProps(getEditBatchActionBindProps.value)), vue.createSlots({ _: 2 }, [
11986
+ vue.createVNode(_sfc_main$r, vue.normalizeProps(vue.guardReactiveProps(getEditBatchActionBindProps.value)), vue.createSlots({ _: 2 }, [
11958
11987
  vue.renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
11959
11988
  return {
11960
11989
  name: item,
@@ -11968,7 +11997,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
11968
11997
  };
11969
11998
  }
11970
11999
  });
11971
- const XBasicEditBatch = utils.withInstall(_sfc_main$m);
12000
+ const XBasicEditBatch = utils.withInstall(_sfc_main$n);
11972
12001
  const basicFontIconProps = {
11973
12002
  icon: {
11974
12003
  type: String,
@@ -12019,7 +12048,7 @@ const createBasicFormContext = (props) => {
12019
12048
  const useBasicFormContext = () => {
12020
12049
  return vue.inject(basicFormKey);
12021
12050
  };
12022
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
12051
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
12023
12052
  __name: "FormAction",
12024
12053
  props: {
12025
12054
  showActionButtonGroup: { type: Boolean, default: true },
@@ -12149,7 +12178,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
12149
12178
  };
12150
12179
  }
12151
12180
  });
12152
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
12181
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
12153
12182
  __name: "BasicMasterTrigger",
12154
12183
  props: {
12155
12184
  value: {},
@@ -12215,7 +12244,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
12215
12244
  };
12216
12245
  }
12217
12246
  });
12218
- const XBasicMasterTrigger = utils.withInstall(_sfc_main$k);
12247
+ const XBasicMasterTrigger = utils.withInstall(_sfc_main$l);
12219
12248
  const basicScrollTextProps = {
12220
12249
  /**
12221
12250
  * Text content
@@ -12226,7 +12255,7 @@ const basicScrollTextProps = {
12226
12255
  default: ""
12227
12256
  }
12228
12257
  };
12229
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
12258
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
12230
12259
  name: "BasicScrollText",
12231
12260
  props: basicScrollTextProps,
12232
12261
  setup(props, {
@@ -12288,7 +12317,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
12288
12317
  }, [content()]) : null])]);
12289
12318
  }
12290
12319
  });
12291
- const XBasicScrollText = utils.withInstall(_sfc_main$j);
12320
+ const XBasicScrollText = utils.withInstall(_sfc_main$k);
12292
12321
  const componentMap = /* @__PURE__ */ new Map();
12293
12322
  componentMap.set("Input", naiveUi.NInput);
12294
12323
  componentMap.set("InputNumber", naiveUi.NInputNumber);
@@ -12382,7 +12411,7 @@ function isComponentFormSchema(schema) {
12382
12411
  function _isSlot(s) {
12383
12412
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
12384
12413
  }
12385
- const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
12414
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
12386
12415
  name: "BasicFormItem",
12387
12416
  components: {
12388
12417
  XBasicHelp,
@@ -13495,7 +13524,7 @@ function useFormValues({ getProps, defaultValueRef, getSchema, formModel }) {
13495
13524
  }
13496
13525
  return { handleFormValues, initDefault };
13497
13526
  }
13498
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
13527
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
13499
13528
  __name: "BasicForm",
13500
13529
  props: {
13501
13530
  card: { type: Boolean, default: false },
@@ -13686,7 +13715,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
13686
13715
  default: vue.withCtx(() => [
13687
13716
  vue.renderSlot(_ctx.$slots, "formHeader"),
13688
13717
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getSchema), (schema) => {
13689
- return vue.openBlock(), vue.createBlock(_sfc_main$i, {
13718
+ return vue.openBlock(), vue.createBlock(_sfc_main$j, {
13690
13719
  key: schema.field,
13691
13720
  "is-advanced": vue.unref(fieldsIsAdvancedMap)[schema.field],
13692
13721
  "form-action-type": formActionType,
@@ -13706,7 +13735,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
13706
13735
  })
13707
13736
  ]), 1032, ["is-advanced", "schema", "form-props", "all-default-values", "form-model"]);
13708
13737
  }), 128)),
13709
- vue.createVNode(_sfc_main$l, vue.mergeProps(getFormActionBindProps.value, { onToggleAdvanced: vue.unref(handleToggleAdvanced) }), vue.createSlots({ _: 2 }, [
13738
+ vue.createVNode(_sfc_main$m, vue.mergeProps(getFormActionBindProps.value, { onToggleAdvanced: vue.unref(handleToggleAdvanced) }), vue.createSlots({ _: 2 }, [
13710
13739
  vue.renderList(["resetBefore", "submitBefore", "advanceBefore", "advanceAfter"], (item) => {
13711
13740
  return {
13712
13741
  name: item,
@@ -13727,8 +13756,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
13727
13756
  };
13728
13757
  }
13729
13758
  });
13730
- const XBasicForm = utils.withInstall(_sfc_main$h);
13731
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
13759
+ const XBasicForm = utils.withInstall(_sfc_main$i);
13760
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
13732
13761
  __name: "BasicGradientTitle",
13733
13762
  props: {
13734
13763
  text: {}
@@ -13761,7 +13790,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
13761
13790
  }
13762
13791
  });
13763
13792
  const basicGradientTitleProps = {};
13764
- const XBasicGradientTitle = utils.withInstall(_sfc_main$g);
13793
+ const XBasicGradientTitle = utils.withInstall(_sfc_main$h);
13765
13794
  const basicIconOnlineProps = {
13766
13795
  icon: {
13767
13796
  type: String,
@@ -17658,9 +17687,9 @@ const IconJson = {
17658
17687
  "yin-yang"
17659
17688
  ]
17660
17689
  };
17661
- const _hoisted_1$4 = { class: "panel-icon-list" };
17690
+ const _hoisted_1$5 = { class: "panel-icon-list" };
17662
17691
  const _hoisted_2$2 = ["title", "onClick"];
17663
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
17692
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
17664
17693
  __name: "BasicIconPicker",
17665
17694
  props: {
17666
17695
  disabled: { type: Boolean },
@@ -17823,7 +17852,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
17823
17852
  class: vue.normalizeClass(vue.unref(e)("scrollbar"))
17824
17853
  }, {
17825
17854
  default: vue.withCtx(() => [
17826
- vue.createElementVNode("ul", _hoisted_1$4, [
17855
+ vue.createElementVNode("ul", _hoisted_1$5, [
17827
17856
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pageList.value, (item, key2) => {
17828
17857
  return vue.openBlock(), vue.createElementBlock("li", {
17829
17858
  key: key2,
@@ -17890,7 +17919,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
17890
17919
  };
17891
17920
  }
17892
17921
  });
17893
- const XBasicIconPicker = utils.withInstall(_sfc_main$f);
17922
+ const XBasicIconPicker = utils.withInstall(_sfc_main$g);
17894
17923
  function useClipboard() {
17895
17924
  const copied = vue.ref(false);
17896
17925
  const copy = async (source) => {
@@ -19335,7 +19364,7 @@ function usePagination(propsRef) {
19335
19364
  }
19336
19365
  return { getPagination, getPaginationInfo, setShowPagination, getShowPagination, setPagination };
19337
19366
  }
19338
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19367
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19339
19368
  __name: "BasicListPage",
19340
19369
  props: {
19341
19370
  listClassName: {},
@@ -19504,7 +19533,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19504
19533
  };
19505
19534
  }
19506
19535
  });
19507
- const XBasicListPage = utils.withInstall(_sfc_main$e);
19536
+ const XBasicListPage = utils.withInstall(_sfc_main$f);
19508
19537
  function createLoadingComponent(options) {
19509
19538
  let afterLeaveTimer;
19510
19539
  const afterLeaveFlag = vue.ref(false);
@@ -19773,7 +19802,7 @@ const XBasicLoading = {
19773
19802
  directive: vLoading,
19774
19803
  service: Loading
19775
19804
  };
19776
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19805
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19777
19806
  __name: "BasicModal",
19778
19807
  props: {
19779
19808
  title: {},
@@ -19956,8 +19985,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19956
19985
  }
19957
19986
  });
19958
19987
  const basicModalProps = {};
19959
- const XBasicModal = utils.withInstall(_sfc_main$d);
19960
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
19988
+ const XBasicModal = utils.withInstall(_sfc_main$e);
19989
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19961
19990
  __name: "BasicPage",
19962
19991
  props: {
19963
19992
  title: {},
@@ -20057,8 +20086,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
20057
20086
  };
20058
20087
  }
20059
20088
  });
20060
- const XBasicPage = utils.withInstall(_sfc_main$c);
20061
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
20089
+ const XBasicPage = utils.withInstall(_sfc_main$d);
20090
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
20062
20091
  __name: "BasicPanel",
20063
20092
  props: {
20064
20093
  title: {},
@@ -20095,7 +20124,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
20095
20124
  };
20096
20125
  }
20097
20126
  });
20098
- const XBasicPanel = utils.withInstall(_sfc_main$b);
20127
+ const XBasicPanel = utils.withInstall(_sfc_main$c);
20099
20128
  const regionJson = {
20100
20129
  "110000": "北京市",
20101
20130
  "110100": "市辖区",
@@ -24102,7 +24131,7 @@ const BasicRow = /* @__PURE__ */ vue.defineComponent({
24102
24131
  }
24103
24132
  });
24104
24133
  const XBasicRow = utils.withInstall(BasicRow);
24105
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
24134
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
24106
24135
  __name: "BasicSubPanel",
24107
24136
  props: {
24108
24137
  title: {}
@@ -24138,8 +24167,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
24138
24167
  }
24139
24168
  });
24140
24169
  const basicSubPanelProps = {};
24141
- const XBasicSubPanel = utils.withInstall(_sfc_main$a);
24142
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
24170
+ const XBasicSubPanel = utils.withInstall(_sfc_main$b);
24171
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
24143
24172
  __name: "BasicTag",
24144
24173
  props: {
24145
24174
  tagType: { type: [Number, Boolean] },
@@ -24164,209 +24193,13 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
24164
24193
  };
24165
24194
  }
24166
24195
  });
24167
- const XBasicTag = utils.withInstall(_sfc_main$9);
24168
- const basicUploadDraggerProps = {
24169
- capture: [Boolean, String],
24170
- type: String,
24171
- name: String,
24172
- defaultFileList: Array,
24173
- fileList: Array,
24174
- action: [String, Function],
24175
- directory: Boolean,
24176
- data: [Object, Function],
24177
- method: String,
24178
- headers: Object,
24179
- showUploadList: [Boolean, Object],
24180
- multiple: Boolean,
24181
- accept: String,
24182
- beforeUpload: Function,
24183
- onChange: Function,
24184
- "onUpdate:fileList": Function,
24185
- onDrop: Function,
24186
- listType: String,
24187
- onPreview: Function,
24188
- onDownload: Function,
24189
- onReject: Function,
24190
- onRemove: Function,
24191
- /** @deprecated Please use `onRemove` directly */
24192
- remove: Function,
24193
- supportServerRender: Boolean,
24194
- disabled: Boolean,
24195
- prefixCls: String,
24196
- customRequest: Function,
24197
- withCredentials: Boolean,
24198
- openFileDialogOnClick: {
24199
- type: Boolean,
24200
- default: true
24201
- },
24202
- id: String,
24203
- previewFile: Function,
24204
- transformFile: Function,
24205
- iconRender: Function,
24206
- isImageUrl: Function,
24207
- progress: Object,
24208
- itemRender: Function,
24209
- maxCount: Number,
24210
- height: [Number, String],
24211
- removeIcon: Function,
24212
- downloadIcon: Function,
24213
- previewIcon: Function
24214
- };
24215
- const BasicUploadDragger = /* @__PURE__ */ vue.defineComponent({
24216
- compatConfig: {
24217
- MODE: 3
24218
- },
24219
- name: "XBasicUploadDragger",
24220
- inheritAttrs: false,
24221
- props: basicUploadDraggerProps,
24222
- setup(props, {
24223
- slots,
24224
- attrs
24225
- }) {
24226
- return () => {
24227
- const {
24228
- height,
24229
- ...restProps
24230
- } = props;
24231
- const {
24232
- style,
24233
- ...restAttrs
24234
- } = attrs;
24235
- const draggerProps = {
24236
- ...restProps,
24237
- ...restAttrs,
24238
- type: "drag",
24239
- style: {
24240
- ...style,
24241
- height: typeof height === "number" ? `${height}px` : height
24242
- }
24243
- };
24244
- return vue.createVNode(XBasicUpload, draggerProps, slots);
24245
- };
24246
- }
24196
+ const XBasicTag = utils.withInstall(_sfc_main$a);
24197
+ const _sfc_main$9 = vue.defineComponent({
24198
+ name: "CLoadingIcon"
24247
24199
  });
24248
- const XBasicUploadDragger = utils.withInstall(BasicUploadDragger);
24249
- const _hoisted_1$3 = ["title"];
24250
- const _hoisted_2$1 = ["title"];
24251
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
24252
- __name: "BasicViewBar",
24253
- props: {
24254
- fixed: { type: Boolean },
24255
- maxWidth: {}
24256
- },
24257
- setup(__props) {
24258
- const props = __props;
24259
- const { b, e, is } = useNamespace("basic-view-bar");
24260
- const { t } = useLocale();
24261
- const navWrap = vue.ref();
24262
- const navScroll = vue.ref();
24263
- const scrollable = vue.ref(false);
24264
- const getClasses = vue.computed(() => {
24265
- return {
24266
- [b()]: true,
24267
- [is("fix")]: props.fixed
24268
- };
24269
- });
24270
- const getChangeStyle = vue.computed(() => {
24271
- return {
24272
- left: 0,
24273
- width: "100%",
24274
- maxWidth: props.maxWidth || "100%"
24275
- };
24276
- });
24277
- function scrollTo(value, amplitude) {
24278
- if (!navScroll.value) return;
24279
- const currentScroll = navScroll.value.scrollLeft;
24280
- const scrollWidth = amplitude > 0 && currentScroll + amplitude >= value || amplitude < 0 && currentScroll + amplitude <= value ? value : currentScroll + amplitude;
24281
- navScroll.value.scrollTo(scrollWidth, 0);
24282
- if (scrollWidth === value) return;
24283
- return window.requestAnimationFrame(() => scrollTo(value, amplitude));
24284
- }
24285
- function scrollPrev() {
24286
- if (!navScroll.value) return;
24287
- const containerWidth = navScroll.value.offsetWidth;
24288
- const currentScroll = navScroll.value.scrollLeft;
24289
- if (!currentScroll) return;
24290
- const scrollLeft = currentScroll > containerWidth ? currentScroll - containerWidth : 0;
24291
- scrollTo(scrollLeft, (scrollLeft - currentScroll) / 20);
24292
- }
24293
- function scrollNext() {
24294
- if (!navScroll.value) return;
24295
- const containerWidth = navScroll.value.offsetWidth;
24296
- const navWidth = navScroll.value.scrollWidth;
24297
- const currentScroll = navScroll.value.scrollLeft;
24298
- if (navWidth - currentScroll <= containerWidth) return;
24299
- const scrollLeft = navWidth - currentScroll > containerWidth * 2 ? currentScroll + containerWidth : navWidth - containerWidth;
24300
- scrollTo(scrollLeft, (scrollLeft - currentScroll) / 20);
24301
- }
24302
- async function updateNavScroll(autoScroll) {
24303
- await vue.nextTick();
24304
- if (!navScroll.value) return;
24305
- const containerWidth = navScroll.value.offsetWidth;
24306
- const navWidth = navScroll.value.scrollWidth;
24307
- if (containerWidth < navWidth) {
24308
- scrollable.value = true;
24309
- } else {
24310
- scrollable.value = false;
24311
- }
24312
- }
24313
- function handleResize() {
24314
- updateNavScroll();
24315
- }
24316
- function onElementResize() {
24317
- const observer = elementResizeDetectorMaker();
24318
- navWrap.value && observer.listenTo(navWrap.value, handleResize);
24319
- }
24320
- vue.onMounted(() => {
24321
- onElementResize();
24322
- });
24323
- return (_ctx, _cache) => {
24324
- return vue.openBlock(), vue.createElementBlock("div", {
24325
- class: vue.normalizeClass(getClasses.value),
24326
- style: vue.normalizeStyle(getChangeStyle.value)
24327
- }, [
24328
- vue.createElementVNode("div", {
24329
- class: vue.normalizeClass(vue.unref(e)("main"))
24330
- }, [
24331
- vue.createElementVNode("div", {
24332
- ref_key: "navWrap",
24333
- ref: navWrap,
24334
- class: vue.normalizeClass({ [vue.unref(is)("scrollable")]: scrollable.value, [vue.unref(e)("wrap")]: true })
24335
- }, [
24336
- vue.createElementVNode("div", {
24337
- class: vue.normalizeClass({ [vue.unref(is)("hide")]: !scrollable.value, [vue.unref(e)("prev")]: true }),
24338
- title: vue.unref(t)("max.viewBar.prev"),
24339
- onClick: scrollPrev
24340
- }, [
24341
- vue.createVNode(vue.unref(XBasicSvgIcon), { icon: "ri:arrow-left-s-line" })
24342
- ], 10, _hoisted_1$3),
24343
- vue.createElementVNode("div", {
24344
- class: vue.normalizeClass({ [vue.unref(is)("hide")]: !scrollable.value, [vue.unref(e)("next")]: true }),
24345
- title: vue.unref(t)("max.viewBar.next"),
24346
- onClick: scrollNext
24347
- }, [
24348
- vue.createVNode(vue.unref(XBasicSvgIcon), { icon: "ri:arrow-right-s-line" })
24349
- ], 10, _hoisted_2$1),
24350
- vue.createElementVNode("div", {
24351
- ref_key: "navScroll",
24352
- ref: navScroll,
24353
- class: vue.normalizeClass(vue.unref(e)("scroll"))
24354
- }, [
24355
- vue.renderSlot(_ctx.$slots, "default")
24356
- ], 2)
24357
- ], 2)
24358
- ], 2)
24359
- ], 6);
24360
- };
24361
- }
24362
- });
24363
- const XBasicViewBar = utils.withInstall(_sfc_main$8);
24364
- const _sfc_main$7 = vue.defineComponent({
24365
- name: "CLoadingIcon"
24366
- });
24367
- const _hoisted_1$2 = { viewBox: "0 0 50 50" };
24200
+ const _hoisted_1$4 = { viewBox: "0 0 50 50" };
24368
24201
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
24369
- return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$2, [..._cache[0] || (_cache[0] = [
24202
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$4, [..._cache[0] || (_cache[0] = [
24370
24203
  vue.createElementVNode("circle", {
24371
24204
  class: "imax-loading-icon__circle",
24372
24205
  cx: "25",
@@ -24378,7 +24211,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
24378
24211
  }, null, -1)
24379
24212
  ])]);
24380
24213
  }
24381
- const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]);
24214
+ const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render]]);
24382
24215
  var ignoreEnum = /* @__PURE__ */ ((ignoreEnum2) => {
24383
24216
  ignoreEnum2["none"] = "none";
24384
24217
  ignoreEnum2["parents"] = "parents";
@@ -24577,9 +24410,9 @@ const useTreeNodeCls = (props, dragoverRefs) => {
24577
24410
  titleCls
24578
24411
  };
24579
24412
  };
24580
- const _hoisted_1$1 = ["d", "stroke-width", "stroke", "stroke-dasharray"];
24581
- const _hoisted_2 = ["draggable"];
24582
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
24413
+ const _hoisted_1$3 = ["d", "stroke-width", "stroke", "stroke-dasharray"];
24414
+ const _hoisted_2$1 = ["draggable"];
24415
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
24583
24416
  ...{
24584
24417
  name: "VTreeNode"
24585
24418
  },
@@ -24793,7 +24626,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
24793
24626
  "stroke-width": strokeWidth.value,
24794
24627
  stroke: showLineParams.value.color,
24795
24628
  "stroke-dasharray": strokeDasharray.value
24796
- }, null, 8, _hoisted_1$1)
24629
+ }, null, 8, _hoisted_1$3)
24797
24630
  ], 4);
24798
24631
  }), 128)) : vue.createCommentVNode("", true),
24799
24632
  vue.createElementVNode("div", {
@@ -24858,7 +24691,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
24858
24691
  vue.createTextVNode(vue.toDisplayString(__props.data ? __props.data[__props.titleField] : ""), 1)
24859
24692
  ], 64))
24860
24693
  ])
24861
- ], 16, _hoisted_2),
24694
+ ], 16, _hoisted_2$1),
24862
24695
  __props.showRightArrow ? (vue.openBlock(), vue.createElementBlock("div", {
24863
24696
  key: 2,
24864
24697
  class: vue.normalizeClass(vue.unref(expandCls))
@@ -24893,7 +24726,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
24893
24726
  };
24894
24727
  }
24895
24728
  });
24896
- const XTreeNode = utils.withInstall(_sfc_main$6);
24729
+ const XTreeNode = utils.withInstall(_sfc_main$8);
24897
24730
  const useExpandAnimation = (renderNodesRef, renderStartRef, props) => {
24898
24731
  const expandAnimationStart = vue.ref(false);
24899
24732
  const expandAnimationReady = vue.ref(false);
@@ -26343,7 +26176,7 @@ const pickReadonly = (obj, ...keys) => {
26343
26176
  });
26344
26177
  return picked;
26345
26178
  };
26346
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
26179
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
26347
26180
  ...{
26348
26181
  name: "VTree",
26349
26182
  inheritAttrs: false
@@ -26832,7 +26665,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
26832
26665
  };
26833
26666
  }
26834
26667
  });
26835
- const XTree = utils.withInstall(_sfc_main$5);
26668
+ const XTree = utils.withInstall(_sfc_main$7);
26836
26669
  const useTreeSearchCls = (props, options) => {
26837
26670
  const { checkAllStatus, isShowingChecked } = options;
26838
26671
  const { b } = useNamespace("tree-search");
@@ -26917,8 +26750,8 @@ const DEFAULT_TREE_SEARCH_PROPS = {
26917
26750
  searchDebounceTime: 300
26918
26751
  };
26919
26752
  const TREE_SEARCH_EVENTS = ["search", ...TREE_EVENTS];
26920
- const _hoisted_1 = ["placeholder", "disabled"];
26921
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
26753
+ const _hoisted_1$2 = ["placeholder", "disabled"];
26754
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
26922
26755
  ...{
26923
26756
  name: "VTreeSearch",
26924
26757
  inheritAttrs: false
@@ -27175,7 +27008,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
27175
27008
  placeholder: placeholder.value,
27176
27009
  disabled: __props.searchDisabled,
27177
27010
  onInput: handleSearch
27178
- }, null, 42, _hoisted_1), [
27011
+ }, null, 42, _hoisted_1$2), [
27179
27012
  [vue.vModelText, keyword.value]
27180
27013
  ])
27181
27014
  ])
@@ -27228,7 +27061,306 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
27228
27061
  };
27229
27062
  }
27230
27063
  });
27231
- const XTreeSearch = utils.withInstall(_sfc_main$4);
27064
+ const XTreeSearch = utils.withInstall(_sfc_main$6);
27065
+ const DEFAULT_TRANSFORM_CONFIG = {
27066
+ id: "id",
27067
+ pid: "parentId",
27068
+ children: "children",
27069
+ labelField: "deptName",
27070
+ valueField: "id"
27071
+ };
27072
+ const _hoisted_1$1 = { key: 0 };
27073
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
27074
+ __name: "BasicTree",
27075
+ props: {
27076
+ value: {},
27077
+ immediate: { type: Boolean },
27078
+ api: { type: Function },
27079
+ beforeFetch: { type: Function },
27080
+ afterFetch: { type: Function },
27081
+ transform: {},
27082
+ listField: {},
27083
+ treeConfig: {}
27084
+ },
27085
+ emits: ["update:value", "load", "select"],
27086
+ setup(__props, { expose: __expose, emit: __emit }) {
27087
+ const props = __props;
27088
+ const emit = __emit;
27089
+ const { b, e } = useNamespace("basic-tree");
27090
+ const innerValue = vue.ref(props.value);
27091
+ vue.watch(
27092
+ () => props.value,
27093
+ (val) => {
27094
+ innerValue.value = val;
27095
+ },
27096
+ { immediate: true }
27097
+ );
27098
+ const treeConfig = vue.computed(() => ({
27099
+ immediate: true,
27100
+ showLine: true,
27101
+ defaultExpandAll: true,
27102
+ keyField: "value",
27103
+ titleField: "label",
27104
+ selectable: true,
27105
+ ...props.treeConfig || {}
27106
+ }));
27107
+ const treeArray = vue.ref([]);
27108
+ const loading = vue.ref(true);
27109
+ async function fetch2() {
27110
+ const { api, beforeFetch, afterFetch, transform, listField = "resultList" } = props;
27111
+ console.log(props);
27112
+ if (!api) return;
27113
+ loading.value = true;
27114
+ const params = beforeFetch ? await beforeFetch() : {};
27115
+ const res = await api(params);
27116
+ const isArrayResult = Array.isArray(res.data);
27117
+ let resultItems = isArrayResult ? res.data : lodashEs.get(res.data, listField);
27118
+ resultItems = afterFetch ? await afterFetch(resultItems) : resultItems;
27119
+ const tree = utils.listToTree(resultItems, { ...DEFAULT_TRANSFORM_CONFIG, ...transform || {} });
27120
+ treeArray.value = tree;
27121
+ loading.value = false;
27122
+ emit("load", tree);
27123
+ }
27124
+ function getTreeData() {
27125
+ return treeArray.value;
27126
+ }
27127
+ function handleSelect(_selectedNode, selectedKey) {
27128
+ console.log(_selectedNode, selectedKey, innerValue.value);
27129
+ innerValue.value = selectedKey;
27130
+ emit("update:value", selectedKey);
27131
+ }
27132
+ vue.onMounted(() => {
27133
+ useTimeoutFn(() => {
27134
+ vue.unref(props).immediate && fetch2();
27135
+ }, 16);
27136
+ });
27137
+ const treeAction = {
27138
+ getTreeData,
27139
+ load: fetch2
27140
+ };
27141
+ __expose({
27142
+ ...treeAction
27143
+ });
27144
+ return (_ctx, _cache) => {
27145
+ return vue.openBlock(), vue.createElementBlock("div", {
27146
+ class: vue.normalizeClass(vue.unref(b)())
27147
+ }, [
27148
+ loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
27149
+ vue.createVNode(vue.unref(naiveUi.NSkeleton), {
27150
+ text: "",
27151
+ repeat: 8
27152
+ })
27153
+ ])) : (vue.openBlock(), vue.createElementBlock("div", {
27154
+ key: 1,
27155
+ class: vue.normalizeClass(vue.unref(e)("wrapper"))
27156
+ }, [
27157
+ treeArray.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(XTreeSearch), vue.mergeProps({
27158
+ key: 0,
27159
+ modelValue: innerValue.value,
27160
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event)
27161
+ }, treeConfig.value, { onSelectedChange: handleSelect }), null, 16, ["modelValue"])) : vue.createCommentVNode("", true)
27162
+ ], 2))
27163
+ ], 2);
27164
+ };
27165
+ }
27166
+ });
27167
+ const XBasicTree = utils.withInstall(_sfc_main$5);
27168
+ const basicUploadDraggerProps = {
27169
+ capture: [Boolean, String],
27170
+ type: String,
27171
+ name: String,
27172
+ defaultFileList: Array,
27173
+ fileList: Array,
27174
+ action: [String, Function],
27175
+ directory: Boolean,
27176
+ data: [Object, Function],
27177
+ method: String,
27178
+ headers: Object,
27179
+ showUploadList: [Boolean, Object],
27180
+ multiple: Boolean,
27181
+ accept: String,
27182
+ beforeUpload: Function,
27183
+ onChange: Function,
27184
+ "onUpdate:fileList": Function,
27185
+ onDrop: Function,
27186
+ listType: String,
27187
+ onPreview: Function,
27188
+ onDownload: Function,
27189
+ onReject: Function,
27190
+ onRemove: Function,
27191
+ /** @deprecated Please use `onRemove` directly */
27192
+ remove: Function,
27193
+ supportServerRender: Boolean,
27194
+ disabled: Boolean,
27195
+ prefixCls: String,
27196
+ customRequest: Function,
27197
+ withCredentials: Boolean,
27198
+ openFileDialogOnClick: {
27199
+ type: Boolean,
27200
+ default: true
27201
+ },
27202
+ id: String,
27203
+ previewFile: Function,
27204
+ transformFile: Function,
27205
+ iconRender: Function,
27206
+ isImageUrl: Function,
27207
+ progress: Object,
27208
+ itemRender: Function,
27209
+ maxCount: Number,
27210
+ height: [Number, String],
27211
+ removeIcon: Function,
27212
+ downloadIcon: Function,
27213
+ previewIcon: Function
27214
+ };
27215
+ const BasicUploadDragger = /* @__PURE__ */ vue.defineComponent({
27216
+ compatConfig: {
27217
+ MODE: 3
27218
+ },
27219
+ name: "XBasicUploadDragger",
27220
+ inheritAttrs: false,
27221
+ props: basicUploadDraggerProps,
27222
+ setup(props, {
27223
+ slots,
27224
+ attrs
27225
+ }) {
27226
+ return () => {
27227
+ const {
27228
+ height,
27229
+ ...restProps
27230
+ } = props;
27231
+ const {
27232
+ style,
27233
+ ...restAttrs
27234
+ } = attrs;
27235
+ const draggerProps = {
27236
+ ...restProps,
27237
+ ...restAttrs,
27238
+ type: "drag",
27239
+ style: {
27240
+ ...style,
27241
+ height: typeof height === "number" ? `${height}px` : height
27242
+ }
27243
+ };
27244
+ return vue.createVNode(XBasicUpload, draggerProps, slots);
27245
+ };
27246
+ }
27247
+ });
27248
+ const XBasicUploadDragger = utils.withInstall(BasicUploadDragger);
27249
+ const _hoisted_1 = ["title"];
27250
+ const _hoisted_2 = ["title"];
27251
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
27252
+ __name: "BasicViewBar",
27253
+ props: {
27254
+ fixed: { type: Boolean },
27255
+ maxWidth: {}
27256
+ },
27257
+ setup(__props) {
27258
+ const props = __props;
27259
+ const { b, e, is } = useNamespace("basic-view-bar");
27260
+ const { t } = useLocale();
27261
+ const navWrap = vue.ref();
27262
+ const navScroll = vue.ref();
27263
+ const scrollable = vue.ref(false);
27264
+ const getClasses = vue.computed(() => {
27265
+ return {
27266
+ [b()]: true,
27267
+ [is("fix")]: props.fixed
27268
+ };
27269
+ });
27270
+ const getChangeStyle = vue.computed(() => {
27271
+ return {
27272
+ left: 0,
27273
+ width: "100%",
27274
+ maxWidth: props.maxWidth || "100%"
27275
+ };
27276
+ });
27277
+ function scrollTo(value, amplitude) {
27278
+ if (!navScroll.value) return;
27279
+ const currentScroll = navScroll.value.scrollLeft;
27280
+ const scrollWidth = amplitude > 0 && currentScroll + amplitude >= value || amplitude < 0 && currentScroll + amplitude <= value ? value : currentScroll + amplitude;
27281
+ navScroll.value.scrollTo(scrollWidth, 0);
27282
+ if (scrollWidth === value) return;
27283
+ return window.requestAnimationFrame(() => scrollTo(value, amplitude));
27284
+ }
27285
+ function scrollPrev() {
27286
+ if (!navScroll.value) return;
27287
+ const containerWidth = navScroll.value.offsetWidth;
27288
+ const currentScroll = navScroll.value.scrollLeft;
27289
+ if (!currentScroll) return;
27290
+ const scrollLeft = currentScroll > containerWidth ? currentScroll - containerWidth : 0;
27291
+ scrollTo(scrollLeft, (scrollLeft - currentScroll) / 20);
27292
+ }
27293
+ function scrollNext() {
27294
+ if (!navScroll.value) return;
27295
+ const containerWidth = navScroll.value.offsetWidth;
27296
+ const navWidth = navScroll.value.scrollWidth;
27297
+ const currentScroll = navScroll.value.scrollLeft;
27298
+ if (navWidth - currentScroll <= containerWidth) return;
27299
+ const scrollLeft = navWidth - currentScroll > containerWidth * 2 ? currentScroll + containerWidth : navWidth - containerWidth;
27300
+ scrollTo(scrollLeft, (scrollLeft - currentScroll) / 20);
27301
+ }
27302
+ async function updateNavScroll(autoScroll) {
27303
+ await vue.nextTick();
27304
+ if (!navScroll.value) return;
27305
+ const containerWidth = navScroll.value.offsetWidth;
27306
+ const navWidth = navScroll.value.scrollWidth;
27307
+ if (containerWidth < navWidth) {
27308
+ scrollable.value = true;
27309
+ } else {
27310
+ scrollable.value = false;
27311
+ }
27312
+ }
27313
+ function handleResize() {
27314
+ updateNavScroll();
27315
+ }
27316
+ function onElementResize() {
27317
+ const observer = elementResizeDetectorMaker();
27318
+ navWrap.value && observer.listenTo(navWrap.value, handleResize);
27319
+ }
27320
+ vue.onMounted(() => {
27321
+ onElementResize();
27322
+ });
27323
+ return (_ctx, _cache) => {
27324
+ return vue.openBlock(), vue.createElementBlock("div", {
27325
+ class: vue.normalizeClass(getClasses.value),
27326
+ style: vue.normalizeStyle(getChangeStyle.value)
27327
+ }, [
27328
+ vue.createElementVNode("div", {
27329
+ class: vue.normalizeClass(vue.unref(e)("main"))
27330
+ }, [
27331
+ vue.createElementVNode("div", {
27332
+ ref_key: "navWrap",
27333
+ ref: navWrap,
27334
+ class: vue.normalizeClass({ [vue.unref(is)("scrollable")]: scrollable.value, [vue.unref(e)("wrap")]: true })
27335
+ }, [
27336
+ vue.createElementVNode("div", {
27337
+ class: vue.normalizeClass({ [vue.unref(is)("hide")]: !scrollable.value, [vue.unref(e)("prev")]: true }),
27338
+ title: vue.unref(t)("max.viewBar.prev"),
27339
+ onClick: scrollPrev
27340
+ }, [
27341
+ vue.createVNode(vue.unref(XBasicSvgIcon), { icon: "ri:arrow-left-s-line" })
27342
+ ], 10, _hoisted_1),
27343
+ vue.createElementVNode("div", {
27344
+ class: vue.normalizeClass({ [vue.unref(is)("hide")]: !scrollable.value, [vue.unref(e)("next")]: true }),
27345
+ title: vue.unref(t)("max.viewBar.next"),
27346
+ onClick: scrollNext
27347
+ }, [
27348
+ vue.createVNode(vue.unref(XBasicSvgIcon), { icon: "ri:arrow-right-s-line" })
27349
+ ], 10, _hoisted_2),
27350
+ vue.createElementVNode("div", {
27351
+ ref_key: "navScroll",
27352
+ ref: navScroll,
27353
+ class: vue.normalizeClass(vue.unref(e)("scroll"))
27354
+ }, [
27355
+ vue.renderSlot(_ctx.$slots, "default")
27356
+ ], 2)
27357
+ ], 2)
27358
+ ], 2)
27359
+ ], 6);
27360
+ };
27361
+ }
27362
+ });
27363
+ const XBasicViewBar = utils.withInstall(_sfc_main$4);
27232
27364
  const useTreeDropCls = (props, options) => {
27233
27365
  const { dropdownVisible, checkedCount, selectedTitle } = options;
27234
27366
  const { b } = useNamespace("tree-drop");
@@ -27704,6 +27836,7 @@ const components = [
27704
27836
  XBasicRow,
27705
27837
  XBasicCol,
27706
27838
  XBasicJsonViewer,
27839
+ XBasicTree,
27707
27840
  XTree,
27708
27841
  XTreeSearch,
27709
27842
  XTreeDrop,
@@ -28122,6 +28255,7 @@ exports.XBasicTable = XBasicTable;
28122
28255
  exports.XBasicTag = XBasicTag;
28123
28256
  exports.XBasicText = XBasicText;
28124
28257
  exports.XBasicTitle = XBasicTitle;
28258
+ exports.XBasicTree = XBasicTree;
28125
28259
  exports.XBasicTriggerButton = XBasicTriggerButton;
28126
28260
  exports.XBasicUpload = XBasicUpload;
28127
28261
  exports.XBasicUploadDragger = XBasicUploadDragger;