@maxax/ui 1.0.7 → 1.0.8

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 (35) hide show
  1. package/dist/components/basic-trigger-button/BasicTriggerButton.vue.d.ts +13 -0
  2. package/dist/components/basic-trigger-button/BasicTriggerButton.vue.d.ts.map +1 -0
  3. package/dist/components/basic-trigger-button/context.d.ts +6 -0
  4. package/dist/components/basic-trigger-button/context.d.ts.map +1 -0
  5. package/dist/components/basic-trigger-button/index.d.ts +7 -0
  6. package/dist/components/basic-trigger-button/index.d.ts.map +1 -0
  7. package/dist/components/basic-trigger-button/interface.d.ts +47 -0
  8. package/dist/components/basic-trigger-button/interface.d.ts.map +1 -0
  9. package/dist/components/index.d.ts +1 -0
  10. package/dist/components/index.d.ts.map +1 -1
  11. package/dist/expose/index.d.ts +2 -0
  12. package/dist/expose/index.d.ts.map +1 -0
  13. package/dist/expose/operation-button.d.ts +24 -0
  14. package/dist/expose/operation-button.d.ts.map +1 -0
  15. package/dist/index.cjs +240 -102
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.mjs +240 -102
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/locale/lang/en.d.ts.map +1 -1
  22. package/dist/locale/lang/zh-cn.d.ts.map +1 -1
  23. package/dist/locales.cjs +2 -1
  24. package/dist/locales.cjs.map +1 -1
  25. package/dist/locales.mjs +2 -1
  26. package/dist/locales.mjs.map +1 -1
  27. package/dist/{utils-dGhmZ9rs.cjs → utils-D_olU8qE.cjs} +2 -1
  28. package/dist/utils-D_olU8qE.cjs.map +1 -0
  29. package/dist/{utils-B_OywAVi.js → utils-JnUSPc85.js} +2 -1
  30. package/dist/utils-JnUSPc85.js.map +1 -0
  31. package/package.json +4 -4
  32. package/dist/components/naive-ui.d.ts +0 -5
  33. package/dist/components/naive-ui.d.ts.map +0 -1
  34. package/dist/utils-B_OywAVi.js.map +0 -1
  35. package/dist/utils-dGhmZ9rs.cjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { camelize, isNumber, isString, removeClass, addClass, pascalCase, isClie
2
2
  import { nextTick, Fragment, isVNode, Comment, Text, onMounted, watchEffect, onBeforeUnmount, inject, ref, computed, shallowRef, getCurrentInstance, unref, isRef, watch, onScopeDispose, toRaw, defineComponent, onUnmounted, h, useAttrs, createElementBlock, openBlock, mergeProps, createElementVNode, createBlock, createCommentVNode, normalizeClass, createVNode, createSlots, withCtx, renderSlot, provide, reactive, toRefs, resolveComponent, Transition, withDirectives, withModifiers, normalizeStyle, createTextVNode, toDisplayString, withKeys, resolveDynamicComponent, vShow, render as render$1, useSlots, renderList, toRef, normalizeProps, guardReactiveProps, shallowReadonly, getCurrentScope, toValue, vModelText, createApp, mergeDefaults, triggerRef, TransitionGroup, toHandlers, useTemplateRef } from "vue";
3
3
  import { NButton, NInput, NCard, NCascader, NDatePicker, NTooltip, NDrawer, NDrawerContent, NSelect, NInputNumber, NUpload, NAutoComplete, NDynamicTags, NTreeSelect, NTimePicker, NSwitch, NCheckbox, NCheckboxGroup, NRadio, NRadioButton, NRadioGroup, NSlider, NTransfer, NDivider, NColorPicker, NRate, NCol, NFormItem, NForm, NRow, NPopover, NTabs, NTabPane, NScrollbar, NEmpty, NPagination, NSpin, NModal, NProgress } from "naive-ui";
4
4
  import { merge, cloneDeep, uniqBy, get, omit, has, set, unset, isNumber as isNumber$1, isPlainObject, isBoolean as isBoolean$1, isFunction as isFunction$1, isArray as isArray$1, isString as isString$1, isEqual, concat, partition } from "lodash-es";
5
- import { b as buildLocaleContext, z as zhCN } from "./utils-B_OywAVi.js";
5
+ import { b as buildLocaleContext, z as zhCN } from "./utils-JnUSPc85.js";
6
6
  import { useBoolean, useMergedState as useMergedState$1, useEventListener as useEventListener$1, useBreakpoint } from "@maxax/hooks";
7
7
  import { format } from "date-fns";
8
8
  import dayjs from "dayjs";
@@ -2304,7 +2304,7 @@ const Icon = defineComponent((props, { emit }) => {
2304
2304
  emits: ["load"]
2305
2305
  });
2306
2306
  const _hoisted_1$c = ["xlink:href"];
2307
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
2307
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
2308
2308
  __name: "BasicSvgIcon",
2309
2309
  props: {
2310
2310
  icon: {},
@@ -2350,8 +2350,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
2350
2350
  };
2351
2351
  }
2352
2352
  });
2353
- const XBasicSvgIcon = withInstall(_sfc_main$N);
2354
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
2353
+ const XBasicSvgIcon = withInstall(_sfc_main$O);
2354
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
2355
2355
  __name: "BasicArrow",
2356
2356
  props: {
2357
2357
  expand: { type: Boolean },
@@ -2383,8 +2383,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
2383
2383
  };
2384
2384
  }
2385
2385
  });
