@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.
- package/dist/components/basic-trigger-button/BasicTriggerButton.vue.d.ts +13 -0
- package/dist/components/basic-trigger-button/BasicTriggerButton.vue.d.ts.map +1 -0
- package/dist/components/basic-trigger-button/context.d.ts +6 -0
- package/dist/components/basic-trigger-button/context.d.ts.map +1 -0
- package/dist/components/basic-trigger-button/index.d.ts +7 -0
- package/dist/components/basic-trigger-button/index.d.ts.map +1 -0
- package/dist/components/basic-trigger-button/interface.d.ts +47 -0
- package/dist/components/basic-trigger-button/interface.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/expose/index.d.ts +2 -0
- package/dist/expose/index.d.ts.map +1 -0
- package/dist/expose/operation-button.d.ts +24 -0
- package/dist/expose/operation-button.d.ts.map +1 -0
- package/dist/index.cjs +240 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +240 -102
- package/dist/index.mjs.map +1 -1
- package/dist/locale/lang/en.d.ts.map +1 -1
- package/dist/locale/lang/zh-cn.d.ts.map +1 -1
- package/dist/locales.cjs +2 -1
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.mjs +2 -1
- package/dist/locales.mjs.map +1 -1
- package/dist/{utils-dGhmZ9rs.cjs → utils-D_olU8qE.cjs} +2 -1
- package/dist/utils-D_olU8qE.cjs.map +1 -0
- package/dist/{utils-B_OywAVi.js → utils-JnUSPc85.js} +2 -1
- package/dist/utils-JnUSPc85.js.map +1 -0
- package/package.json +4 -4
- package/dist/components/naive-ui.d.ts +0 -5
- package/dist/components/naive-ui.d.ts.map +0 -1
- package/dist/utils-B_OywAVi.js.map +0 -1
- package/dist/utils-dGhmZ9rs.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const utils = require("@maxax/utils");
|
|
|
4
4
|
const vue = require("vue");
|
|
5
5
|
const naiveUi = require("naive-ui");
|
|
6
6
|
const lodashEs = require("lodash-es");
|
|
7
|
-
const utils$1 = require("./utils-
|
|
7
|
+
const utils$1 = require("./utils-D_olU8qE.cjs");
|
|
8
8
|
const hooks = require("@maxax/hooks");
|
|
9
9
|
const dateFns = require("date-fns");
|
|
10
10
|
const dayjs = require("dayjs");
|
|
@@ -2304,7 +2304,7 @@ const Icon = vue.defineComponent((props, { emit }) => {
|
|
|
2304
2304
|
emits: ["load"]
|
|
2305
2305
|
});
|
|
2306
2306
|
const _hoisted_1$c = ["xlink:href"];
|
|
2307
|
-
const _sfc_main$
|
|
2307
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
2308
2308
|
__name: "BasicSvgIcon",
|
|
2309
2309
|
props: {
|
|
2310
2310
|
icon: {},
|
|
@@ -2350,8 +2350,8 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
2352
|
});
|
|
2353
|
-
const XBasicSvgIcon = utils.withInstall(_sfc_main$
|
|
2354
|
-
const _sfc_main$
|
|
2353
|
+
const XBasicSvgIcon = utils.withInstall(_sfc_main$O);
|
|
2354
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
2355
2355
|
__name: "BasicArrow",
|
|
2356
2356
|
props: {
|
|
2357
2357
|
expand: { type: Boolean },
|
|
@@ -2383,8 +2383,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
2383
2383
|
};
|
|
2384
2384
|
}
|
|
2385
2385
|
});
|
|
2386
|
-
const XBasicArrow = utils.withInstall(_sfc_main$
|
|
2387
|
-
const _sfc_main$
|
|
2386
|
+
const XBasicArrow = utils.withInstall(_sfc_main$N);
|
|
2387
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
2388
2388
|
__name: "BasicButton",
|
|
2389
2389
|
props: {
|
|
2390
2390
|
size: {},
|
|
@@ -2439,7 +2439,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
2439
2439
|
};
|
|
2440
2440
|
}
|
|
2441
2441
|
});
|
|
2442
|
-
const XBasicButton = utils.withInstall(_sfc_main$
|
|
2442
|
+
const XBasicButton = utils.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$
|
|
2663
|
+
const _sfc_main$L = vue.defineComponent({
|
|
2664
2664
|
components: {
|
|
2665
2665
|
NButton: naiveUi.NButton,
|
|
2666
2666
|
NInput: naiveUi.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$
|
|
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]" && !vue.isVNode(s);
|
|
3199
3199
|
}
|
|
3200
|
-
const _sfc_main$
|
|
3200
|
+
const _sfc_main$K = /* @__PURE__ */ vue.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$
|
|
3553
|
+
const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
3554
3554
|
__name: "BasicButtonGroup",
|
|
3555
3555
|
props: {
|
|
3556
3556
|
showReturnButton: { type: Boolean },
|
|
@@ -3631,7 +3631,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
3631
3631
|
return (_ctx, _cache) => {
|
|
3632
3632
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: vue.unref(getWrapperClass) }, getBindValue.value), [
|
|
3633
3633
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getSchema), (schema) => {
|
|
3634
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3634
|
+
return vue.openBlock(), vue.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__ */ vue.defineComponent({
|
|
|
3652
3652
|
};
|
|
3653
3653
|
}
|
|
3654
3654
|
});
|
|
3655
|
-
const XBasicButtonGroup = utils.withInstall(_sfc_main$
|
|
3655
|
+
const XBasicButtonGroup = utils.withInstall(_sfc_main$J);
|
|
3656
3656
|
const _hoisted_1$a = ["title"];
|
|
3657
|
-
const _sfc_main$
|
|
3657
|
+
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
3658
3658
|
__name: "BasicText",
|
|
3659
3659
|
props: {
|
|
3660
3660
|
icon: { default: "" },
|
|
@@ -3692,7 +3692,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
3692
3692
|
class: vue.normalizeClass(basicTextClass.value),
|
|
3693
3693
|
title: vue.unref(utils.isString)(vue.unref(mergedValueRef)) ? vue.unref(mergedValueRef) : void 0
|
|
3694
3694
|
}, [
|
|
3695
|
-
__props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3695
|
+
__props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$O, {
|
|
3696
3696
|
key: 0,
|
|
3697
3697
|
icon: __props.icon,
|
|
3698
3698
|
class: vue.normalizeClass(__props.iconClass),
|
|
@@ -3705,8 +3705,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
3705
3705
|
};
|
|
3706
3706
|
}
|
|
3707
3707
|
});
|
|
3708
|
-
const XBasicText = utils.withInstall(_sfc_main$
|
|
3709
|
-
const _sfc_main$
|
|
3708
|
+
const XBasicText = utils.withInstall(_sfc_main$I);
|
|
3709
|
+
const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
3710
3710
|
__name: "BasicCard",
|
|
3711
3711
|
props: {
|
|
3712
3712
|
title: {},
|
|
@@ -3745,8 +3745,8 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
3745
3745
|
};
|
|
3746
3746
|
}
|
|
3747
3747
|
});
|
|
3748
|
-
const XBasicCard = utils.withInstall(_sfc_main$
|
|
3749
|
-
const _sfc_main$
|
|
3748
|
+
const XBasicCard = utils.withInstall(_sfc_main$H);
|
|
3749
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
3750
3750
|
...{
|
|
3751
3751
|
inheritAttrs: false
|
|
3752
3752
|
},
|
|
@@ -3851,7 +3851,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
3851
3851
|
}
|
|
3852
3852
|
});
|
|
3853
3853
|
const basicCascaderProps = {};
|
|
3854
|
-
const XBasicCascader = utils.withInstall(_sfc_main$
|
|
3854
|
+
const XBasicCascader = utils.withInstall(_sfc_main$G);
|
|
3855
3855
|
const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
|
|
3856
3856
|
const createBasicCheckboxGroupContext = (props) => {
|
|
3857
3857
|
return vue.provide(basicCheckboxGroupKey, props);
|
|
@@ -3872,7 +3872,7 @@ const IconCheck = /* @__PURE__ */ vue.defineComponent({
|
|
|
3872
3872
|
}, null)]);
|
|
3873
3873
|
}
|
|
3874
3874
|
});
|
|
3875
|
-
const _sfc_main$
|
|
3875
|
+
const _sfc_main$F = vue.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
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3901
3901
|
], 2);
|
|
3902
3902
|
}
|
|
3903
|
-
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
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 vue.computed(() => vue.toValue(options.disabled) ? sourceVal() : outputRef.value);
|
|
4817
4817
|
}
|
|
4818
|
-
const _sfc_main$
|
|
4818
|
+
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
4819
4819
|
__name: "BasicCountTo",
|
|
4820
4820
|
props: {
|
|
4821
4821
|
startValue: { default: 0 },
|
|
@@ -4876,8 +4876,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
4876
4876
|
};
|
|
4877
4877
|
}
|
|
4878
4878
|
});
|
|
4879
|
-
const XBasicCountTo = utils.withInstall(_sfc_main$
|
|
4880
|
-
const _sfc_main$
|
|
4879
|
+
const XBasicCountTo = utils.withInstall(_sfc_main$E);
|
|
4880
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
4881
4881
|
__name: "BasicDatePicker",
|
|
4882
4882
|
props: {
|
|
4883
4883
|
disabled: { type: Boolean, default: false },
|
|
@@ -4937,7 +4937,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
4937
4937
|
};
|
|
4938
4938
|
}
|
|
4939
4939
|
});
|
|
4940
|
-
const XBasicDatePicker = utils.withInstall(_sfc_main$
|
|
4940
|
+
const XBasicDatePicker = utils.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$
|
|
4987
|
+
const _sfc_main$C = /* @__PURE__ */ vue.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__ */ vue.defineComponent({
|
|
|
5287
5287
|
};
|
|
5288
5288
|
}
|
|
5289
5289
|
});
|
|
5290
|
-
const XBasicDragVerify = utils.withInstall(_sfc_main$
|
|
5290
|
+
const XBasicDragVerify = utils.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$
|
|
5306
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
5307
5307
|
name: "BasicHelp",
|
|
5308
5308
|
components: {
|
|
5309
5309
|
XBasicSvgIcon
|
|
@@ -5349,8 +5349,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
5349
5349
|
});
|
|
5350
5350
|
}
|
|
5351
5351
|
});
|
|
5352
|
-
const XBasicHelp = utils.withInstall(_sfc_main$
|
|
5353
|
-
const _sfc_main$
|
|
5352
|
+
const XBasicHelp = utils.withInstall(_sfc_main$B);
|
|
5353
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
5354
5354
|
__name: "BasicTitle",
|
|
5355
5355
|
props: {
|
|
5356
5356
|
helpMessage: {},
|
|
@@ -5393,12 +5393,12 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5393
5393
|
};
|
|
5394
5394
|
}
|
|
5395
5395
|
});
|
|
5396
|
-
const XBasicTitle = utils.withInstall(_sfc_main$
|
|
5396
|
+
const XBasicTitle = utils.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$
|
|
5401
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
5402
5402
|
__name: "BasicDrawer",
|
|
5403
5403
|
props: {
|
|
5404
5404
|
showCancelBtn: { type: Boolean, default: true },
|
|
@@ -5572,7 +5572,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
5572
5572
|
};
|
|
5573
5573
|
}
|
|
5574
5574
|
});
|
|
5575
|
-
const XBasicDrawer = utils.withInstall(_sfc_main$
|
|
5575
|
+
const XBasicDrawer = utils.withInstall(_sfc_main$z);
|
|
5576
5576
|
const basicEditBatchKey = Symbol("basic-edit-batch");
|
|
5577
5577
|
const createBasicEditBatchContext = (props) => {
|
|
5578
5578
|
return vue.provide(basicEditBatchKey, props);
|
|
@@ -5581,7 +5581,7 @@ const useBasicEditBatchContext = () => {
|
|
|
5581
5581
|
return vue.inject(basicEditBatchKey);
|
|
5582
5582
|
};
|
|
5583
5583
|
const _hoisted_1$8 = ["disabled"];
|
|
5584
|
-
const _sfc_main$
|
|
5584
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
5585
5585
|
__name: "EditBatchAction",
|
|
5586
5586
|
props: {
|
|
5587
5587
|
disabled: { type: Boolean, default: false },
|
|
@@ -5641,7 +5641,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
5641
5641
|
};
|
|
5642
5642
|
}
|
|
5643
5643
|
});
|
|
5644
|
-
const _sfc_main$
|
|
5644
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
5645
5645
|
__name: "BasicHidden",
|
|
5646
5646
|
props: {
|
|
5647
5647
|
value: {},
|
|
@@ -5668,7 +5668,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
5668
5668
|
};
|
|
5669
5669
|
}
|
|
5670
5670
|
});
|
|
5671
|
-
const XBasicHidden = utils.withInstall(_sfc_main$
|
|
5671
|
+
const XBasicHidden = utils.withInstall(_sfc_main$x);
|
|
5672
5672
|
const basicRadioGroupKey = Symbol("basic-radio-group");
|
|
5673
5673
|
const createBasicRadioGroupContext = (props) => {
|
|
5674
5674
|
return vue.provide(basicRadioGroupKey, props);
|
|
@@ -5936,7 +5936,7 @@ const BasicRadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
5936
5936
|
}
|
|
5937
5937
|
});
|
|
5938
5938
|
const XBasicRadioGroup = utils.withInstall(BasicRadioGroup);
|
|
5939
|
-
const _sfc_main$
|
|
5939
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
5940
5940
|
...{
|
|
5941
5941
|
inheritAttrs: false
|
|
5942
5942
|
},
|
|
@@ -6055,7 +6055,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
6055
6055
|
}
|
|
6056
6056
|
});
|
|
6057
6057
|
const basicSelectProps = {};
|
|
6058
|
-
const XBasicSelect = utils.withInstall(_sfc_main$
|
|
6058
|
+
const XBasicSelect = utils.withInstall(_sfc_main$w);
|
|
6059
6059
|
const componentMap$1 = /* @__PURE__ */ new Map();
|
|
6060
6060
|
componentMap$1.set("Input", naiveUi.NInput);
|
|
6061
6061
|
componentMap$1.set("InputNumber", naiveUi.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]" && !vue.isVNode(s);
|
|
6136
6136
|
}
|
|
6137
|
-
const _sfc_main$
|
|
6137
|
+
const _sfc_main$v = /* @__PURE__ */ vue.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$
|
|
6875
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
6876
6876
|
__name: "BasicEditBatch",
|
|
6877
6877
|
props: {
|
|
6878
6878
|
name: {},
|
|
@@ -7002,7 +7002,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
7002
7002
|
options: vue.unref(getOptions)
|
|
7003
7003
|
}, null, 8, ["value", "options"])
|
|
7004
7004
|
], 2),
|
|
7005
|
-
schemaItemRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7005
|
+
schemaItemRef.value ? (vue.openBlock(), vue.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__ */ vue.defineComponent({
|
|
|
7019
7019
|
};
|
|
7020
7020
|
})
|
|
7021
7021
|
]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : vue.createCommentVNode("", true),
|
|
7022
|
-
vue.createVNode(_sfc_main$
|
|
7022
|
+
vue.createVNode(_sfc_main$y, vue.normalizeProps(vue.guardReactiveProps(getEditBatchActionBindProps.value)), vue.createSlots({ _: 2 }, [
|
|
7023
7023
|
vue.renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
|
|
7024
7024
|
return {
|
|
7025
7025
|
name: item,
|
|
@@ -7033,7 +7033,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
7033
7033
|
};
|
|
7034
7034
|
}
|
|
7035
7035
|
});
|
|
7036
|
-
const XBasicEditBatch = utils.withInstall(_sfc_main$
|
|
7036
|
+
const XBasicEditBatch = utils.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 vue.inject(basicFormKey);
|
|
7086
7086
|
};
|
|
7087
|
-
const _sfc_main$
|
|
7087
|
+
const _sfc_main$t = /* @__PURE__ */ vue.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$
|
|
7227
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
7228
7228
|
name: "BasicScrollText",
|
|
7229
7229
|
props: basicScrollTextProps,
|
|
7230
7230
|
setup(props, {
|
|
@@ -7286,7 +7286,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
7286
7286
|
}, [content()]) : null])]);
|
|
7287
7287
|
}
|
|
7288
7288
|
});
|
|
7289
|
-
const XBasicScrollText = utils.withInstall(_sfc_main$
|
|
7289
|
+
const XBasicScrollText = utils.withInstall(_sfc_main$s);
|
|
7290
7290
|
const componentMap = /* @__PURE__ */ new Map();
|
|
7291
7291
|
componentMap.set("Input", naiveUi.NInput);
|
|
7292
7292
|
componentMap.set("InputNumber", naiveUi.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]" && !vue.isVNode(s);
|
|
7387
7387
|
}
|
|
7388
|
-
const _sfc_main$
|
|
7388
|
+
const _sfc_main$r = /* @__PURE__ */ vue.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$
|
|
8488
|
+
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
8489
8489
|
__name: "BasicForm",
|
|
8490
8490
|
props: {
|
|
8491
8491
|
card: { type: Boolean, default: false },
|
|
@@ -8676,7 +8676,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
8676
8676
|
default: vue.withCtx(() => [
|
|
8677
8677
|
vue.renderSlot(_ctx.$slots, "formHeader"),
|
|
8678
8678
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getSchema), (schema) => {
|
|
8679
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8679
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$r, {
|
|
8680
8680
|
key: schema.field,
|
|
8681
8681
|
"is-advanced": vue.unref(fieldsIsAdvancedMap)[schema.field],
|
|
8682
8682
|
"form-action-type": formActionType,
|
|
@@ -8696,7 +8696,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
8696
8696
|
})
|
|
8697
8697
|
]), 1032, ["is-advanced", "schema", "form-props", "all-default-values", "form-model"]);
|
|
8698
8698
|
}), 128)),
|
|
8699
|
-
vue.createVNode(_sfc_main$
|
|
8699
|
+
vue.createVNode(_sfc_main$t, vue.mergeProps(getFormActionBindProps.value, { onToggleAdvanced: vue.unref(handleToggleAdvanced) }), vue.createSlots({ _: 2 }, [
|
|
8700
8700
|
vue.renderList(["resetBefore", "submitBefore", "advanceBefore", "advanceAfter"], (item) => {
|
|
8701
8701
|
return {
|
|
8702
8702
|
name: item,
|
|
@@ -8717,8 +8717,8 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
8717
8717
|
};
|
|
8718
8718
|
}
|
|
8719
8719
|
});
|
|
8720
|
-
const XBasicForm = utils.withInstall(_sfc_main$
|
|
8721
|
-
const _sfc_main$
|
|
8720
|
+
const XBasicForm = utils.withInstall(_sfc_main$q);
|
|
8721
|
+
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
8722
8722
|
__name: "BasicGradientTitle",
|
|
8723
8723
|
props: {
|
|
8724
8724
|
text: {}
|
|
@@ -8751,7 +8751,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
8751
8751
|
}
|
|
8752
8752
|
});
|
|
8753
8753
|
const basicGradientTitleProps = {};
|
|
8754
|
-
const XBasicGradientTitle = utils.withInstall(_sfc_main$
|
|
8754
|
+
const XBasicGradientTitle = utils.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$
|
|
12653
|
+
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
12654
12654
|
__name: "BasicIconPicker",
|
|
12655
12655
|
props: {
|
|
12656
12656
|
disabled: { type: Boolean },
|
|
@@ -12880,7 +12880,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
12880
12880
|
};
|
|
12881
12881
|
}
|
|
12882
12882
|
});
|
|
12883
|
-
const XBasicIconPicker = utils.withInstall(_sfc_main$
|
|
12883
|
+
const XBasicIconPicker = utils.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$
|
|
13213
|
+
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
13214
13214
|
__name: "BasicListPage",
|
|
13215
13215
|
props: {
|
|
13216
13216
|
listClassName: {},
|
|
@@ -13379,7 +13379,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
13379
13379
|
};
|
|
13380
13380
|
}
|
|
13381
13381
|
});
|
|
13382
|
-
const XBasicListPage = utils.withInstall(_sfc_main$
|
|
13382
|
+
const XBasicListPage = utils.withInstall(_sfc_main$n);
|
|
13383
13383
|
function createLoadingComponent(options) {
|
|
13384
13384
|
let afterLeaveTimer;
|
|
13385
13385
|
const afterLeaveFlag = vue.ref(false);
|
|
@@ -13648,7 +13648,7 @@ const XBasicLoading = {
|
|
|
13648
13648
|
directive: vLoading,
|
|
13649
13649
|
service: Loading
|
|
13650
13650
|
};
|
|
13651
|
-
const _sfc_main$
|
|
13651
|
+
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
13652
13652
|
__name: "BasicModal",
|
|
13653
13653
|
props: {
|
|
13654
13654
|
width: {},
|
|
@@ -13800,12 +13800,12 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
13800
13800
|
}
|
|
13801
13801
|
});
|
|
13802
13802
|
const basicModalProps = {};
|
|
13803
|
-
const XBasicModal = utils.withInstall(_sfc_main$
|
|
13803
|
+
const XBasicModal = utils.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$
|
|
13808
|
+
const _sfc_main$l = /* @__PURE__ */ vue.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 = vue.createVNode(_sfc_main$
|
|
13995
|
+
const vm = vue.createVNode(_sfc_main$l, props, utils.isFunction(props.message) ? props.message : vue.isVNode(props.message) ? () => props.message : null);
|
|
13996
13996
|
vm.appContext = utils.isUndefined(context) ? notify._context : context;
|
|
13997
13997
|
vm.props.onDestroy = () => {
|
|
13998
13998
|
vue.render(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$
|
|
14053
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
14054
14054
|
__name: "BasicPage",
|
|
14055
14055
|
props: {
|
|
14056
14056
|
title: {},
|
|
@@ -14150,8 +14150,8 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
14150
14150
|
};
|
|
14151
14151
|
}
|
|
14152
14152
|
});
|
|
14153
|
-
const XBasicPage = utils.withInstall(_sfc_main$
|
|
14154
|
-
const _sfc_main$
|
|
14153
|
+
const XBasicPage = utils.withInstall(_sfc_main$k);
|
|
14154
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
14155
14155
|
__name: "BasicPanel",
|
|
14156
14156
|
props: {
|
|
14157
14157
|
title: {},
|
|
@@ -14188,7 +14188,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
14188
14188
|
};
|
|
14189
14189
|
}
|
|
14190
14190
|
});
|
|
14191
|
-
const XBasicPanel = utils.withInstall(_sfc_main$
|
|
14191
|
+
const XBasicPanel = utils.withInstall(_sfc_main$j);
|
|
14192
14192
|
const regionJson = {
|
|
14193
14193
|
"110000": "北京市",
|
|
14194
14194
|
"110100": "市辖区",
|
|
@@ -18195,7 +18195,7 @@ const BasicRow = /* @__PURE__ */ vue.defineComponent({
|
|
|
18195
18195
|
}
|
|
18196
18196
|
});
|
|
18197
18197
|
const XBasicRow = utils.withInstall(BasicRow);
|
|
18198
|
-
const _sfc_main$
|
|
18198
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
18199
18199
|
__name: "BasicSubPanel",
|
|
18200
18200
|
props: {
|
|
18201
18201
|
title: {}
|
|
@@ -18231,7 +18231,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
18231
18231
|
}
|
|
18232
18232
|
});
|
|
18233
18233
|
const basicSubPanelProps = {};
|
|
18234
|
-
const XBasicSubPanel = utils.withInstall(_sfc_main$
|
|
18234
|
+
const XBasicSubPanel = utils.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$
|
|
19102
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
19103
19103
|
__name: "BasicTable",
|
|
19104
19104
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
19105
19105
|
layouts: {},
|
|
@@ -19553,8 +19553,8 @@ const vxeTableFormatter = {
|
|
|
19553
19553
|
}
|
|
19554
19554
|
};
|
|
19555
19555
|
vxeTable.VxeUI.formats.mixin(vxeTableFormatter);
|
|
19556
|
-
const XBasicTable = utils.withInstall(_sfc_main$
|
|
19557
|
-
const _sfc_main$
|
|
19556
|
+
const XBasicTable = utils.withInstall(_sfc_main$h);
|
|
19557
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
19558
19558
|
__name: "BasicTag",
|
|
19559
19559
|
props: {
|
|
19560
19560
|
tagType: { type: [Number, Boolean] },
|
|
@@ -19579,7 +19579,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19579
19579
|
};
|
|
19580
19580
|
}
|
|
19581
19581
|
});
|
|
19582
|
-
const XBasicTag = utils.withInstall(_sfc_main$
|
|
19582
|
+
const XBasicTag = utils.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__ */ vue.defineComponent({
|
|
|
21316
21316
|
const XBasicUploadDragger = utils.withInstall(BasicUploadDragger);
|
|
21317
21317
|
const _hoisted_1$4 = ["title"];
|
|
21318
21318
|
const _hoisted_2$1 = ["title"];
|
|
21319
|
-
const _sfc_main$
|
|
21319
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
21320
21320
|
__name: "BasicViewBar",
|
|
21321
21321
|
props: {
|
|
21322
21322
|
fixed: { type: Boolean },
|
|
@@ -21428,8 +21428,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
21428
21428
|
};
|
|
21429
21429
|
}
|
|
21430
21430
|
});
|
|
21431
|
-
const XBasicViewBar = utils.withInstall(_sfc_main$
|
|
21432
|
-
const _sfc_main$
|
|
21431
|
+
const XBasicViewBar = utils.withInstall(_sfc_main$f);
|
|
21432
|
+
const _sfc_main$e = vue.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$
|
|
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$
|
|
21650
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
21651
21651
|
...{
|
|
21652
21652
|
name: "VTreeNode"
|
|
21653
21653
|
},
|
|
@@ -21961,7 +21961,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
21961
21961
|
};
|
|
21962
21962
|
}
|
|
21963
21963
|
});
|
|
21964
|
-
const XTreeNode = utils.withInstall(_sfc_main$
|
|
21964
|
+
const XTreeNode = utils.withInstall(_sfc_main$d);
|
|
21965
21965
|
const useExpandAnimation = (renderNodesRef, renderStartRef, props) => {
|
|
21966
21966
|
const expandAnimationStart = vue.ref(false);
|
|
21967
21967
|
const expandAnimationReady = vue.ref(false);
|
|
@@ -23411,7 +23411,7 @@ const pickReadonly = (obj, ...keys) => {
|
|
|
23411
23411
|
});
|
|
23412
23412
|
return picked;
|
|
23413
23413
|
};
|
|
23414
|
-
const _sfc_main$
|
|
23414
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
23415
23415
|
...{
|
|
23416
23416
|
name: "VTree",
|
|
23417
23417
|
inheritAttrs: false
|
|
@@ -23900,7 +23900,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
23900
23900
|
};
|
|
23901
23901
|
}
|
|
23902
23902
|
});
|
|
23903
|
-
const XTree = utils.withInstall(_sfc_main$
|
|
23903
|
+
const XTree = utils.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$
|
|
23989
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
23990
23990
|
...{
|
|
23991
23991
|
name: "VTreeSearch",
|
|
23992
23992
|
inheritAttrs: false
|
|
@@ -24296,7 +24296,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
24296
24296
|
};
|
|
24297
24297
|
}
|
|
24298
24298
|
});
|
|
24299
|
-
const XTreeSearch = utils.withInstall(_sfc_main$
|
|
24299
|
+
const XTreeSearch = utils.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$
|
|
24371
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
24372
24372
|
...{
|
|
24373
24373
|
name: "VTreeDrop",
|
|
24374
24374
|
inheritAttrs: false
|
|
@@ -24733,7 +24733,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
24733
24733
|
};
|
|
24734
24734
|
}
|
|
24735
24735
|
});
|
|
24736
|
-
const XTreeDrop = utils.withInstall(_sfc_main$
|
|
24736
|
+
const XTreeDrop = utils.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$
|
|
24800
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
24801
24801
|
__name: "BasicButtonCreate",
|
|
24802
24802
|
emits: ["click"],
|
|
24803
24803
|
setup(__props, { emit: __emit }) {
|
|
@@ -24822,7 +24822,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
24822
24822
|
};
|
|
24823
24823
|
}
|
|
24824
24824
|
});
|
|
24825
|
-
const _sfc_main$
|
|
24825
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
24826
24826
|
__name: "BasicButtonDelete",
|
|
24827
24827
|
emits: ["click"],
|
|
24828
24828
|
setup(__props, { emit: __emit }) {
|
|
@@ -24847,7 +24847,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
24847
24847
|
};
|
|
24848
24848
|
}
|
|
24849
24849
|
});
|
|
24850
|
-
const _sfc_main$
|
|
24850
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
24851
24851
|
__name: "BasicButtonEdit",
|
|
24852
24852
|
emits: ["click"],
|
|
24853
24853
|
setup(__props, { emit: __emit }) {
|
|
@@ -24872,7 +24872,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
24872
24872
|
};
|
|
24873
24873
|
}
|
|
24874
24874
|
});
|
|
24875
|
-
const _sfc_main$
|
|
24875
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
24876
24876
|
__name: "BasicButtonExport",
|
|
24877
24877
|
props: {
|
|
24878
24878
|
href: {},
|
|
@@ -24924,7 +24924,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
24924
24924
|
}
|
|
24925
24925
|
});
|
|
24926
24926
|
const _hoisted_1 = ["multiple", "name", "accept"];
|
|
24927
|
-
const _sfc_main$
|
|
24927
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
24928
24928
|
__name: "BasicButtonImport",
|
|
24929
24929
|
props: {
|
|
24930
24930
|
name: { default: "file" },
|
|
@@ -25015,8 +25015,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
25015
25015
|
};
|
|
25016
25016
|
}
|
|
25017
25017
|
});
|
|
25018
|
-
const BasicButtonImport = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25019
|
-
const _sfc_main$
|
|
25018
|
+
const BasicButtonImport = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-826acb65"]]);
|
|
25019
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
25020
25020
|
__name: "BasicButtonPrint",
|
|
25021
25021
|
emits: ["click"],
|
|
25022
25022
|
setup(__props, { emit: __emit }) {
|
|
@@ -25041,13 +25041,13 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
25041
25041
|
};
|
|
25042
25042
|
}
|
|
25043
25043
|
});
|
|
25044
|
-
const XBasicButtonCreate = utils.withInstall(_sfc_main$
|
|
25045
|
-
const XBasicButtonEdit = utils.withInstall(_sfc_main$
|
|
25046
|
-
const XBasicButtonDelete = utils.withInstall(_sfc_main$
|
|
25047
|
-
const XBasicButtonExport = utils.withInstall(_sfc_main$
|
|
25044
|
+
const XBasicButtonCreate = utils.withInstall(_sfc_main$9);
|
|
25045
|
+
const XBasicButtonEdit = utils.withInstall(_sfc_main$7);
|
|
25046
|
+
const XBasicButtonDelete = utils.withInstall(_sfc_main$8);
|
|
25047
|
+
const XBasicButtonExport = utils.withInstall(_sfc_main$6);
|
|
25048
25048
|
const XBasicButtonImport = utils.withInstall(BasicButtonImport);
|
|
25049
|
-
const XBasicButtonPrint = utils.withInstall(_sfc_main$
|
|
25050
|
-
const _sfc_main$
|
|
25049
|
+
const XBasicButtonPrint = utils.withInstall(_sfc_main$4);
|
|
25050
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
25051
25051
|
__name: "BasicDrawerFooter",
|
|
25052
25052
|
props: {
|
|
25053
25053
|
showDeleteButton: { type: Boolean, default: false },
|
|
@@ -25124,8 +25124,8 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
25124
25124
|
};
|
|
25125
25125
|
}
|
|
25126
25126
|
});
|
|
25127
|
-
const XBasicDrawerFooter = utils.withInstall(_sfc_main$
|
|
25128
|
-
const _sfc_main$
|
|
25127
|
+
const XBasicDrawerFooter = utils.withInstall(_sfc_main$3);
|
|
25128
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
25129
25129
|
__name: "BasicMasterTrigger",
|
|
25130
25130
|
props: {
|
|
25131
25131
|
value: {},
|
|
@@ -25189,8 +25189,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
25189
25189
|
};
|
|
25190
25190
|
}
|
|
25191
25191
|
});
|
|
25192
|
-
const XBasicMasterTrigger = utils.withInstall(_sfc_main$
|
|
25193
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
25192
|
+
const XBasicMasterTrigger = utils.withInstall(_sfc_main$2);
|
|
25193
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
25194
25194
|
__name: "BasicPanelPage",
|
|
25195
25195
|
props: {
|
|
25196
25196
|
autoContentHeight: { type: Boolean, default: true }
|
|
@@ -25261,7 +25261,142 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
25261
25261
|
};
|
|
25262
25262
|
}
|
|
25263
25263
|
});
|
|
25264
|
-
const XBasicPanelPage = utils.withInstall(_sfc_main);
|
|
25264
|
+
const XBasicPanelPage = utils.withInstall(_sfc_main$1);
|
|
25265
|
+
const _sfc_main = /* @__PURE__ */ vue.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 vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), vue.mergeProps(props, {
|
|
25348
|
+
class: vue.unref(b)(),
|
|
25349
|
+
onClick: onClickHandler
|
|
25350
|
+
}), {
|
|
25351
|
+
default: vue.withCtx(() => [
|
|
25352
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
25353
|
+
]),
|
|
25354
|
+
_: 3
|
|
25355
|
+
}, 16, ["class"]);
|
|
25356
|
+
};
|
|
25357
|
+
}
|
|
25358
|
+
});
|
|
25359
|
+
const XBasicTriggerButton = utils.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
|
Object.defineProperty(exports, "UIGlobal", {
|
|
25267
25402
|
enumerable: true,
|
|
@@ -25348,6 +25483,7 @@ exports.XBasicTable = XBasicTable;
|
|
|
25348
25483
|
exports.XBasicTag = XBasicTag;
|
|
25349
25484
|
exports.XBasicText = XBasicText;
|
|
25350
25485
|
exports.XBasicTitle = XBasicTitle;
|
|
25486
|
+
exports.XBasicTriggerButton = XBasicTriggerButton;
|
|
25351
25487
|
exports.XBasicUpload = XBasicUpload;
|
|
25352
25488
|
exports.XBasicUploadDragger = XBasicUploadDragger;
|
|
25353
25489
|
exports.XBasicViewBar = XBasicViewBar;
|
|
@@ -25357,6 +25493,8 @@ exports.XTreeDrop = XTreeDrop;
|
|
|
25357
25493
|
exports.XTreeNode = XTreeNode;
|
|
25358
25494
|
exports.XTreeSearch = XTreeSearch;
|
|
25359
25495
|
exports.ZINDEX_INJECTION_KEY = ZINDEX_INJECTION_KEY;
|
|
25496
|
+
exports.basicButtonClickTrigger = basicButtonClickTrigger;
|
|
25497
|
+
exports.basicButtonHandler = basicButtonHandler;
|
|
25360
25498
|
exports.basicCascaderProps = basicCascaderProps;
|
|
25361
25499
|
exports.basicCheckboxGroupProps = basicCheckboxGroupProps;
|
|
25362
25500
|
exports.basicCheckboxProps = basicCheckboxProps;
|