@maxax/ui 1.1.30 → 1.1.31

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.
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAqDjC,eAAO,MAAM,UAAU,UA+DV,CAAA;AAEb,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAsDjC,eAAO,MAAM,UAAU,UAgEV,CAAA;AAEb,eAAe,UAAU,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { BasicButtonExportMaxProps } from './interface';
2
2
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BasicButtonExportMaxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
- click: (_key: string) => any;
3
+ click: (_key: string | number | undefined) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<BasicButtonExportMaxProps> & Readonly<{
5
- onClick?: ((_key: string) => any) | undefined;
5
+ onClick?: ((_key: string | number | undefined) => any) | undefined;
6
6
  }>, {
7
7
  drop: boolean;
8
8
  icon: string;
@@ -1 +1 @@
1
- {"version":3,"file":"BasicButtonExportMax.vue.d.ts","sourceRoot":"","sources":["../../../src/components/basic-button-export-max/BasicButtonExportMax.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAA6B,yBAAyB,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;AAiPvF,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"BasicButtonExportMax.vue.d.ts","sourceRoot":"","sources":["../../../src/components/basic-button-export-max/BasicButtonExportMax.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAA6B,yBAAyB,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;;;AAkPvF,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,24 +1,20 @@
1
1
  import { Fn } from '@maxax/types';
2
- import { AxiosRequestConfig } from 'axios';
3
- export type ExportApiConfig = Pick<AxiosRequestConfig, 'onDownloadProgress'>;
4
- export type ExportApiFn = (params: Record<string, any>, config?: ExportApiConfig) => Promise<any>;
5
- export interface BasicButtonExportMaxOptions {
6
- label: string;
7
- key: string;
8
- api?: ExportApiFn;
9
- }
2
+ import { DropdownOption } from 'naive-ui';
3
+ export type BasicButtonExportMaxOptions = DropdownOption & {
4
+ api?: Fn;
5
+ };
10
6
  export interface BasicButtonExportMaxProps {
11
7
  drop?: boolean;
12
8
  disabled?: boolean;
13
9
  icon?: string;
14
10
  options?: BasicButtonExportMaxOptions[];
15
- exportApi?: ExportApiFn;
11
+ exportApi?: Fn;
16
12
  beforeFetch?: Fn;
17
13
  afterFetch?: Fn;
18
14
  showProgress?: boolean;
19
15
  }
20
16
  export interface BasicButtonExportMaxEmits {
21
- (_e: 'click', _key: string): void;
17
+ (_e: 'click', _key: string | number | undefined): void;
22
18
  }
23
19
  export interface BasicButtonExportMaxContext {
24
20
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/components/basic-button-export-max/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAE/C,MAAM,MAAM,eAAe,GAAG,IA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AE,MAAM,CAAA;IAEb,OAAO,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAEvC,SAAS,CAAC,EAAE,EAAE,CAAA;IAEd,WAAW,CAAC,EAAE,EAAE,CAAA;IAEhB,UAAU,CAAC,EAAE,EAAE,CAAA;IAEf,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CACvD;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -13,13 +13,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ba
13
13
  placement: "bottom" | "left" | "right" | "top";
14
14
  displayDirective: "show" | "if";
15
15
  resizable: boolean;
16
- showFooter: boolean;
17
- autoFocus: boolean;
18
16
  showMask: boolean;
19
17
  maskClosable: boolean;
18
+ autoFocus: boolean;
20
19
  trapFocus: boolean;
21
20
  closeOnEsc: boolean;
22
21
  blockScroll: boolean;
22
+ showFooter: boolean;
23
23
  showCancelBtn: boolean;
24
24
  showConfirmBtn: boolean;
25
25
  nativeScrollbar: boolean;
@@ -35,6 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ba
35
35
  onFieldValueChange?: ((key: string, value: any) => any) | undefined;
36
36
  }>, {
37
37
  border: boolean;
38
+ card: boolean;
38
39
  schemas: import('./types').FormSchema[];
39
40
  requireMarkPlacement: "left" | "right" | "right-hanging";
40
41
  above: boolean;
@@ -44,7 +45,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ba
44
45
  showFeedback: boolean;
45
46
  showLabel: boolean;
46
47
  rulesMessageJoinLabel: boolean;
47
- card: boolean;
48
48
  showResetButton: boolean;
49
49
  showSubmitButton: boolean;
50
50
  autoSetPlaceHolder: boolean;
@@ -297,8 +297,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
297
297
  data: import('./interface').JSONDataType;
298
298
  style: CSSProperties;
299
299
  theme: "dark" | "light";
300
- deep: number;
301
300
  showIcon: boolean;
301
+ deep: number;
302
302
  itemHeight: number;
303
303
  indent: number;
304
304
  collapsedNodeLength: number;
@@ -335,8 +335,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
335
335
  readonly style: import('vue').CSSProperties;
336
336
  readonly theme: "dark" | "light";
337
337
  readonly collapsed: boolean;
338
- readonly checked: boolean;
339
338
  readonly showIcon: boolean;
339
+ readonly checked: boolean;
340
340
  readonly indent: number;
341
341
  readonly onSelectedChange: (node: NodeDataType) => void;
342
342
  readonly rootPath: string;
@@ -3,6 +3,7 @@ export * from './basic-action-footer';
3
3
  export * from './basic-arrow';
4
4
  export * from './basic-button';
5
5
  export * from './basic-button-action';
6
+ export * from './basic-button-export-max';
6
7
  export * from './basic-button-group';
7
8
  export * from './basic-button-import-max';
8
9
  export * from './basic-card';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,c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AAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
package/dist/index.cjs CHANGED
@@ -1128,7 +1128,7 @@ const useZIndex = (zIndexOverrides) => {
1128
1128
  nextZIndex
1129
1129
  };
1130
1130
  };
1131
- const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
1131
+ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
1132
1132
  __name: "better-scroll",
1133
1133
  props: {
1134
1134
  options: {}
@@ -2854,7 +2854,7 @@ const Icon = vue.defineComponent((props, { emit }) => {
2854
2854
  emits: ["load"]
2855
2855
  });
2856
2856
  const _hoisted_1$d = ["xlink:href"];
2857
- const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
2857
+ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
2858
2858
  __name: "BasicSvgIcon",
2859
2859
  props: {
2860
2860
  icon: {},
@@ -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$Z = /* @__PURE__ */ vue.defineComponent({
2903
+ const XBasicSvgIcon = utils.withInstall(_sfc_main$$);
2904
+ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
2905
2905
  ...{
2906
2906
  inheritAttrs: false
2907
2907
  },
@@ -2950,7 +2950,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
2950
2950
  };
2951
2951
  }
2952
2952
  });
2953
- const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
2953
+ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
2954
2954
  __name: "full-screen",
2955
2955
  props: {
2956
2956
  full: { type: Boolean }
@@ -2958,7 +2958,7 @@ const _sfc_main$Y = /* @__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$Z, {
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$Y = /* @__PURE__ */ vue.defineComponent({
2976
2976
  };
2977
2977
  }
2978
2978
  });
2979
- const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
2979
+ const _sfc_main$Y = /* @__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$X = /* @__PURE__ */ vue.defineComponent({
3016
3016
  };
3017
3017
  }
3018
3018
  });