2386
- const XBasicArrow = withInstall(_sfc_main$M);
2387
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
2386
+ const XBasicArrow = withInstall(_sfc_main$N);
2387
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
2388
2388
  __name: "BasicButton",
2389
2389
  props: {
2390
2390
  size: {},
@@ -2439,7 +2439,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
2439
2439
  };
2440
2440
  }
2441
2441
  });
2442
- const XBasicButton = withInstall(_sfc_main$L);
2442
+ const XBasicButton = withInstall(_sfc_main$M);
2443
2443
  !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
2444
2444
  !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
2445
2445
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -2660,7 +2660,7 @@ const basicMessageBoxProps = {
2660
2660
  default: ""
2661
2661
  }
2662
2662
  };
2663
- const _sfc_main$K = defineComponent({
2663
+ const _sfc_main$L = defineComponent({
2664
2664
  components: {
2665
2665
  NButton,
2666
2666
  NInput,
@@ -3068,7 +3068,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
3068
3068
  _: 3
3069
3069
  });
3070
3070
  }
3071
- const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$2]]);
3071
+ const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$2]]);
3072
3072
  const messageInstance = /* @__PURE__ */ new Map();
3073
3073
  const getAppendToElement = (props) => {
3074
3074
  let appendTo = document.body;
@@ -3197,7 +3197,7 @@ const XBasicMessageBox = $MessageBox;
3197
3197
  function _isSlot$3(s) {
3198
3198
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
3199
3199
  }
3200
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
3200
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
3201
3201
  name: "ButtonGroupItem",
3202
3202
  props: {
3203
3203
  schema: {
@@ -3550,7 +3550,7 @@ function useButtonGroupSchema({ getProps, schemaRef }) {
3550
3550
  });
3551
3551
  return { getSchema };
3552
3552
  }
3553
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
3553
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
3554
3554
  __name: "BasicButtonGroup",
3555
3555
  props: {
3556
3556
  showReturnButton: { type: Boolean },
@@ -3631,7 +3631,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
3631
3631
  return (_ctx, _cache) => {
3632
3632
  return openBlock(), createElementBlock("div", mergeProps({ class: unref(getWrapperClass) }, getBindValue.value), [
3633
3633
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
3634
- return openBlock(), createBlock(_sfc_main$J, {
3634
+ return openBlock(), createBlock(_sfc_main$K, {
3635
3635
  key: schema.field,
3636
3636
  schema,
3637
3637
  "button-group-action-type": buttonGroupActionType,
@@ -3652,9 +3652,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
3652
3652
  };
3653
3653
  }
3654
3654
  });
3655
- const XBasicButtonGroup = withInstall(_sfc_main$I);
3655
+ const XBasicButtonGroup = withInstall(_sfc_main$J);
3656
3656
  const _hoisted_1$a = ["title"];
3657
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
3657
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
3658
3658
  __name: "BasicText",
3659
3659
  props: {
3660
3660
  icon: { default: "" },
@@ -3692,7 +3692,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
3692
3692
  class: normalizeClass(basicTextClass.value),
3693
3693
  title: unref(isString)(unref(mergedValueRef)) ? unref(mergedValueRef) : void 0
3694
3694
  }, [
3695
- __props.icon ? (openBlock(), createBlock(_sfc_main$N, {
3695
+ __props.icon ? (openBlock(), createBlock(_sfc_main$O, {
3696
3696
  key: 0,
3697
3697
  icon: __props.icon,
3698
3698
  class: normalizeClass(__props.iconClass),
@@ -3705,8 +3705,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
3705
3705
  };
3706
3706
  }
3707
3707
  });
3708
- const XBasicText = withInstall(_sfc_main$H);
3709
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
3708
+ const XBasicText = withInstall(_sfc_main$I);
3709
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
3710
3710
  __name: "BasicCard",
3711
3711
  props: {
3712
3712
  title: {},
@@ -3745,8 +3745,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
3745
3745
  };
3746
3746
  }
3747
3747
  });
3748
- const XBasicCard = withInstall(_sfc_main$G);
3749
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
3748
+ const XBasicCard = withInstall(_sfc_main$H);
3749
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
3750
3750
  ...{
3751
3751
  inheritAttrs: false
3752
3752
  },
@@ -3851,7 +3851,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
3851
3851
  }
3852
3852
  });
3853
3853
  const basicCascaderProps = {};
3854
- const XBasicCascader = withInstall(_sfc_main$F);
3854
+ const XBasicCascader = withInstall(_sfc_main$G);
3855
3855
  const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
3856
3856
  const createBasicCheckboxGroupContext = (props) => {
3857
3857
  return provide(basicCheckboxGroupKey, props);
@@ -3872,7 +3872,7 @@ const IconCheck = /* @__PURE__ */ defineComponent({
3872
3872
  }, null)]);
3873
3873
  }
3874
3874
  });