3019
- const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
3019
+ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
3020
3020
  __name: "menu-toggler",
3021
3021
  props: {
3022
3022
  collapsed: { type: Boolean },
@@ -3042,7 +3042,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
3042
3042
  return icons[arrowIcon][collapsed];
3043
3043
  });
3044
3044
  return (_ctx, _cache) => {
3045
- return vue.openBlock(), vue.createBlock(_sfc_main$Z, {
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$W = /* @__PURE__ */ vue.defineComponent({
3056
3056
  };
3057
3057
  }
3058
3058
  });
3059
- const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
3059
+ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
3060
3060
  __name: "pin-toggler",
3061
3061
  props: {
3062
3062
  pin: { type: Boolean }
@@ -3066,7 +3066,7 @@ const _sfc_main$V = /* @__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$Z, {
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$V = /* @__PURE__ */ vue.defineComponent({
3079
3079
  };
3080
3080
  }
3081
3081
  });
3082
- const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
3082
+ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
3083
3083
  __name: "reload-button",
3084
3084
  props: {
3085
3085
  loading: { type: Boolean }
@@ -3088,7 +3088,7 @@ const _sfc_main$U = /* @__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$Z, {
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$U = /* @__PURE__ */ vue.defineComponent({
3102
3102
  };
3103
3103
  }
3104
3104
  });
3105
- const XCommonBetterScroll = utils.withInstall(_sfc_main$$);
3106
- const XCommonButtonIcon = utils.withInstall(_sfc_main$Z);
3107
- const XCommonFullScreen = utils.withInstall(_sfc_main$Y);
3108
- const XCommonIconTooltip = utils.withInstall(_sfc_main$X);
3109
- const XCommonMenuToggler = utils.withInstall(_sfc_main$W);
3110
- const XCommonPinToggler = utils.withInstall(_sfc_main$V);
3111
- const XCommonReloadButton = utils.withInstall(_sfc_main$U);
3112
- const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
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({
3113
3113
  __name: "BasicButton",
3114
3114
  props: {
3115
3115
  size: {},
@@ -3164,7 +3164,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
3164
3164
  };
3165
3165
  }
3166
3166
  });
3167
- const XBasicButton = utils.withInstall(_sfc_main$T);
3167
+ const XBasicButton = utils.withInstall(_sfc_main$U);
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$S = vue.defineComponent({
3388
+ const _sfc_main$T = vue.defineComponent({
3389
3389
  components: {
3390
3390
  NButton: naiveUi.NButton,
3391
3391
  NInput: naiveUi.NInput,
@@ -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$S, [["render", _sfc_render$2]]);
3796
+ const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["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$R = /* @__PURE__ */ vue.defineComponent({
3922
+ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
3923
3923
  __name: "BasicActionFooter",
3924
3924
  props: {
3925
3925
  showDeleteButton: { type: Boolean, default: false },
@@ -4001,8 +4001,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
4001
4001
  };
4002
4002
  }
4003
4003
  });
4004
- const XBasicActionFooter = utils.withInstall(_sfc_main$R);
4005
- const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
4004
+ const XBasicActionFooter = utils.withInstall(_sfc_main$S);
4005
+ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
4006
4006
  __name: "BasicArrow",
4007
4007
  props: {
4008
4008
  expand: { type: Boolean },
@@ -4034,8 +4034,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
4034
4034
  };
4035
4035
  }
4036
4036
  });
4037
- const XBasicArrow = utils.withInstall(_sfc_main$Q);
4038
- const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
4037
+ const XBasicArrow = utils.withInstall(_sfc_main$R);
4038
+ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
4039
4039
  __name: "BasicButtonCreate",
4040
4040
  emits: ["click"],
4041
4041
  setup(__props, { emit: __emit }) {
@@ -4060,7 +4060,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
4060
4060
  };
4061
4061
  }
4062
4062
  });
4063
- const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
4063
+ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
4064
4064
  __name: "BasicButtonDelete",
4065
4065
  emits: ["click"],
4066
4066
  setup(__props, { emit: __emit }) {
@@ -4085,7 +4085,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
4085
4085
  };
4086
4086
  }
4087
4087
  });
4088
- const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
4088
+ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
4089
4089
  __name: "BasicButtonDrop",
4090
4090
  props: {
4091
4091
  disabled: { type: Boolean },
@@ -4150,7 +4150,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
4150
4150
  };
4151
4151
  }
4152
4152
  });
4153
- const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
4153
+ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
4154
4154
  __name: "BasicButtonEdit",
4155
4155
  emits: ["click"],
4156
4156
  setup(__props, { emit: __emit }) {
@@ -4175,7 +4175,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
4175
4175
  };
4176
4176
  }
4177
4177
  });
4178
- const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
4178
+ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
4179
4179
  __name: "BasicButtonExport",
4180
4180
  props: {
4181
4181
  href: {},
@@ -4226,7 +4226,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
4226
4226
  };
4227
4227
  }
4228
4228
  });
4229
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
4229
+ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
4230
4230
  __name: "BasicButtonExportDrop",
4231
4231
  props: {
4232
4232
  disabled: { type: Boolean },
@@ -4250,7 +4250,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
4250
4250
  emit("click", key2);
4251
4251
  }