3875
- const _sfc_main$E = defineComponent({
3875
+ const _sfc_main$F = defineComponent({
3876
3876
  name: "IconHover",
3877
3877
  props: {
3878
3878
  disabled: {
@@ -3900,7 +3900,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
3900
3900
  renderSlot(_ctx.$slots, "default")
3901
3901
  ], 2);
3902
3902
  }
3903
- const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$1]]);
3903
+ const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$1]]);
3904
3904
  const basicCheckboxProps = {
3905
3905
  /**
3906
3906
  * @zh 绑定值
@@ -4815,7 +4815,7 @@ function useTransition(source, options = {}) {
4815
4815
  });
4816
4816
  return computed(() => toValue(options.disabled) ? sourceVal() : outputRef.value);
4817
4817
  }
4818
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
4818
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
4819
4819
  __name: "BasicCountTo",
4820
4820
  props: {
4821
4821
  startValue: { default: 0 },
@@ -4876,8 +4876,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
4876
4876
  };
4877
4877
  }
4878
4878
  });
4879
- const XBasicCountTo = withInstall(_sfc_main$D);
4880
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
4879
+ const XBasicCountTo = withInstall(_sfc_main$E);
4880
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
4881
4881
  __name: "BasicDatePicker",
4882
4882
  props: {
4883
4883
  disabled: { type: Boolean, default: false },
@@ -4937,7 +4937,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
4937
4937
  };
4938
4938
  }
4939
4939
  });
4940
- const XBasicDatePicker = withInstall(_sfc_main$C);
4940
+ const XBasicDatePicker = withInstall(_sfc_main$D);
4941
4941
  const basicDragVerifyProps = {
4942
4942
  value: {
4943
4943
  type: Boolean,
@@ -4984,7 +4984,7 @@ const basicDragVerifyProps = {
4984
4984
  default: () => ({})
4985
4985
  }
4986
4986
  };
4987
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
4987
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
4988
4988
  name: "BasicDragVerify",
4989
4989
  props: basicDragVerifyProps,
4990
4990
  emits: ["success", "update:value", "change", "start", "move", "end"],
@@ -5287,7 +5287,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5287
5287
  };
5288
5288
  }
5289
5289
  });
5290
- const XBasicDragVerify = withInstall(_sfc_main$B);
5290
+ const XBasicDragVerify = withInstall(_sfc_main$C);
5291
5291
  const basicHelpProps = {
5292
5292
  /**
5293
5293
  * Whether to display the serial number
@@ -5303,7 +5303,7 @@ const basicHelpProps = {
5303
5303
  default: ""
5304
5304
  }
5305
5305
  };
5306
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
5306
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5307
5307
  name: "BasicHelp",
5308
5308
  components: {
5309
5309
  XBasicSvgIcon
@@ -5349,8 +5349,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5349
5349
  });
5350
5350
  }
5351
5351
  });
5352
- const XBasicHelp = withInstall(_sfc_main$A);
5353
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
5352
+ const XBasicHelp = withInstall(_sfc_main$B);
5353
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5354
5354
  __name: "BasicTitle",
5355
5355
  props: {
5356
5356
  helpMessage: {},
@@ -5393,12 +5393,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
5393
5393
  };
5394
5394
  }
5395
5395
  });
5396
- const XBasicTitle = withInstall(_sfc_main$z);
5396
+ const XBasicTitle = withInstall(_sfc_main$A);
5397
5397
  const _hoisted_1$9 = {
5398
5398
  key: 0,
5399
5399
  class: "footer-wrapper"
5400
5400
  };
5401
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
5401
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
5402
5402
  __name: "BasicDrawer",
5403
5403
  props: {
5404
5404
  showCancelBtn: { type: Boolean, default: true },
@@ -5572,7 +5572,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5572
5572
  };
5573
5573
  }
5574
5574
  });
5575
- const XBasicDrawer = withInstall(_sfc_main$y);
5575
+ const XBasicDrawer = withInstall(_sfc_main$z);
5576
5576
  const basicEditBatchKey = Symbol("basic-edit-batch");
5577
5577
  const createBasicEditBatchContext = (props) => {
5578
5578
  return provide(basicEditBatchKey, props);
@@ -5581,7 +5581,7 @@ const useBasicEditBatchContext = () => {
5581
5581
  return inject(basicEditBatchKey);
5582
5582
  };
5583
5583
  const _hoisted_1$8 = ["disabled"];
5584
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
5584
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5585
5585
  __name: "EditBatchAction",
5586
5586
  props: {
5587
5587
  disabled: { type: Boolean, default: false },
@@ -5641,7 +5641,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
5641
5641
  };
5642
5642
  }
5643
5643
  });
5644
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
5644
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
5645
5645
  __name: "BasicHidden",
5646
5646
  props: {
5647
5647
  value: {},
@@ -5668,7 +5668,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
5668
5668
  };
5669
5669
  }
5670
5670
  });
5671
- const XBasicHidden = withInstall(_sfc_main$w);
5671
+ const XBasicHidden = withInstall(_sfc_main$x);
5672
5672
  const basicRadioGroupKey = Symbol("basic-radio-group");
5673
5673
  const createBasicRadioGroupContext = (props) => {
5674
5674
  return provide(basicRadioGroupKey, props);
@@ -5936,7 +5936,7 @@ const BasicRadioGroup = /* @__PURE__ */ defineComponent({
5936
5936
  }
5937
5937
  });
5938
5938
  const XBasicRadioGroup = withInstall(BasicRadioGroup);
5939
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
5939
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
5940
5940
  ...{
5941
5941
  inheritAttrs: false
5942
5942
  },
@@ -6055,7 +6055,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6055
6055
  }
6056
6056
  });
6057
6057
  const basicSelectProps = {};
6058
- const XBasicSelect = withInstall(_sfc_main$v);
6058
+ const XBasicSelect = withInstall(_sfc_main$w);
6059
6059
  const componentMap$1 = /* @__PURE__ */ new Map();
6060
6060
  componentMap$1.set("Input", NInput);
6061
6061
  componentMap$1.set("InputNumber", NInputNumber);