4252
4252
  return (_ctx, _cache) => {
4253
- return vue.openBlock(), vue.createBlock(_sfc_main$N, {
4253
+ return vue.openBlock(), vue.createBlock(_sfc_main$O, {
4254
4254
  icon: __props.icon,
4255
4255
  options: cOptions.value,
4256
4256
  onClick: handleClick
@@ -4264,7 +4264,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
4264
4264
  }
4265
4265
  });
4266
4266
  const _hoisted_1$b = ["multiple", "name", "accept"];
4267
- const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
4267
+ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
4268
4268
  __name: "BasicButtonImport",
4269
4269
  props: {
4270
4270
  name: { default: "file" },
@@ -4361,7 +4361,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
4361
4361
  };
4362
4362
  }
4363
4363
  });
4364
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
4364
+ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
4365
4365
  __name: "BasicButtonPrint",
4366
4366
  emits: ["click"],
4367
4367
  setup(__props, { emit: __emit }) {
@@ -4386,14 +4386,137 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
4386
4386
  };
4387
4387
  }
4388
4388
  });
4389
- const XBasicButtonCreate = utils.withInstall(_sfc_main$P);
4390
- const XBasicButtonEdit = utils.withInstall(_sfc_main$M);
4391
- const XBasicButtonDelete = utils.withInstall(_sfc_main$O);
4392
- const XBasicButtonExport = utils.withInstall(_sfc_main$L);
4393
- const XBasicButtonImport = utils.withInstall(_sfc_main$J);
4394
- const XBasicButtonPrint = utils.withInstall(_sfc_main$I);
4395
- const XBasicButtonDrop = utils.withInstall(_sfc_main$N);
4396
- const XBasicButtonExportDrop = utils.withInstall(_sfc_main$K);
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 _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
4398
+ __name: "BasicButtonExportMax",
4399
+ props: {
4400
+ drop: { type: Boolean, default: true },
4401
+ disabled: { type: Boolean },
4402
+ icon: { default: "ri:export-line" },
4403
+ options: { default: () => [
4404
+ { label: "全部导出", key: "all" },
4405
+ { label: "按选择条目导出", key: "select" }
4406
+ ] },
4407
+ exportApi: {},
4408
+ beforeFetch: {},
4409
+ afterFetch: {},
4410
+ showProgress: { type: Boolean, default: true }
4411
+ },
4412
+ emits: ["click"],
4413
+ setup(__props, { emit: __emit }) {
4414
+ const props = __props;
4415
+ const emit = __emit;
4416
+ const { b } = useNamespace("basic-button-export-max");
4417
+ const { b: bm, e: em } = useNamespace("basic-button-export-max-modal");
4418
+ const progressVisible = vue.ref(false);
4419
+ const progressPercent = vue.ref(0);
4420
+ const attrs = vue.useAttrs();
4421
+ const { t } = useLocale();
4422
+ const cOptions = vue.computed(() => {
4423
+ var _a;
4424
+ return ((_a = props.options) != null ? _a : []).map((option) => {
4425
+ return option;
4426
+ });
4427
+ });
4428
+ function getFetchParams(key2) {
4429
+ return props.beforeFetch ? props.beforeFetch(key2) : {};
4430
+ }
4431
+ function getFetchApi(key2) {
4432
+ var _a;
4433
+ if (!props.drop) return props.exportApi;
4434
+ const option = (_a = props.options) == null ? void 0 : _a.find((option2) => option2.key === key2);
4435
+ return (option == null ? void 0 : option.api) || props.exportApi;
4436
+ }
4437
+ function onDownloadProgress(progressEvent) {
4438
+ if (progressEvent.total) {
4439
+ const percent = Math.round(progressEvent.loaded * 100 / progressEvent.total);
4440
+ progressPercent.value = percent;
4441
+ }
4442
+ }
4443
+ async function trigger(key2) {
4444
+ const api = getFetchApi(key2);
4445
+ const params = getFetchParams(key2);
4446
+ if (!api) return;
4447
+ if (props.showProgress) {
4448
+ progressPercent.value = 0;
4449
+ progressVisible.value = true;
4450
+ }
4451
+ const { response, error } = await api(params, { onDownloadProgress });
4452
+ if (props.showProgress) {
4453
+ progressPercent.value = 100;
4454
+ progressVisible.value = false;
4455
+ }
4456
+ if (error) return;
4457
+ utils.downloadFileByResponseData(response);
4458
+ emit("click", key2);
4459
+ }
4460
+ function onMultiExportClick(key2) {
4461
+ if (!key2) return;
4462
+ trigger(key2);
4463
+ }
4464
+ function onSingleExportClick() {
4465
+ trigger("max");
4466
+ }
4467
+ return (_ctx, _cache) => {
4468
+ const _component_XBasicButton = vue.resolveComponent("XBasicButton");
4469
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
4470
+ __props.drop ? (vue.openBlock(), vue.createBlock(_sfc_main$O, vue.mergeProps({
4471
+ key: 0,
4472
+ icon: __props.icon,
4473
+ options: cOptions.value,
4474
+ class: vue.unref(b)()
4475
+ }, vue.unref(attrs), { onClick: onMultiExportClick }), {
4476
+ default: vue.withCtx(() => [
4477
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
4478
+ vue.createTextVNode(vue.toDisplayString(vue.unref(t)("max.basic.export")), 1)
4479
+ ])
4480
+ ]),
4481
+ _: 3
4482
+ }, 16, ["icon", "options", "class"])) : (vue.openBlock(), vue.createBlock(_component_XBasicButton, vue.mergeProps({
4483
+ key: 1,
4484
+ icon: __props.icon,
4485
+ type: "primary"
4486
+ }, vue.unref(attrs), { onClick: onSingleExportClick }), {
4487
+ default: vue.withCtx(() => [
4488
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
4489
+ vue.createTextVNode(vue.toDisplayString(vue.unref(t)("max.basic.export")), 1)
4490
+ ])
4491
+ ]),
4492
+ _: 3
4493
+ }, 16, ["icon"])),
4494
+ vue.createVNode(vue.unref(naiveUi.NModal), {
4495
+ show: progressVisible.value,
4496
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => progressVisible.value = $event),
4497
+ closable: false,
4498
+ preset: "card",
4499
+ class: vue.normalizeClass(vue.unref(bm)())
4500
+ }, {
4501
+ default: vue.withCtx(() => [
4502
+ vue.createElementVNode("div", {
4503
+ class: vue.normalizeClass(vue.unref(em)("progress-content"))
4504
+ }, [
4505
+ vue.createVNode(vue.unref(naiveUi.NProgress), {
4506
+ type: "line",
4507
+ percentage: progressPercent.value,
4508
+ "indicator-placement": "inside"
4509
+ }, null, 8, ["percentage"]),
4510
+ vue.createElementVNode("p", null, vue.toDisplayString(vue.unref(t)("max.basic.exportingTip")), 1)
4511
+ ], 2)
4512
+ ]),
4513
+ _: 1
4514
+ }, 8, ["show", "class"])
4515
+ ], 64);
4516
+ };
4517
+ }
4518
+ });
4519
+ const XBasicButtonExportMax = utils.withInstall(_sfc_main$I);
4397
4520
  function _isSlot$3(s) {
4398
4521
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
4399
4522
  }