@@ -6134,7 +6134,7 @@ function isComponentEditBatchSchema(schema) {
6134
6134
  function _isSlot$1(s) {
6135
6135
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
6136
6136
  }
6137
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
6137
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6138
6138
  name: "BasicEditBatchItem",
6139
6139
  components: {
6140
6140
  XBasicHelp
@@ -6872,7 +6872,7 @@ function useEditBatchValues({ getProps, defaultValueRef, getSchema, formModel })
6872
6872
  }
6873
6873
  return { handleFormValues, initDefault };
6874
6874
  }
6875
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
6875
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
6876
6876
  __name: "BasicEditBatch",
6877
6877
  props: {
6878
6878
  name: {},
@@ -7002,7 +7002,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7002
7002
  options: unref(getOptions)
7003
7003
  }, null, 8, ["value", "options"])
7004
7004
  ], 2),
7005
- schemaItemRef.value ? (openBlock(), createBlock(_sfc_main$u, {
7005
+ schemaItemRef.value ? (openBlock(), createBlock(_sfc_main$v, {
7006
7006
  key: 0,
7007
7007
  schema: schemaItemRef.value,
7008
7008
  "edit-batch-props": getProps.value,
@@ -7019,7 +7019,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7019
7019
  };
7020
7020
  })
7021
7021
  ]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : createCommentVNode("", true),
7022
- createVNode(_sfc_main$x, normalizeProps(guardReactiveProps(getEditBatchActionBindProps.value)), createSlots({ _: 2 }, [
7022
+ createVNode(_sfc_main$y, normalizeProps(guardReactiveProps(getEditBatchActionBindProps.value)), createSlots({ _: 2 }, [
7023
7023
  renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
7024
7024
  return {
7025
7025
  name: item,
@@ -7033,7 +7033,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7033
7033
  };
7034
7034
  }
7035
7035
  });
7036
- const XBasicEditBatch = withInstall(_sfc_main$t);
7036
+ const XBasicEditBatch = withInstall(_sfc_main$u);
7037
7037
  const basicFontIconProps = {
7038
7038
  icon: {
7039
7039
  type: String,
@@ -7084,7 +7084,7 @@ const createBasicFormContext = (props) => {
7084
7084
  const useBasicFormContext = () => {
7085
7085
  return inject(basicFormKey);
7086
7086
  };
7087
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
7087
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7088
7088
  __name: "FormAction",
7089
7089
  props: {
7090
7090
  showActionButtonGroup: { type: Boolean, default: true },
@@ -7224,7 +7224,7 @@ const basicScrollTextProps = {
7224
7224
  default: ""
7225
7225
  }
7226
7226
  };
7227
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
7227
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7228
7228
  name: "BasicScrollText",
7229
7229
  props: basicScrollTextProps,
7230
7230
  setup(props, {
@@ -7286,7 +7286,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
7286
7286
  }, [content()]) : null])]);
7287
7287
  }
7288
7288
  });
7289
- const XBasicScrollText = withInstall(_sfc_main$r);
7289
+ const XBasicScrollText = withInstall(_sfc_main$s);
7290
7290
  const componentMap = /* @__PURE__ */ new Map();
7291
7291
  componentMap.set("Input", NInput);
7292
7292
  componentMap.set("InputNumber", NInputNumber);
@@ -7385,7 +7385,7 @@ function isComponentFormSchema(schema) {
7385
7385
  function _isSlot(s) {
7386
7386
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
7387
7387
  }
7388
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
7388
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
7389
7389
  name: "BasicFormItem",
7390
7390
  components: {
7391
7391
  XBasicHelp,
@@ -8485,7 +8485,7 @@ function useFormValues({ getProps, defaultValueRef, getSchema, formModel }) {
8485
8485
  }
8486
8486
  return { handleFormValues, initDefault };
8487
8487
  }
8488
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
8488
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
8489
8489
  __name: "BasicForm",
8490
8490
  props: {
8491
8491
  card: { type: Boolean, default: false },
@@ -8676,7 +8676,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
8676
8676
  default: withCtx(() => [
8677
8677
  renderSlot(_ctx.$slots, "formHeader"),
8678
8678
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
8679
- return openBlock(), createBlock(_sfc_main$q, {
8679
+ return openBlock(), createBlock(_sfc_main$r, {
8680
8680
  key: schema.field,
8681
8681
  "is-advanced": unref(fieldsIsAdvancedMap)[schema.field],
8682
8682
  "form-action-type": formActionType,
@@ -8696,7 +8696,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
8696
8696
  })
8697
8697
  ]), 1032, ["is-advanced", "schema", "form-props", "all-default-values", "form-model"]);
8698
8698
  }), 128)),
8699
- createVNode(_sfc_main$s, mergeProps(getFormActionBindProps.value, { onToggleAdvanced: unref(handleToggleAdvanced) }), createSlots({ _: 2 }, [
8699
+ createVNode(_sfc_main$t, mergeProps(getFormActionBindProps.value, { onToggleAdvanced: unref(handleToggleAdvanced) }), createSlots({ _: 2 }, [
8700
8700
  renderList(["resetBefore", "submitBefore", "advanceBefore", "advanceAfter"], (item) => {
8701
8701
  return {
8702
8702
  name: item,
@@ -8717,8 +8717,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
8717
8717
  };
8718
8718
  }
8719
8719
  });
8720
- const XBasicForm = withInstall(_sfc_main$p);
8721
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
8720
+ const XBasicForm = withInstall(_sfc_main$q);
8721
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
8722
8722
  __name: "BasicGradientTitle",
8723
8723
  props: {
8724
8724
  text: {}
@@ -8751,7 +8751,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
8751
8751
  }
8752
8752
  });
8753
8753
  const basicGradientTitleProps = {};
8754
- const XBasicGradientTitle = withInstall(_sfc_main$o);
8754
+ const XBasicGradientTitle = withInstall(_sfc_main$p);
8755
8755
  const basicIconOnlineProps = {
8756
8756
  icon: {
8757
8757
  type: String,
@@ -12650,7 +12650,7 @@ const IconJson = {
12650
12650
  };
12651
12651
  const _hoisted_1$7 = { class: "panel-icon-list" };
12652
12652
  const _hoisted_2$3 = ["title", "onClick"];
12653
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
12653
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
12654
12654
  __name: "BasicIconPicker",
12655
12655
  props: {
12656
12656
  disabled: { type: Boolean },
@@ -12880,7 +12880,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
12880
12880
  };
12881
12881
  }
12882
12882
  });
12883
- const XBasicIconPicker = withInstall(_sfc_main$n);
12883
+ const XBasicIconPicker = withInstall(_sfc_main$o);
12884
12884
  const ROW_KEY$1 = "_MAX_ROW_KEY";
12885
12885
  const PAGE_SIZE_OPTIONS$1 = [10, 50, 80, 100];
12886
12886
  const PAGE_SIZE$1 = 10;
@@ -13210,7 +13210,7 @@ function usePagination$1(propsRef) {
13210
13210
  }
13211
13211
  return { getPagination, getPaginationInfo, setShowPagination, getShowPagination, setPagination };
13212
13212
  }
13213
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
13213
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13214
13214
  __name: "BasicListPage",
13215
13215
  props: {
13216
13216
  listClassName: {},
@@ -13379,7 +13379,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13379
13379
  };
13380
13380
  }
13381
13381
  });
13382
- const XBasicListPage = withInstall(_sfc_main$m);
13382
+ const XBasicListPage = withInstall(_sfc_main$n);
13383
13383
  function createLoadingComponent(options) {
13384
13384
  let afterLeaveTimer;
13385
13385
  const afterLeaveFlag = ref(false);
@@ -13648,7 +13648,7 @@ const XBasicLoading = {
13648
13648
  directive: vLoading,
13649
13649
  service: Loading
13650
13650
  };
13651
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
13651
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13652
13652
  __name: "BasicModal",
13653
13653
  props: {
13654
13654
  width: {},
@@ -13800,12 +13800,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13800
13800
  }
13801
13801
  });
13802
13802
  const basicModalProps = {};
13803
- const XBasicModal = withInstall(_sfc_main$l);
13803
+ const XBasicModal = withInstall(_sfc_main$m);
13804
13804
  const _hoisted_1$6 = ["id"];
13805
13805
  const _hoisted_2$2 = ["textContent"];
13806
13806
  const _hoisted_3 = { key: 0 };
13807
13807
  const _hoisted_4 = ["innerHTML"];
13808
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
13808
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13809
13809
  __name: "BasicNotification",
13810
13810
  props: {
13811
13811
  customClass: { default: "" },
@@ -13992,7 +13992,7 @@ const notify = (options, context) => {
13992
13992
  appendTo = document.body;
13993
13993
  }
13994
13994
  const container = document.createElement("div");
13995
- const vm = createVNode(_sfc_main$k, props, isFunction(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
13995
+ const vm = createVNode(_sfc_main$l, props, isFunction(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
13996
13996
  vm.appContext = isUndefined(context) ? notify._context : context;
13997
13997
  vm.props.onDestroy = () => {
13998
13998
  render$1(null, container);
@@ -14050,7 +14050,7 @@ notify.closeAll = closeAll;
14050
14050
  notify._context = null;
14051
14051
  const $Notification = notify;
14052
14052
  const XBasicNotification = $Notification;
14053
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
14053
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14054
14054
  __name: "BasicPage",
14055
14055
  props: {
14056
14056
  title: {},
@@ -14150,8 +14150,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14150
14150
  };
14151
14151
  }
14152
14152
  });
14153
- const XBasicPage = withInstall(_sfc_main$j);
14154
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
14153
+ const XBasicPage = withInstall(_sfc_main$k);
14154
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14155
14155
  __name: "BasicPanel",
14156
14156
  props: {
14157
14157
  title: {},
@@ -14188,7 +14188,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
14188
14188
  };
14189
14189
  }
14190
14190
  });
14191
- const XBasicPanel = withInstall(_sfc_main$i);
14191
+ const XBasicPanel = withInstall(_sfc_main$j);
14192
14192
  const regionJson = {
14193
14193
  "110000": "北京市",
14194
14194
  "110100": "市辖区",
@@ -18195,7 +18195,7 @@ const BasicRow = /* @__PURE__ */ defineComponent({
18195
18195
  }
18196
18196
  });
18197
18197
  const XBasicRow = withInstall(BasicRow);
18198
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
18198
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18199
18199
  __name: "BasicSubPanel",
18200
18200
  props: {
18201
18201
  title: {}
@@ -18231,7 +18231,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18231
18231
  }
18232
18232
  });
18233
18233
  const basicSubPanelProps = {};
18234
- const XBasicSubPanel = withInstall(_sfc_main$h);
18234
+ const XBasicSubPanel = withInstall(_sfc_main$i);
18235
18235
  const ROW_KEY = "_MAX_ROW_KEY";
18236
18236
  const PAGE_SIZE_OPTIONS = [10, 50, 80, 100];
18237
18237
  const PAGE_SIZE = 10;
@@ -19099,7 +19099,7 @@ const setting = {
19099
19099
  })
19100
19100
  };
19101
19101
  const _hoisted_1$5 = { class: "max-table-selection-count" };