@@ -8593,7 +8716,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
8593
8716
  class: vue.normalizeClass(basicTextClass.value),
8594
8717
  title: vue.unref(utils.isString)(vue.unref(mergedValueRef)) ? vue.unref(mergedValueRef) : void 0
8595
8718
  }, [
8596
- __props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$_, {
8719
+ __props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$$, {
8597
8720
  key: 0,
8598
8721
  icon: __props.icon,
8599
8722
  class: vue.normalizeClass(__props.iconClass),
@@ -27590,7 +27713,8 @@ const components = [
27590
27713
  XBasicCard,
27591
27714
  XBasicRegion,
27592
27715
  XBasicRegionSelect,
27593
- XBasicButtonImportMax
27716
+ XBasicButtonImportMax,
27717
+ XBasicButtonExportMax
27594
27718
  ];
27595
27719
  const makeInstaller = (components2 = []) => {
27596
27720
  const install2 = (app, options) => {
@@ -27935,6 +28059,7 @@ exports.XBasicButtonDrop = XBasicButtonDrop;
27935
28059
  exports.XBasicButtonEdit = XBasicButtonEdit;
27936
28060
  exports.XBasicButtonExport = XBasicButtonExport;
27937
28061
  exports.XBasicButtonExportDrop = XBasicButtonExportDrop;
28062
+ exports.XBasicButtonExportMax = XBasicButtonExportMax;
27938
28063
  exports.XBasicButtonGroup = XBasicButtonGroup;
27939
28064
  exports.XBasicButtonImport = XBasicButtonImport;
27940
28065
  exports.XBasicButtonImportMax = XBasicButtonImportMax;