19102
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
19102
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19103
19103
  __name: "BasicTable",
19104
19104
  props: /* @__PURE__ */ mergeDefaults({
19105
19105
  layouts: {},
@@ -19553,8 +19553,8 @@ const vxeTableFormatter = {
19553
19553
  }
19554
19554
  };
19555
19555
  VxeUI2.formats.mixin(vxeTableFormatter);
19556
- const XBasicTable = withInstall(_sfc_main$g);
19557
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
19556
+ const XBasicTable = withInstall(_sfc_main$h);
19557
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19558
19558
  __name: "BasicTag",
19559
19559
  props: {
19560
19560
  tagType: { type: [Number, Boolean] },
@@ -19579,7 +19579,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19579
19579
  };
19580
19580
  }
19581
19581
  });
19582
- const XBasicTag = withInstall(_sfc_main$f);
19582
+ const XBasicTag = withInstall(_sfc_main$g);
19583
19583
  const attrAccept = (file, acceptedFiles) => {
19584
19584
  if (file && acceptedFiles) {
19585
19585
  const acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(",");
@@ -21316,7 +21316,7 @@ const BasicUploadDragger = /* @__PURE__ */ defineComponent({
21316
21316
  const XBasicUploadDragger = withInstall(BasicUploadDragger);
21317
21317
  const _hoisted_1$4 = ["title"];
21318
21318
  const _hoisted_2$1 = ["title"];
21319
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
21319
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21320
21320
  __name: "BasicViewBar",
21321
21321
  props: {
21322
21322
  fixed: { type: Boolean },
@@ -21428,8 +21428,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21428
21428
  };
21429
21429
  }
21430
21430
  });
21431
- const XBasicViewBar = withInstall(_sfc_main$e);
21432
- const _sfc_main$d = defineComponent({
21431
+ const XBasicViewBar = withInstall(_sfc_main$f);
21432
+ const _sfc_main$e = defineComponent({
21433
21433
  name: "CLoadingIcon"
21434
21434
  });
21435
21435
  const _hoisted_1$3 = { viewBox: "0 0 50 50" };
@@ -21446,7 +21446,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
21446
21446
  }, null, -1)
21447
21447
  ])]);
21448
21448
  }
21449
- const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render]]);
21449
+ const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render]]);
21450
21450
  var ignoreEnum = /* @__PURE__ */ ((ignoreEnum2) => {
21451
21451
  ignoreEnum2["none"] = "none";
21452
21452
  ignoreEnum2["parents"] = "parents";
@@ -21647,7 +21647,7 @@ const useTreeNodeCls = (props, dragoverRefs) => {
21647
21647
  };
21648
21648
  const _hoisted_1$2 = ["d", "stroke-width", "stroke", "stroke-dasharray"];
21649
21649
  const _hoisted_2 = ["draggable"];
21650
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
21650
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
21651
21651
  ...{
21652
21652
  name: "VTreeNode"
21653
21653
  },
@@ -21961,7 +21961,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
21961
21961
  };
21962
21962
  }
21963
21963
  });
21964
- const XTreeNode = withInstall(_sfc_main$c);
21964
+ const XTreeNode = withInstall(_sfc_main$d);
21965
21965
  const useExpandAnimation = (renderNodesRef, renderStartRef, props) => {
21966
21966
  const expandAnimationStart = ref(false);
21967
21967
  const expandAnimationReady = ref(false);
@@ -23411,7 +23411,7 @@ const pickReadonly = (obj, ...keys) => {
23411
23411
  });
23412
23412
  return picked;
23413
23413
  };
23414
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
23414
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
23415
23415
  ...{
23416
23416
  name: "VTree",
23417
23417
  inheritAttrs: false
@@ -23900,7 +23900,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
23900
23900
  };
23901
23901
  }
23902
23902
  });
23903
- const XTree = withInstall(_sfc_main$b);
23903
+ const XTree = withInstall(_sfc_main$c);
23904
23904
  const useTreeSearchCls = (props, options) => {
23905
23905
  const { checkAllStatus, isShowingChecked } = options;
23906
23906
  const { b } = useNamespace("tree-search");
@@ -23986,7 +23986,7 @@ const DEFAULT_TREE_SEARCH_PROPS = {
23986
23986
  };
23987
23987
  const TREE_SEARCH_EVENTS = ["search", ...TREE_EVENTS];
23988
23988
  const _hoisted_1$1 = ["placeholder", "disabled"];
23989
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
23989
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
23990
23990
  ...{
23991
23991
  name: "VTreeSearch",
23992
23992
  inheritAttrs: false
@@ -24296,7 +24296,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
24296
24296
  };
24297
24297
  }
24298
24298
  });
24299
- const XTreeSearch = withInstall(_sfc_main$a);
24299
+ const XTreeSearch = withInstall(_sfc_main$b);
24300
24300
  const useTreeDropCls = (props, options) => {
24301
24301
  const { dropdownVisible, checkedCount, selectedTitle } = options;
24302
24302
  const { b } = useNamespace("tree-drop");
@@ -24368,7 +24368,7 @@ const DEFAULT_TREE_DROP_PROPS = {
24368
24368
  };
24369
24369
  const TREE_SEARCH_API_METHODS = [...TREE_API_METHODS, "clearKeyword", "getKeyword", "search"];
24370
24370
  const TREE_DROP_EVENTS = ["clear", "dropdown-visible-change", ...TREE_SEARCH_EVENTS];
24371
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
24371
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
24372
24372
  ...{
24373
24373
  name: "VTreeDrop",
24374
24374
  inheritAttrs: false
@@ -24733,7 +24733,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
24733
24733
  };
24734
24734
  }
24735
24735
  });
24736
- const XTreeDrop = withInstall(_sfc_main$9);
24736
+ const XTreeDrop = withInstall(_sfc_main$a);
24737
24737
  const components = [
24738
24738
  XConfigProvider,
24739
24739
  XBasicSvgIcon,
@@ -24797,7 +24797,7 @@ const makeInstaller = (components2 = []) => {
24797
24797
  };
24798
24798
  };
24799
24799
  const installer = makeInstaller([...components]);
24800
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
24800
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
24801
24801
  __name: "BasicButtonCreate",
24802
24802
  emits: ["click"],
24803
24803
  setup(__props, { emit: __emit }) {
@@ -24822,7 +24822,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
24822
24822
  };
24823
24823
  }
24824
24824
  });
24825
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
24825
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
24826
24826
  __name: "BasicButtonDelete",
24827
24827
  emits: ["click"],
24828
24828
  setup(__props, { emit: __emit }) {
@@ -24847,7 +24847,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
24847
24847
  };
24848
24848
  }
24849
24849
  });
24850
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
24850
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
24851
24851
  __name: "BasicButtonEdit",
24852
24852
  emits: ["click"],
24853
24853
  setup(__props, { emit: __emit }) {
@@ -24872,7 +24872,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
24872
24872
  };
24873
24873
  }
24874
24874
  });
24875
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24875
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
24876
24876
  __name: "BasicButtonExport",
24877
24877
  props: {
24878
24878
  href: {},
@@ -24924,7 +24924,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24924
24924
  }
24925
24925
  });
24926
24926
  const _hoisted_1 = ["multiple", "name", "accept"];
24927
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24927
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24928
24928
  __name: "BasicButtonImport",
24929
24929
  props: {
24930
24930
  name: { default: "file" },
@@ -25015,8 +25015,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25015
25015
  };
25016
25016
  }
25017
25017
  });
25018
- const BasicButtonImport = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-826acb65"]]);
25019
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
25018
+ const BasicButtonImport = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-826acb65"]]);
25019
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25020
25020
  __name: "BasicButtonPrint",
25021
25021
  emits: ["click"],
25022
25022
  setup(__props, { emit: __emit }) {
@@ -25041,13 +25041,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
25041
25041
  };
25042
25042
  }
25043
25043
  });
25044
- const XBasicButtonCreate = withInstall(_sfc_main$8);
25045
- const XBasicButtonEdit = withInstall(_sfc_main$6);
25046
- const XBasicButtonDelete = withInstall(_sfc_main$7);
25047
- const XBasicButtonExport = withInstall(_sfc_main$5);
25044
+ const XBasicButtonCreate = withInstall(_sfc_main$9);
25045
+ const XBasicButtonEdit = withInstall(_sfc_main$7);
25046
+ const XBasicButtonDelete = withInstall(_sfc_main$8);
25047
+ const XBasicButtonExport = withInstall(_sfc_main$6);
25048
25048
  const XBasicButtonImport = withInstall(BasicButtonImport);
25049
- const XBasicButtonPrint = withInstall(_sfc_main$3);
25050
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
25049
+ const XBasicButtonPrint = withInstall(_sfc_main$4);
25050
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
25051
25051
  __name: "BasicDrawerFooter",
25052
25052
  props: {
25053
25053
  showDeleteButton: { type: Boolean, default: false },
@@ -25124,8 +25124,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
25124
25124
  };
25125
25125
  }
25126
25126
  });
25127
- const XBasicDrawerFooter = withInstall(_sfc_main$2);
25128
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25127
+ const XBasicDrawerFooter = withInstall(_sfc_main$3);
25128
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
25129
25129
  __name: "BasicMasterTrigger",
25130
25130
  props: {
25131
25131
  value: {},
@@ -25189,8 +25189,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25189
25189
  };
25190
25190
  }
25191
25191
  });
25192
- const XBasicMasterTrigger = withInstall(_sfc_main$1);
25193
- const _sfc_main = /* @__PURE__ */ defineComponent({
25192
+ const XBasicMasterTrigger = withInstall(_sfc_main$2);
25193
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25194
25194
  __name: "BasicPanelPage",
25195
25195
  props: {
25196
25196
  autoContentHeight: { type: Boolean, default: true }
@@ -25261,7 +25261,142 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25261
25261
  };
25262
25262
  }
25263
25263
  });
25264
- const XBasicPanelPage = withInstall(_sfc_main);
25264
+ const XBasicPanelPage = withInstall(_sfc_main$1);
25265
+ const _sfc_main = /* @__PURE__ */ defineComponent({
25266
+ __name: "BasicTriggerButton",
25267
+ props: {
25268
+ size: {},
25269
+ type: { default: "primary" },
25270
+ icon: {},
25271
+ color: {},
25272
+ textColor: {},
25273
+ text: { type: Boolean },
25274
+ block: { type: Boolean },
25275
+ loading: { type: Boolean },
25276
+ disabled: { type: Boolean },
25277
+ circle: { type: Boolean },
25278
+ ghost: { type: Boolean },
25279
+ round: { type: Boolean },
25280
+ secondary: { type: Boolean },
25281
+ tertiary: { type: Boolean },
25282
+ quaternary: { type: Boolean },
25283
+ strong: { type: Boolean },
25284
+ focusable: { type: Boolean },
25285
+ keyboard: { type: Boolean },
25286
+ tag: {},
25287
+ dashed: { type: Boolean },
25288
+ renderIcon: {},
25289
+ iconPlacement: {},
25290
+ attrType: {},
25291
+ bordered: { type: Boolean },
25292
+ onClick: {},
25293
+ nativeFocusBehavior: { type: Boolean },
25294
+ field: {},
25295
+ validate: {},
25296
+ confirm: {},
25297
+ cancel: {},
25298
+ message: {},
25299
+ messageBoxProps: {},
25300
+ buttonProps: {}
25301
+ },
25302
+ setup(__props) {
25303
+ const props = __props;
25304
+ const { b } = useNamespace("basic-trigger-button");
25305
+ const { t } = useLocale();
25306
+ function basicButtonHandler2() {
25307
+ var _a;
25308
+ if (props.message) {
25309
+ XBasicMessageBox.confirm(props.message, {
25310
+ type: "info",
25311
+ title: t("max.messagebox.alert"),
25312
+ confirmButtonText: t("max.button.confirm"),
25313
+ cancelButtonText: t("max.button.cancel"),
25314
+ ...props.messageBoxProps || {},
25315
+ callback: (action) => {
25316
+ var _a2, _b, _c;
25317
+ if (action === "confirm") {
25318
+ (_a2 = props.confirm) == null ? void 0 : _a2.call(props, { field: props.field, schema: props, type: "confirm" });
25319
+ } else if (action === "cancel") {
25320
+ (_b = props.cancel) == null ? void 0 : _b.call(props, { field: props.field, schema: props, type: "cancel" });
25321
+ } else {
25322
+ (_c = props.cancel) == null ? void 0 : _c.call(props, { field: props.field, schema: props, type: "close" });
25323
+ }
25324
+ }
25325
+ });
25326
+ } else {
25327
+ (_a = props.confirm) == null ? void 0 : _a.call(props, { field: props.field, schema: props, type: "confirm" });
25328
+ }
25329
+ }
25330
+ function onClickHandler() {
25331
+ if (!props.validate) {
25332
+ basicButtonHandler2();
25333
+ return;
25334
+ }
25335
+ const interceptor = props.validate({ field: props.field, schema: props });
25336
+ if (interceptor instanceof Promise) {
25337
+ interceptor.then((res) => {
25338
+ if (res) {
25339
+ basicButtonHandler2();
25340
+ }
25341
+ });
25342
+ } else if (interceptor) {
25343
+ basicButtonHandler2();
25344
+ }
25345
+ }
25346
+ return (_ctx, _cache) => {
25347
+ return openBlock(), createBlock(unref(XBasicButton), mergeProps(props, {
25348
+ class: unref(b)(),
25349
+ onClick: onClickHandler
25350
+ }), {
25351
+ default: withCtx(() => [
25352
+ renderSlot(_ctx.$slots, "default")
25353
+ ]),
25354
+ _: 3
25355
+ }, 16, ["class"]);
25356
+ };
25357
+ }
25358
+ });
25359
+ const XBasicTriggerButton = withInstall(_sfc_main);
25360
+ function basicButtonHandler(schema) {
25361
+ var _a;
25362
+ if (schema.message) {
25363
+ XBasicMessageBox.confirm(schema.message, {
25364
+ type: "info",
25365
+ title: "提示",
25366
+ confirmButtonText: "确定",
25367
+ cancelButtonText: "取消",
25368
+ ...schema.messageBoxProps || {},
25369
+ callback: (action) => {
25370
+ var _a2, _b, _c;
25371
+ if (action === "confirm") {
25372
+ (_a2 = schema.confirm) == null ? void 0 : _a2.call(schema, { field: schema.field, schema, type: "confirm" });
25373
+ } else if (action === "cancel") {
25374
+ (_b = schema.cancel) == null ? void 0 : _b.call(schema, { field: schema.field, schema, type: "cancel" });
25375
+ } else {
25376
+ (_c = schema.cancel) == null ? void 0 : _c.call(schema, { field: schema.field, schema, type: "close" });
25377
+ }
25378
+ }
25379
+ });
25380
+ } else {
25381
+ (_a = schema.confirm) == null ? void 0 : _a.call(schema, { field: schema.field, schema, type: "confirm" });
25382
+ }
25383
+ }
25384
+ function basicButtonClickTrigger(schema) {
25385
+ if (!schema.validate) {
25386
+ basicButtonHandler(schema);
25387
+ return;
25388
+ }
25389
+ const interceptor = schema.validate({ field: schema.field, schema });
25390
+ if (interceptor instanceof Promise) {
25391
+ interceptor.then((res) => {
25392
+ if (res) {
25393
+ basicButtonHandler(schema);
25394
+ }
25395
+ });
25396
+ } else if (interceptor) {
25397
+ basicButtonHandler(schema);
25398
+ }
25399
+ }
25265
25400
  const install = installer.install;
25266
25401
  export {
25267
25402
  LIST_IGNORE,
@@ -25325,6 +25460,7 @@ export {
25325
25460
  XBasicTag,
25326
25461
  XBasicText,
25327
25462
  XBasicTitle,
25463
+ XBasicTriggerButton,
25328
25464
  XBasicUpload,
25329
25465
  XBasicUploadDragger,
25330
25466
  XBasicViewBar,
@@ -25334,6 +25470,8 @@ export {
25334
25470
  XTreeNode,
25335
25471
  XTreeSearch,
25336
25472
  ZINDEX_INJECTION_KEY,
25473
+ basicButtonClickTrigger,
25474
+ basicButtonHandler,
25337
25475
  basicCascaderProps,
25338
25476
  basicCheckboxGroupProps,
25339
25477
  basicCheckboxProps,