@maxax/ui 1.0.2 → 1.0.3
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-drawer-footer/BasicDrawerFooter.vue.d.ts +51 -0
- package/dist/components/basic-drawer-footer/BasicDrawerFooter.vue.d.ts.map +1 -0
- package/dist/components/basic-drawer-footer/index.d.ts +8 -0
- package/dist/components/basic-drawer-footer/index.d.ts.map +1 -0
- package/dist/components/basic-drawer-footer/interface.d.ts +14 -0
- package/dist/components/basic-drawer-footer/interface.d.ts.map +1 -0
- package/dist/components/basic-master-trigger/BasicMasterTrigger.vue.d.ts +14 -0
- package/dist/components/basic-master-trigger/BasicMasterTrigger.vue.d.ts.map +1 -0
- package/dist/components/basic-master-trigger/index.d.ts +8 -0
- package/dist/components/basic-master-trigger/index.d.ts.map +1 -0
- package/dist/components/basic-master-trigger/interface.d.ts +11 -0
- package/dist/components/basic-master-trigger/interface.d.ts.map +1 -0
- package/dist/components/basic-panel-page/BasicPanelPage.vue.d.ts +39 -0
- package/dist/components/basic-panel-page/BasicPanelPage.vue.d.ts.map +1 -0
- package/dist/components/basic-panel-page/index.d.ts +8 -0
- package/dist/components/basic-panel-page/index.d.ts.map +1 -0
- package/dist/components/basic-panel-page/interface.d.ts +4 -0
- package/dist/components/basic-panel-page/interface.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +314 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +314 -96
- 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 +4 -1
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.mjs +4 -1
- package/dist/locales.mjs.map +1 -1
- package/dist/{utils-CCNONbDL.js → utils-Cz4cXLO4.js} +4 -1
- package/dist/utils-Cz4cXLO4.js.map +1 -0
- package/dist/{utils-pcMeUjXb.cjs → utils-fuChD8nl.cjs} +4 -1
- package/dist/utils-fuChD8nl.cjs.map +1 -0
- package/package.json +3 -3
- package/dist/utils-CCNONbDL.js.map +0 -1
- package/dist/utils-pcMeUjXb.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-
|
|
5
|
+
import { b as buildLocaleContext, z as zhCN } from "./utils-Cz4cXLO4.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";
|
|
@@ -2297,7 +2297,7 @@ const Icon = defineComponent((props, { emit }) => {
|
|
|
2297
2297
|
emits: ["load"]
|
|
2298
2298
|
});
|
|
2299
2299
|
const _hoisted_1$c = ["xlink:href"];
|
|
2300
|
-
const _sfc_main$
|
|
2300
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
2301
2301
|
__name: "BasicSvgIcon",
|
|
2302
2302
|
props: {
|
|
2303
2303
|
icon: {},
|
|
@@ -2342,8 +2342,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
2342
2342
|
};
|
|
2343
2343
|
}
|
|
2344
2344
|
});
|
|
2345
|
-
const XBasicSvgIcon = withInstall(_sfc_main$
|
|
2346
|
-
const _sfc_main$
|
|
2345
|
+
const XBasicSvgIcon = withInstall(_sfc_main$N);
|
|
2346
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
2347
2347
|
__name: "BasicArrow",
|
|
2348
2348
|
props: {
|
|
2349
2349
|
expand: { type: Boolean },
|
|
@@ -2375,8 +2375,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
2375
2375
|
};
|
|
2376
2376
|
}
|
|
2377
2377
|
});
|
|
2378
|
-
const XBasicArrow = withInstall(_sfc_main$
|
|
2379
|
-
const _sfc_main$
|
|
2378
|
+
const XBasicArrow = withInstall(_sfc_main$M);
|
|
2379
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
2380
2380
|
__name: "BasicButton",
|
|
2381
2381
|
props: {
|
|
2382
2382
|
size: {},
|
|
@@ -2431,7 +2431,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
2431
2431
|
};
|
|
2432
2432
|
}
|
|
2433
2433
|
});
|
|
2434
|
-
const XBasicButton = withInstall(_sfc_main$
|
|
2434
|
+
const XBasicButton = withInstall(_sfc_main$L);
|
|
2435
2435
|
/**
|
|
2436
2436
|
* @vue/shared v3.5.24
|
|
2437
2437
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -2665,7 +2665,7 @@ const basicMessageBoxProps = {
|
|
|
2665
2665
|
default: ""
|
|
2666
2666
|
}
|
|
2667
2667
|
};
|
|
2668
|
-
const _sfc_main$
|
|
2668
|
+
const _sfc_main$K = defineComponent({
|
|
2669
2669
|
components: {
|
|
2670
2670
|
NButton,
|
|
2671
2671
|
NInput,
|
|
@@ -3073,7 +3073,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3073
3073
|
_: 3
|
|
3074
3074
|
});
|
|
3075
3075
|
}
|
|
3076
|
-
const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3076
|
+
const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$2]]);
|
|
3077
3077
|
const messageInstance = /* @__PURE__ */ new Map();
|
|
3078
3078
|
const getAppendToElement = (props) => {
|
|
3079
3079
|
let appendTo = document.body;
|
|
@@ -3202,7 +3202,7 @@ const XBasicMessageBox = $MessageBox;
|
|
|
3202
3202
|
function _isSlot$3(s) {
|
|
3203
3203
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
3204
3204
|
}
|
|
3205
|
-
const _sfc_main$
|
|
3205
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
3206
3206
|
name: "ButtonGroupItem",
|
|
3207
3207
|
props: {
|
|
3208
3208
|
schema: {
|
|
@@ -3555,7 +3555,7 @@ function useButtonGroupSchema({ getProps, schemaRef }) {
|
|
|
3555
3555
|
});
|
|
3556
3556
|
return { getSchema };
|
|
3557
3557
|
}
|
|
3558
|
-
const _sfc_main$
|
|
3558
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
3559
3559
|
__name: "BasicButtonGroup",
|
|
3560
3560
|
props: {
|
|
3561
3561
|
showReturnButton: { type: Boolean },
|
|
@@ -3636,7 +3636,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
3636
3636
|
return (_ctx, _cache) => {
|
|
3637
3637
|
return openBlock(), createElementBlock("div", mergeProps({ class: unref(getWrapperClass) }, getBindValue.value), [
|
|
3638
3638
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
|
|
3639
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3639
|
+
return openBlock(), createBlock(_sfc_main$J, {
|
|
3640
3640
|
key: schema.field,
|
|
3641
3641
|
schema,
|
|
3642
3642
|
"button-group-action-type": buttonGroupActionType,
|
|
@@ -3657,9 +3657,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
3659
|
});
|
|
3660
|
-
const XBasicButtonGroup = withInstall(_sfc_main$
|
|
3660
|
+
const XBasicButtonGroup = withInstall(_sfc_main$I);
|
|
3661
3661
|
const _hoisted_1$a = ["title"];
|
|
3662
|
-
const _sfc_main$
|
|
3662
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
3663
3663
|
__name: "BasicText",
|
|
3664
3664
|
props: {
|
|
3665
3665
|
icon: { default: "" },
|
|
@@ -3697,7 +3697,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
3697
3697
|
class: normalizeClass(basicTextClass.value),
|
|
3698
3698
|
title: unref(isString)(unref(mergedValueRef)) ? unref(mergedValueRef) : void 0
|
|
3699
3699
|
}, [
|
|
3700
|
-
__props.icon ? (openBlock(), createBlock(_sfc_main$
|
|
3700
|
+
__props.icon ? (openBlock(), createBlock(_sfc_main$N, {
|
|
3701
3701
|
key: 0,
|
|
3702
3702
|
icon: __props.icon,
|
|
3703
3703
|
class: normalizeClass(__props.iconClass),
|
|
@@ -3710,8 +3710,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
3710
3710
|
};
|
|
3711
3711
|
}
|
|
3712
3712
|
});
|
|
3713
|
-
const XBasicText = withInstall(_sfc_main$
|
|
3714
|
-
const _sfc_main$
|
|
3713
|
+
const XBasicText = withInstall(_sfc_main$H);
|
|
3714
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
3715
3715
|
__name: "BasicCard",
|
|
3716
3716
|
props: {
|
|
3717
3717
|
title: {},
|
|
@@ -3750,8 +3750,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
3750
3750
|
};
|
|
3751
3751
|
}
|
|
3752
3752
|
});
|
|
3753
|
-
const XBasicCard = withInstall(_sfc_main$
|
|
3754
|
-
const _sfc_main$
|
|
3753
|
+
const XBasicCard = withInstall(_sfc_main$G);
|
|
3754
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
3755
3755
|
...{
|
|
3756
3756
|
inheritAttrs: false
|
|
3757
3757
|
},
|
|
@@ -3856,7 +3856,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
3856
3856
|
}
|
|
3857
3857
|
});
|
|
3858
3858
|
const basicCascaderProps = {};
|
|
3859
|
-
const XBasicCascader = withInstall(_sfc_main$
|
|
3859
|
+
const XBasicCascader = withInstall(_sfc_main$F);
|
|
3860
3860
|
const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
|
|
3861
3861
|
const createBasicCheckboxGroupContext = (props) => {
|
|
3862
3862
|
return provide(basicCheckboxGroupKey, props);
|
|
@@ -3877,7 +3877,7 @@ const IconCheck = /* @__PURE__ */ defineComponent({
|
|
|
3877
3877
|
}, null)]);
|
|
3878
3878
|
}
|
|
3879
3879
|
});
|
|
3880
|
-
const _sfc_main$
|
|
3880
|
+
const _sfc_main$E = defineComponent({
|
|
3881
3881
|
name: "IconHover",
|
|
3882
3882
|
props: {
|
|
3883
3883
|
disabled: {
|
|
@@ -3905,7 +3905,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3905
3905
|
renderSlot(_ctx.$slots, "default")
|
|
3906
3906
|
], 2);
|
|
3907
3907
|
}
|
|
3908
|
-
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3908
|
+
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$1]]);
|
|
3909
3909
|
const basicCheckboxProps = {
|
|
3910
3910
|
/**
|
|
3911
3911
|
* @zh 绑定值
|
|
@@ -4829,7 +4829,7 @@ function useTransition(source, options = {}) {
|
|
|
4829
4829
|
});
|
|
4830
4830
|
return computed(() => toValue(options.disabled) ? sourceVal() : outputRef.value);
|
|
4831
4831
|
}
|
|
4832
|
-
const _sfc_main$
|
|
4832
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
4833
4833
|
__name: "BasicCountTo",
|
|
4834
4834
|
props: {
|
|
4835
4835
|
startValue: { default: 0 },
|
|
@@ -4890,8 +4890,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
4890
4890
|
};
|
|
4891
4891
|
}
|
|
4892
4892
|
});
|
|
4893
|
-
const XBasicCountTo = withInstall(_sfc_main$
|
|
4894
|
-
const _sfc_main$
|
|
4893
|
+
const XBasicCountTo = withInstall(_sfc_main$D);
|
|
4894
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
4895
4895
|
__name: "BasicDatePicker",
|
|
4896
4896
|
props: {
|
|
4897
4897
|
disabled: { type: Boolean, default: false },
|
|
@@ -4951,7 +4951,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
4951
4951
|
};
|
|
4952
4952
|
}
|
|
4953
4953
|
});
|
|
4954
|
-
const XBasicDatePicker = withInstall(_sfc_main$
|
|
4954
|
+
const XBasicDatePicker = withInstall(_sfc_main$C);
|
|
4955
4955
|
const basicDragVerifyProps = {
|
|
4956
4956
|
value: {
|
|
4957
4957
|
type: Boolean,
|
|
@@ -4998,7 +4998,7 @@ const basicDragVerifyProps = {
|
|
|
4998
4998
|
default: () => ({})
|
|
4999
4999
|
}
|
|
5000
5000
|
};
|
|
5001
|
-
const _sfc_main$
|
|
5001
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
5002
5002
|
name: "BasicDragVerify",
|
|
5003
5003
|
props: basicDragVerifyProps,
|
|
5004
5004
|
emits: ["success", "update:value", "change", "start", "move", "end"],
|
|
@@ -5301,7 +5301,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
5301
5301
|
};
|
|
5302
5302
|
}
|
|
5303
5303
|
});
|
|
5304
|
-
const XBasicDragVerify = withInstall(_sfc_main$
|
|
5304
|
+
const XBasicDragVerify = withInstall(_sfc_main$B);
|
|
5305
5305
|
const basicHelpProps = {
|
|
5306
5306
|
/**
|
|
5307
5307
|
* Whether to display the serial number
|
|
@@ -5317,7 +5317,7 @@ const basicHelpProps = {
|
|
|
5317
5317
|
default: ""
|
|
5318
5318
|
}
|
|
5319
5319
|
};
|
|
5320
|
-
const _sfc_main$
|
|
5320
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
5321
5321
|
name: "BasicHelp",
|
|
5322
5322
|
components: {
|
|
5323
5323
|
XBasicSvgIcon
|
|
@@ -5363,8 +5363,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
5363
5363
|
});
|
|
5364
5364
|
}
|
|
5365
5365
|
});
|
|
5366
|
-
const XBasicHelp = withInstall(_sfc_main$
|
|
5367
|
-
const _sfc_main$
|
|
5366
|
+
const XBasicHelp = withInstall(_sfc_main$A);
|
|
5367
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
5368
5368
|
__name: "BasicTitle",
|
|
5369
5369
|
props: {
|
|
5370
5370
|
helpMessage: {},
|
|
@@ -5407,12 +5407,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
5407
5407
|
};
|
|
5408
5408
|
}
|
|
5409
5409
|
});
|
|
5410
|
-
const XBasicTitle = withInstall(_sfc_main$
|
|
5410
|
+
const XBasicTitle = withInstall(_sfc_main$z);
|
|
5411
5411
|
const _hoisted_1$9 = {
|
|
5412
5412
|
key: 0,
|
|
5413
5413
|
class: "footer-wrapper"
|
|
5414
5414
|
};
|
|
5415
|
-
const _sfc_main$
|
|
5415
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
5416
5416
|
__name: "BasicDrawer",
|
|
5417
5417
|
props: {
|
|
5418
5418
|
showCancelBtn: { type: Boolean, default: true },
|
|
@@ -5586,7 +5586,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
5586
5586
|
};
|
|
5587
5587
|
}
|
|
5588
5588
|
});
|
|
5589
|
-
const XBasicDrawer = withInstall(_sfc_main$
|
|
5589
|
+
const XBasicDrawer = withInstall(_sfc_main$y);
|
|
5590
5590
|
const basicEditBatchKey = Symbol("basic-edit-batch");
|
|
5591
5591
|
const createBasicEditBatchContext = (props) => {
|
|
5592
5592
|
return provide(basicEditBatchKey, props);
|
|
@@ -5595,7 +5595,7 @@ const useBasicEditBatchContext = () => {
|
|
|
5595
5595
|
return inject(basicEditBatchKey);
|
|
5596
5596
|
};
|
|
5597
5597
|
const _hoisted_1$8 = ["disabled"];
|
|
5598
|
-
const _sfc_main$
|
|
5598
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
5599
5599
|
__name: "EditBatchAction",
|
|
5600
5600
|
props: {
|
|
5601
5601
|
disabled: { type: Boolean, default: false },
|
|
@@ -5655,7 +5655,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
5655
5655
|
};
|
|
5656
5656
|
}
|
|
5657
5657
|
});
|
|
5658
|
-
const _sfc_main$
|
|
5658
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
5659
5659
|
__name: "BasicHidden",
|
|
5660
5660
|
props: {
|
|
5661
5661
|
value: {},
|
|
@@ -5682,7 +5682,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
5682
5682
|
};
|
|
5683
5683
|
}
|
|
5684
5684
|
});
|
|
5685
|
-
const XBasicHidden = withInstall(_sfc_main$
|
|
5685
|
+
const XBasicHidden = withInstall(_sfc_main$w);
|
|
5686
5686
|
const basicRadioGroupKey = Symbol("basic-radio-group");
|
|
5687
5687
|
const createBasicRadioGroupContext = (props) => {
|
|
5688
5688
|
return provide(basicRadioGroupKey, props);
|
|
@@ -5950,7 +5950,7 @@ const BasicRadioGroup = /* @__PURE__ */ defineComponent({
|
|
|
5950
5950
|
}
|
|
5951
5951
|
});
|
|
5952
5952
|
const XBasicRadioGroup = withInstall(BasicRadioGroup);
|
|
5953
|
-
const _sfc_main$
|
|
5953
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
5954
5954
|
...{
|
|
5955
5955
|
inheritAttrs: false
|
|
5956
5956
|
},
|
|
@@ -6069,7 +6069,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
6069
6069
|
}
|
|
6070
6070
|
});
|
|
6071
6071
|
const basicSelectProps = {};
|
|
6072
|
-
const XBasicSelect = withInstall(_sfc_main$
|
|
6072
|
+
const XBasicSelect = withInstall(_sfc_main$v);
|
|
6073
6073
|
const componentMap$1 = /* @__PURE__ */ new Map();
|
|
6074
6074
|
componentMap$1.set("Input", NInput);
|
|
6075
6075
|
componentMap$1.set("InputNumber", NInputNumber);
|
|
@@ -6148,7 +6148,7 @@ function isComponentEditBatchSchema(schema) {
|
|
|
6148
6148
|
function _isSlot$1(s) {
|
|
6149
6149
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
6150
6150
|
}
|
|
6151
|
-
const _sfc_main$
|
|
6151
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
6152
6152
|
name: "BasicEditBatchItem",
|
|
6153
6153
|
components: {
|
|
6154
6154
|
XBasicHelp
|
|
@@ -6886,7 +6886,7 @@ function useEditBatchValues({ getProps, defaultValueRef, getSchema, formModel })
|
|
|
6886
6886
|
}
|
|
6887
6887
|
return { handleFormValues, initDefault };
|
|
6888
6888
|
}
|
|
6889
|
-
const _sfc_main$
|
|
6889
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
6890
6890
|
__name: "BasicEditBatch",
|
|
6891
6891
|
props: {
|
|
6892
6892
|
name: {},
|
|
@@ -7016,7 +7016,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7016
7016
|
options: unref(getOptions)
|
|
7017
7017
|
}, null, 8, ["value", "options"])
|
|
7018
7018
|
], 2),
|
|
7019
|
-
schemaItemRef.value ? (openBlock(), createBlock(_sfc_main$
|
|
7019
|
+
schemaItemRef.value ? (openBlock(), createBlock(_sfc_main$u, {
|
|
7020
7020
|
key: 0,
|
|
7021
7021
|
schema: schemaItemRef.value,
|
|
7022
7022
|
"edit-batch-props": getProps.value,
|
|
@@ -7033,7 +7033,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7033
7033
|
};
|
|
7034
7034
|
})
|
|
7035
7035
|
]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : createCommentVNode("", true),
|
|
7036
|
-
createVNode(_sfc_main$
|
|
7036
|
+
createVNode(_sfc_main$x, normalizeProps(guardReactiveProps(getEditBatchActionBindProps.value)), createSlots({ _: 2 }, [
|
|
7037
7037
|
renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
|
|
7038
7038
|
return {
|
|
7039
7039
|
name: item,
|
|
@@ -7047,7 +7047,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7047
7047
|
};
|
|
7048
7048
|
}
|
|
7049
7049
|
});
|
|
7050
|
-
const XBasicEditBatch = withInstall(_sfc_main$
|
|
7050
|
+
const XBasicEditBatch = withInstall(_sfc_main$t);
|
|
7051
7051
|
const basicFontIconProps = {
|
|
7052
7052
|
icon: {
|
|
7053
7053
|
type: String,
|
|
@@ -7098,7 +7098,7 @@ const createBasicFormContext = (props) => {
|
|
|
7098
7098
|
const useBasicFormContext = () => {
|
|
7099
7099
|
return inject(basicFormKey);
|
|
7100
7100
|
};
|
|
7101
|
-
const _sfc_main$
|
|
7101
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
7102
7102
|
__name: "FormAction",
|
|
7103
7103
|
props: {
|
|
7104
7104
|
showActionButtonGroup: { type: Boolean, default: true },
|
|
@@ -7238,7 +7238,7 @@ const basicScrollTextProps = {
|
|
|
7238
7238
|
default: ""
|
|
7239
7239
|
}
|
|
7240
7240
|
};
|
|
7241
|
-
const _sfc_main$
|
|
7241
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
7242
7242
|
name: "BasicScrollText",
|
|
7243
7243
|
props: basicScrollTextProps,
|
|
7244
7244
|
setup(props, {
|
|
@@ -7300,7 +7300,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
7300
7300
|
}, [content()]) : null])]);
|
|
7301
7301
|
}
|
|
7302
7302
|
});
|
|
7303
|
-
const XBasicScrollText = withInstall(_sfc_main$
|
|
7303
|
+
const XBasicScrollText = withInstall(_sfc_main$r);
|
|
7304
7304
|
const componentMap = /* @__PURE__ */ new Map();
|
|
7305
7305
|
componentMap.set("Input", NInput);
|
|
7306
7306
|
componentMap.set("InputNumber", NInputNumber);
|
|
@@ -7399,7 +7399,7 @@ function isComponentFormSchema(schema) {
|
|
|
7399
7399
|
function _isSlot(s) {
|
|
7400
7400
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
7401
7401
|
}
|
|
7402
|
-
const _sfc_main$
|
|
7402
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
7403
7403
|
name: "BasicFormItem",
|
|
7404
7404
|
components: {
|
|
7405
7405
|
XBasicHelp,
|
|
@@ -8499,7 +8499,7 @@ function useFormValues({ getProps, defaultValueRef, getSchema, formModel }) {
|
|
|
8499
8499
|
}
|
|
8500
8500
|
return { handleFormValues, initDefault };
|
|
8501
8501
|
}
|
|
8502
|
-
const _sfc_main$
|
|
8502
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
8503
8503
|
__name: "BasicForm",
|
|
8504
8504
|
props: {
|
|
8505
8505
|
card: { type: Boolean, default: false },
|
|
@@ -8690,7 +8690,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8690
8690
|
default: withCtx(() => [
|
|
8691
8691
|
renderSlot(_ctx.$slots, "formHeader"),
|
|
8692
8692
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
|
|
8693
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8693
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
8694
8694
|
key: schema.field,
|
|
8695
8695
|
"is-advanced": unref(fieldsIsAdvancedMap)[schema.field],
|
|
8696
8696
|
"form-action-type": formActionType,
|
|
@@ -8710,7 +8710,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8710
8710
|
})
|
|
8711
8711
|
]), 1032, ["is-advanced", "schema", "form-props", "all-default-values", "form-model"]);
|
|
8712
8712
|
}), 128)),
|
|
8713
|
-
createVNode(_sfc_main$
|
|
8713
|
+
createVNode(_sfc_main$s, mergeProps(getFormActionBindProps.value, { onToggleAdvanced: unref(handleToggleAdvanced) }), createSlots({ _: 2 }, [
|
|
8714
8714
|
renderList(["resetBefore", "submitBefore", "advanceBefore", "advanceAfter"], (item) => {
|
|
8715
8715
|
return {
|
|
8716
8716
|
name: item,
|
|
@@ -8731,8 +8731,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8731
8731
|
};
|
|
8732
8732
|
}
|
|
8733
8733
|
});
|
|
8734
|
-
const XBasicForm = withInstall(_sfc_main$
|
|
8735
|
-
const _sfc_main$
|
|
8734
|
+
const XBasicForm = withInstall(_sfc_main$p);
|
|
8735
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
8736
8736
|
__name: "BasicGradientTitle",
|
|
8737
8737
|
props: {
|
|
8738
8738
|
text: {}
|
|
@@ -8765,7 +8765,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8765
8765
|
}
|
|
8766
8766
|
});
|
|
8767
8767
|
const basicGradientTitleProps = {};
|
|
8768
|
-
const XBasicGradientTitle = withInstall(_sfc_main$
|
|
8768
|
+
const XBasicGradientTitle = withInstall(_sfc_main$o);
|
|
8769
8769
|
const basicIconOnlineProps = {
|
|
8770
8770
|
icon: {
|
|
8771
8771
|
type: String,
|
|
@@ -12664,7 +12664,7 @@ const IconJson = {
|
|
|
12664
12664
|
};
|
|
12665
12665
|
const _hoisted_1$7 = { class: "panel-icon-list" };
|
|
12666
12666
|
const _hoisted_2$3 = ["title", "onClick"];
|
|
12667
|
-
const _sfc_main$
|
|
12667
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
12668
12668
|
__name: "BasicIconPicker",
|
|
12669
12669
|
props: {
|
|
12670
12670
|
disabled: { type: Boolean },
|
|
@@ -12894,7 +12894,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
12894
12894
|
};
|
|
12895
12895
|
}
|
|
12896
12896
|
});
|
|
12897
|
-
const XBasicIconPicker = withInstall(_sfc_main$
|
|
12897
|
+
const XBasicIconPicker = withInstall(_sfc_main$n);
|
|
12898
12898
|
const ROW_KEY$1 = "_MAX_ROW_KEY";
|
|
12899
12899
|
const PAGE_SIZE_OPTIONS$1 = [10, 50, 80, 100];
|
|
12900
12900
|
const PAGE_SIZE$1 = 10;
|
|
@@ -13224,7 +13224,7 @@ function usePagination$1(propsRef) {
|
|
|
13224
13224
|
}
|
|
13225
13225
|
return { getPagination, getPaginationInfo, setShowPagination, getShowPagination, setPagination };
|
|
13226
13226
|
}
|
|
13227
|
-
const _sfc_main$
|
|
13227
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
13228
13228
|
__name: "BasicListPage",
|
|
13229
13229
|
props: {
|
|
13230
13230
|
listClassName: {},
|
|
@@ -13393,7 +13393,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13393
13393
|
};
|
|
13394
13394
|
}
|
|
13395
13395
|
});
|
|
13396
|
-
const XBasicListPage = withInstall(_sfc_main$
|
|
13396
|
+
const XBasicListPage = withInstall(_sfc_main$m);
|
|
13397
13397
|
function createLoadingComponent(options) {
|
|
13398
13398
|
let afterLeaveTimer;
|
|
13399
13399
|
const afterLeaveFlag = ref(false);
|
|
@@ -13662,7 +13662,7 @@ const XBasicLoading = {
|
|
|
13662
13662
|
directive: vLoading,
|
|
13663
13663
|
service: Loading
|
|
13664
13664
|
};
|
|
13665
|
-
const _sfc_main$
|
|
13665
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
13666
13666
|
__name: "BasicModal",
|
|
13667
13667
|
props: {
|
|
13668
13668
|
width: {},
|
|
@@ -13814,12 +13814,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13814
13814
|
}
|
|
13815
13815
|
});
|
|
13816
13816
|
const basicModalProps = {};
|
|
13817
|
-
const XBasicModal = withInstall(_sfc_main$
|
|
13817
|
+
const XBasicModal = withInstall(_sfc_main$l);
|
|
13818
13818
|
const _hoisted_1$6 = ["id"];
|
|
13819
13819
|
const _hoisted_2$2 = ["textContent"];
|
|
13820
13820
|
const _hoisted_3 = { key: 0 };
|
|
13821
13821
|
const _hoisted_4 = ["innerHTML"];
|
|
13822
|
-
const _sfc_main$
|
|
13822
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
13823
13823
|
__name: "BasicNotification",
|
|
13824
13824
|
props: {
|
|
13825
13825
|
customClass: { default: "" },
|
|
@@ -14006,7 +14006,7 @@ const notify = (options, context) => {
|
|
|
14006
14006
|
appendTo = document.body;
|
|
14007
14007
|
}
|
|
14008
14008
|
const container = document.createElement("div");
|
|
14009
|
-
const vm = createVNode(_sfc_main$
|
|
14009
|
+
const vm = createVNode(_sfc_main$k, props, isFunction(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
|
|
14010
14010
|
vm.appContext = isUndefined(context) ? notify._context : context;
|
|
14011
14011
|
vm.props.onDestroy = () => {
|
|
14012
14012
|
render$1(null, container);
|
|
@@ -14064,7 +14064,7 @@ notify.closeAll = closeAll;
|
|
|
14064
14064
|
notify._context = null;
|
|
14065
14065
|
const $Notification = notify;
|
|
14066
14066
|
const XBasicNotification = $Notification;
|
|
14067
|
-
const _sfc_main$
|
|
14067
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
14068
14068
|
__name: "BasicPage",
|
|
14069
14069
|
props: {
|
|
14070
14070
|
title: {},
|
|
@@ -14164,8 +14164,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
14164
14164
|
};
|
|
14165
14165
|
}
|
|
14166
14166
|
});
|
|
14167
|
-
const XBasicPage = withInstall(_sfc_main$
|
|
14168
|
-
const _sfc_main$
|
|
14167
|
+
const XBasicPage = withInstall(_sfc_main$j);
|
|
14168
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
14169
14169
|
__name: "BasicPanel",
|
|
14170
14170
|
props: {
|
|
14171
14171
|
title: {},
|
|
@@ -14202,7 +14202,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14202
14202
|
};
|
|
14203
14203
|
}
|
|
14204
14204
|
});
|
|
14205
|
-
const XBasicPanel = withInstall(_sfc_main$
|
|
14205
|
+
const XBasicPanel = withInstall(_sfc_main$i);
|
|
14206
14206
|
const basicRowProps = {
|
|
14207
14207
|
align: String,
|
|
14208
14208
|
justify: String,
|
|
@@ -14346,7 +14346,7 @@ const BasicRow = /* @__PURE__ */ defineComponent({
|
|
|
14346
14346
|
}
|
|
14347
14347
|
});
|
|
14348
14348
|
const XBasicRow = withInstall(BasicRow);
|
|
14349
|
-
const _sfc_main$
|
|
14349
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
14350
14350
|
__name: "BasicSubPanel",
|
|
14351
14351
|
props: {
|
|
14352
14352
|
title: {}
|
|
@@ -14382,7 +14382,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
14382
14382
|
}
|
|
14383
14383
|
});
|
|
14384
14384
|
const basicSubPanelProps = {};
|
|
14385
|
-
const XBasicSubPanel = withInstall(_sfc_main$
|
|
14385
|
+
const XBasicSubPanel = withInstall(_sfc_main$h);
|
|
14386
14386
|
const ROW_KEY = "_MAX_ROW_KEY";
|
|
14387
14387
|
const PAGE_SIZE_OPTIONS = [10, 50, 80, 100];
|
|
14388
14388
|
const PAGE_SIZE = 10;
|
|
@@ -15250,7 +15250,7 @@ const setting = {
|
|
|
15250
15250
|
})
|
|
15251
15251
|
};
|
|
15252
15252
|
const _hoisted_1$5 = { class: "max-table-selection-count" };
|
|
15253
|
-
const _sfc_main$
|
|
15253
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
15254
15254
|
__name: "BasicTable",
|
|
15255
15255
|
props: /* @__PURE__ */ mergeDefaults({
|
|
15256
15256
|
layouts: {},
|
|
@@ -15704,8 +15704,8 @@ const vxeTableFormatter = {
|
|
|
15704
15704
|
}
|
|
15705
15705
|
};
|
|
15706
15706
|
VxeUI2.formats.mixin(vxeTableFormatter);
|
|
15707
|
-
const XBasicTable = withInstall(_sfc_main$
|
|
15708
|
-
const _sfc_main$
|
|
15707
|
+
const XBasicTable = withInstall(_sfc_main$g);
|
|
15708
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
15709
15709
|
__name: "BasicTag",
|
|
15710
15710
|
props: {
|
|
15711
15711
|
tagType: { type: [Number, Boolean] },
|
|
@@ -15730,7 +15730,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
15730
15730
|
};
|
|
15731
15731
|
}
|
|
15732
15732
|
});
|
|
15733
|
-
const XBasicTag = withInstall(_sfc_main$
|
|
15733
|
+
const XBasicTag = withInstall(_sfc_main$f);
|
|
15734
15734
|
const attrAccept = (file, acceptedFiles) => {
|
|
15735
15735
|
if (file && acceptedFiles) {
|
|
15736
15736
|
const acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(",");
|
|
@@ -17467,7 +17467,7 @@ const BasicUploadDragger = /* @__PURE__ */ defineComponent({
|
|
|
17467
17467
|
const XBasicUploadDragger = withInstall(BasicUploadDragger);
|
|
17468
17468
|
const _hoisted_1$4 = ["title"];
|
|
17469
17469
|
const _hoisted_2$1 = ["title"];
|
|
17470
|
-
const _sfc_main$
|
|
17470
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
17471
17471
|
__name: "BasicViewBar",
|
|
17472
17472
|
props: {
|
|
17473
17473
|
fixed: { type: Boolean },
|
|
@@ -17579,8 +17579,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
17579
17579
|
};
|
|
17580
17580
|
}
|
|
17581
17581
|
});
|
|
17582
|
-
const XBasicViewBar = withInstall(_sfc_main$
|
|
17583
|
-
const _sfc_main$
|
|
17582
|
+
const XBasicViewBar = withInstall(_sfc_main$e);
|
|
17583
|
+
const _sfc_main$d = defineComponent({
|
|
17584
17584
|
name: "CLoadingIcon"
|
|
17585
17585
|
});
|
|
17586
17586
|
const _hoisted_1$3 = { viewBox: "0 0 50 50" };
|
|
@@ -17597,7 +17597,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17597
17597
|
}, null, -1)
|
|
17598
17598
|
])]);
|
|
17599
17599
|
}
|
|
17600
|
-
const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17600
|
+
const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render]]);
|
|
17601
17601
|
var ignoreEnum = /* @__PURE__ */ ((ignoreEnum2) => {
|
|
17602
17602
|
ignoreEnum2["none"] = "none";
|
|
17603
17603
|
ignoreEnum2["parents"] = "parents";
|
|
@@ -17798,7 +17798,7 @@ const useTreeNodeCls = (props, dragoverRefs) => {
|
|
|
17798
17798
|
};
|
|
17799
17799
|
const _hoisted_1$2 = ["d", "stroke-width", "stroke", "stroke-dasharray"];
|
|
17800
17800
|
const _hoisted_2 = ["draggable"];
|
|
17801
|
-
const _sfc_main$
|
|
17801
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
17802
17802
|
...{
|
|
17803
17803
|
name: "VTreeNode"
|
|
17804
17804
|
},
|
|
@@ -18112,7 +18112,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18112
18112
|
};
|
|
18113
18113
|
}
|
|
18114
18114
|
});
|
|
18115
|
-
const XTreeNode = withInstall(_sfc_main$
|
|
18115
|
+
const XTreeNode = withInstall(_sfc_main$c);
|
|
18116
18116
|
const useExpandAnimation = (renderNodesRef, renderStartRef, props) => {
|
|
18117
18117
|
const expandAnimationStart = ref(false);
|
|
18118
18118
|
const expandAnimationReady = ref(false);
|
|
@@ -19562,7 +19562,7 @@ const pickReadonly = (obj, ...keys) => {
|
|
|
19562
19562
|
});
|
|
19563
19563
|
return picked;
|
|
19564
19564
|
};
|
|
19565
|
-
const _sfc_main$
|
|
19565
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
19566
19566
|
...{
|
|
19567
19567
|
name: "VTree",
|
|
19568
19568
|
inheritAttrs: false
|
|
@@ -20051,7 +20051,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
20051
20051
|
};
|
|
20052
20052
|
}
|
|
20053
20053
|
});
|
|
20054
|
-
const XTree = withInstall(_sfc_main$
|
|
20054
|
+
const XTree = withInstall(_sfc_main$b);
|
|
20055
20055
|
const useTreeSearchCls = (props, options) => {
|
|
20056
20056
|
const { checkAllStatus, isShowingChecked } = options;
|
|
20057
20057
|
const { b } = useNamespace("tree-search");
|
|
@@ -20137,7 +20137,7 @@ const DEFAULT_TREE_SEARCH_PROPS = {
|
|
|
20137
20137
|
};
|
|
20138
20138
|
const TREE_SEARCH_EVENTS = ["search", ...TREE_EVENTS];
|
|
20139
20139
|
const _hoisted_1$1 = ["placeholder", "disabled"];
|
|
20140
|
-
const _sfc_main$
|
|
20140
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
20141
20141
|
...{
|
|
20142
20142
|
name: "VTreeSearch",
|
|
20143
20143
|
inheritAttrs: false
|
|
@@ -20447,7 +20447,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20447
20447
|
};
|
|
20448
20448
|
}
|
|
20449
20449
|
});
|
|
20450
|
-
const XTreeSearch = withInstall(_sfc_main$
|
|
20450
|
+
const XTreeSearch = withInstall(_sfc_main$a);
|
|
20451
20451
|
const useTreeDropCls = (props, options) => {
|
|
20452
20452
|
const { dropdownVisible, checkedCount, selectedTitle } = options;
|
|
20453
20453
|
const { b } = useNamespace("tree-drop");
|
|
@@ -20519,7 +20519,7 @@ const DEFAULT_TREE_DROP_PROPS = {
|
|
|
20519
20519
|
};
|
|
20520
20520
|
const TREE_SEARCH_API_METHODS = [...TREE_API_METHODS, "clearKeyword", "getKeyword", "search"];
|
|
20521
20521
|
const TREE_DROP_EVENTS = ["clear", "dropdown-visible-change", ...TREE_SEARCH_EVENTS];
|
|
20522
|
-
const _sfc_main$
|
|
20522
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
20523
20523
|
...{
|
|
20524
20524
|
name: "VTreeDrop",
|
|
20525
20525
|
inheritAttrs: false
|
|
@@ -20884,7 +20884,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
20884
20884
|
};
|
|
20885
20885
|
}
|
|
20886
20886
|
});
|
|
20887
|
-
const XTreeDrop = withInstall(_sfc_main$
|
|
20887
|
+
const XTreeDrop = withInstall(_sfc_main$9);
|
|
20888
20888
|
const components = [
|
|
20889
20889
|
XConfigProvider,
|
|
20890
20890
|
XBasicSvgIcon,
|
|
@@ -20946,7 +20946,7 @@ const makeInstaller = (components2 = []) => {
|
|
|
20946
20946
|
};
|
|
20947
20947
|
};
|
|
20948
20948
|
const installer = makeInstaller([...components]);
|
|
20949
|
-
const _sfc_main$
|
|
20949
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
20950
20950
|
__name: "BasicButtonCreate",
|
|
20951
20951
|
emits: ["click"],
|
|
20952
20952
|
setup(__props, { emit: __emit }) {
|
|
@@ -20970,7 +20970,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20970
20970
|
};
|
|
20971
20971
|
}
|
|
20972
20972
|
});
|
|
20973
|
-
const _sfc_main$
|
|
20973
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
20974
20974
|
__name: "BasicButtonDelete",
|
|
20975
20975
|
emits: ["click"],
|
|
20976
20976
|
setup(__props, { emit: __emit }) {
|
|
@@ -20994,7 +20994,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20994
20994
|
};
|
|
20995
20995
|
}
|
|
20996
20996
|
});
|
|
20997
|
-
const _sfc_main$
|
|
20997
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
20998
20998
|
__name: "BasicButtonEdit",
|
|
20999
20999
|
emits: ["click"],
|
|
21000
21000
|
setup(__props, { emit: __emit }) {
|
|
@@ -21018,7 +21018,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
21018
21018
|
};
|
|
21019
21019
|
}
|
|
21020
21020
|
});
|
|
21021
|
-
const _sfc_main$
|
|
21021
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
21022
21022
|
__name: "BasicButtonExport",
|
|
21023
21023
|
props: {
|
|
21024
21024
|
href: {},
|
|
@@ -21069,7 +21069,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
21069
21069
|
}
|
|
21070
21070
|
});
|
|
21071
21071
|
const _hoisted_1 = ["multiple", "name", "accept"];
|
|
21072
|
-
const _sfc_main$
|
|
21072
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
21073
21073
|
__name: "BasicButtonImport",
|
|
21074
21074
|
props: {
|
|
21075
21075
|
name: { default: "file" },
|
|
@@ -21159,8 +21159,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
21159
21159
|
};
|
|
21160
21160
|
}
|
|
21161
21161
|
});
|
|
21162
|
-
const BasicButtonImport = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21163
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21162
|
+
const BasicButtonImport = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-aee6611b"]]);
|
|
21163
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
21164
21164
|
__name: "BasicButtonPrint",
|
|
21165
21165
|
emits: ["click"],
|
|
21166
21166
|
setup(__props, { emit: __emit }) {
|
|
@@ -21184,12 +21184,227 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21184
21184
|
};
|
|
21185
21185
|
}
|
|
21186
21186
|
});
|
|
21187
|
-
const XBasicButtonCreate = withInstall(_sfc_main$
|
|
21188
|
-
const XBasicButtonEdit = withInstall(_sfc_main$
|
|
21189
|
-
const XBasicButtonDelete = withInstall(_sfc_main$
|
|
21190
|
-
const XBasicButtonExport = withInstall(_sfc_main$
|
|
21187
|
+
const XBasicButtonCreate = withInstall(_sfc_main$8);
|
|
21188
|
+
const XBasicButtonEdit = withInstall(_sfc_main$6);
|
|
21189
|
+
const XBasicButtonDelete = withInstall(_sfc_main$7);
|
|
21190
|
+
const XBasicButtonExport = withInstall(_sfc_main$5);
|
|
21191
21191
|
const XBasicButtonImport = withInstall(BasicButtonImport);
|
|
21192
|
-
const XBasicButtonPrint = withInstall(_sfc_main);
|
|
21192
|
+
const XBasicButtonPrint = withInstall(_sfc_main$3);
|
|
21193
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
21194
|
+
__name: "BasicDrawerFooter",
|
|
21195
|
+
props: {
|
|
21196
|
+
showDeleteButton: { type: Boolean, default: false },
|
|
21197
|
+
showCancelButton: { type: Boolean, default: true },
|
|
21198
|
+
showConfirmButton: { type: Boolean, default: true },
|
|
21199
|
+
confirmText: { default: "确定" },
|
|
21200
|
+
cancelText: { default: "取消" },
|
|
21201
|
+
loading: { type: Boolean, default: false }
|
|
21202
|
+
},
|
|
21203
|
+
emits: ["delete", "cancel", "confirm"],
|
|
21204
|
+
setup(__props, { emit: __emit }) {
|
|
21205
|
+
const props = __props;
|
|
21206
|
+
const emit = __emit;
|
|
21207
|
+
const { b } = useNamespace("basic-drawer-footer");
|
|
21208
|
+
const { t } = useLocale();
|
|
21209
|
+
function onDeleteClickHandler() {
|
|
21210
|
+
XBasicMessageBox.confirm(t("max.notification.delete"), t("max.basic.warning")).then(() => {
|
|
21211
|
+
emit("delete");
|
|
21212
|
+
}).catch(() => {
|
|
21213
|
+
});
|
|
21214
|
+
}
|
|
21215
|
+
function onCancelClickHandler() {
|
|
21216
|
+
emit("cancel");
|
|
21217
|
+
}
|
|
21218
|
+
function onConfirmClickHandler() {
|
|
21219
|
+
emit("confirm");
|
|
21220
|
+
}
|
|
21221
|
+
return (_ctx, _cache) => {
|
|
21222
|
+
return openBlock(), createElementBlock("span", {
|
|
21223
|
+
class: normalizeClass(unref(b)())
|
|
21224
|
+
}, [
|
|
21225
|
+
createElementVNode("span", {
|
|
21226
|
+
class: normalizeClass(unref(b)("left-buttons"))
|
|
21227
|
+
}, [
|
|
21228
|
+
props.showDeleteButton ? (openBlock(), createBlock(unref(XBasicButton), {
|
|
21229
|
+
key: 0,
|
|
21230
|
+
type: "error",
|
|
21231
|
+
icon: "ri:delete-bin-line",
|
|
21232
|
+
loading: props.loading,
|
|
21233
|
+
onClick: onDeleteClickHandler
|
|
21234
|
+
}, {
|
|
21235
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
21236
|
+
createTextVNode(" 删除 ", -1)
|
|
21237
|
+
])]),
|
|
21238
|
+
_: 1
|
|
21239
|
+
}, 8, ["loading"])) : createCommentVNode("", true)
|
|
21240
|
+
], 2),
|
|
21241
|
+
createElementVNode("span", {
|
|
21242
|
+
class: normalizeClass(unref(b)("right-buttons"))
|
|
21243
|
+
}, [
|
|
21244
|
+
props.showCancelButton ? (openBlock(), createBlock(unref(XBasicButton), {
|
|
21245
|
+
key: 0,
|
|
21246
|
+
class: "mr-4px",
|
|
21247
|
+
onClick: onCancelClickHandler
|
|
21248
|
+
}, {
|
|
21249
|
+
default: withCtx(() => [
|
|
21250
|
+
createTextVNode(toDisplayString(props.cancelText), 1)
|
|
21251
|
+
]),
|
|
21252
|
+
_: 1
|
|
21253
|
+
})) : createCommentVNode("", true),
|
|
21254
|
+
props.showConfirmButton ? (openBlock(), createBlock(unref(XBasicButton), {
|
|
21255
|
+
key: 1,
|
|
21256
|
+
type: "primary",
|
|
21257
|
+
loading: props.loading,
|
|
21258
|
+
onClick: onConfirmClickHandler
|
|
21259
|
+
}, {
|
|
21260
|
+
default: withCtx(() => [
|
|
21261
|
+
createTextVNode(toDisplayString(props.confirmText), 1)
|
|
21262
|
+
]),
|
|
21263
|
+
_: 1
|
|
21264
|
+
}, 8, ["loading"])) : createCommentVNode("", true)
|
|
21265
|
+
], 2)
|
|
21266
|
+
], 2);
|
|
21267
|
+
};
|
|
21268
|
+
}
|
|
21269
|
+
});
|
|
21270
|
+
const XBasicDrawerFooter = withInstall(_sfc_main$2);
|
|
21271
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
21272
|
+
__name: "BasicMasterTrigger",
|
|
21273
|
+
props: {
|
|
21274
|
+
value: {},
|
|
21275
|
+
disabled: { type: Boolean },
|
|
21276
|
+
defaultValue: {},
|
|
21277
|
+
onUpdateValue: { type: Function },
|
|
21278
|
+
onChange: { type: Function },
|
|
21279
|
+
onSelect: { type: Function }
|
|
21280
|
+
},
|
|
21281
|
+
setup(__props) {
|
|
21282
|
+
const props = __props;
|
|
21283
|
+
const attrs = useAttrs();
|
|
21284
|
+
const { b } = useNamespace("basic-master-trigger");
|
|
21285
|
+
const uncontrolledValueRef = ref(props.defaultValue || "");
|
|
21286
|
+
const controlledValueRef = toRef(props, "value");
|
|
21287
|
+
const mergedValueRef = computed(() => {
|
|
21288
|
+
if (controlledValueRef.value === void 0) {
|
|
21289
|
+
return uncontrolledValueRef.value;
|
|
21290
|
+
}
|
|
21291
|
+
return controlledValueRef.value;
|
|
21292
|
+
});
|
|
21293
|
+
function onUpdateValueHandler(value) {
|
|
21294
|
+
if (props.disabled) return;
|
|
21295
|
+
const { onChange, onUpdateValue } = props;
|
|
21296
|
+
if (onChange) call(onChange, value);
|
|
21297
|
+
if (onUpdateValue) call(onUpdateValue, value);
|
|
21298
|
+
uncontrolledValueRef.value = value;
|
|
21299
|
+
}
|
|
21300
|
+
function onSelectHandler() {
|
|
21301
|
+
var _a;
|
|
21302
|
+
if (props.disabled) return;
|
|
21303
|
+
(_a = props.onSelect) == null ? void 0 : _a.call(props);
|
|
21304
|
+
}
|
|
21305
|
+
watch(controlledValueRef, (value) => {
|
|
21306
|
+
if (value !== void 0) {
|
|
21307
|
+
uncontrolledValueRef.value = value;
|
|
21308
|
+
} else {
|
|
21309
|
+
uncontrolledValueRef.value = "";
|
|
21310
|
+
}
|
|
21311
|
+
});
|
|
21312
|
+
return (_ctx, _cache) => {
|
|
21313
|
+
return openBlock(), createBlock(unref(NInput), mergeProps({
|
|
21314
|
+
value: mergedValueRef.value,
|
|
21315
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => mergedValueRef.value = $event)
|
|
21316
|
+
}, unref(attrs), {
|
|
21317
|
+
disabled: __props.disabled,
|
|
21318
|
+
class: unref(b)(),
|
|
21319
|
+
title: mergedValueRef.value,
|
|
21320
|
+
"onUpdate:value": onUpdateValueHandler
|
|
21321
|
+
}), {
|
|
21322
|
+
suffix: withCtx(() => [
|
|
21323
|
+
withDirectives(createElementVNode("span", {
|
|
21324
|
+
class: normalizeClass(unref(b)("select-button")),
|
|
21325
|
+
onClick: onSelectHandler
|
|
21326
|
+
}, "选择", 2), [
|
|
21327
|
+
[vShow, !__props.disabled]
|
|
21328
|
+
])
|
|
21329
|
+
]),
|
|
21330
|
+
_: 1
|
|
21331
|
+
}, 16, ["value", "disabled", "class", "title"]);
|
|
21332
|
+
};
|
|
21333
|
+
}
|
|
21334
|
+
});
|
|
21335
|
+
const XBasicMasterTrigger = withInstall(_sfc_main$1);
|
|
21336
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21337
|
+
__name: "BasicPanelPage",
|
|
21338
|
+
props: {
|
|
21339
|
+
autoContentHeight: { type: Boolean, default: true }
|
|
21340
|
+
},
|
|
21341
|
+
setup(__props) {
|
|
21342
|
+
const props = __props;
|
|
21343
|
+
const { b, e } = useNamespace("basic-panel-page");
|
|
21344
|
+
let timer = null;
|
|
21345
|
+
const headerHeight = ref(0);
|
|
21346
|
+
const footerHeight = ref(0);
|
|
21347
|
+
const shouldAutoHeight = ref(false);
|
|
21348
|
+
const headerRef = ref();
|
|
21349
|
+
const footerRef = ref();
|
|
21350
|
+
const contentStyle = computed(() => {
|
|
21351
|
+
if (props.autoContentHeight) {
|
|
21352
|
+
return {
|
|
21353
|
+
height: shouldAutoHeight.value ? `calc(100% - ${headerHeight.value}px - ${footerHeight.value}px)` : "0"
|
|
21354
|
+
};
|
|
21355
|
+
}
|
|
21356
|
+
return {};
|
|
21357
|
+
});
|
|
21358
|
+
async function calcContentHeight() {
|
|
21359
|
+
if (!props.autoContentHeight) return;
|
|
21360
|
+
await nextTick();
|
|
21361
|
+
timer = setTimeout(() => {
|
|
21362
|
+
var _a, _b;
|
|
21363
|
+
headerHeight.value = ((_a = headerRef.value) == null ? void 0 : _a.offsetHeight) || 0;
|
|
21364
|
+
footerHeight.value = ((_b = footerRef.value) == null ? void 0 : _b.offsetHeight) || 0;
|
|
21365
|
+
shouldAutoHeight.value = true;
|
|
21366
|
+
}, 30);
|
|
21367
|
+
}
|
|
21368
|
+
onMounted(() => {
|
|
21369
|
+
calcContentHeight();
|
|
21370
|
+
});
|
|
21371
|
+
onUnmounted(() => {
|
|
21372
|
+
if (timer) {
|
|
21373
|
+
clearTimeout(timer);
|
|
21374
|
+
timer = null;
|
|
21375
|
+
}
|
|
21376
|
+
});
|
|
21377
|
+
return (_ctx, _cache) => {
|
|
21378
|
+
return openBlock(), createElementBlock("div", {
|
|
21379
|
+
class: normalizeClass(unref(b)())
|
|
21380
|
+
}, [
|
|
21381
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
21382
|
+
key: 0,
|
|
21383
|
+
ref_key: "headerRef",
|
|
21384
|
+
ref: headerRef,
|
|
21385
|
+
class: normalizeClass(unref(e)("header"))
|
|
21386
|
+
}, [
|
|
21387
|
+
renderSlot(_ctx.$slots, "header")
|
|
21388
|
+
], 2)) : createCommentVNode("", true),
|
|
21389
|
+
createElementVNode("div", {
|
|
21390
|
+
class: normalizeClass(unref(e)("content")),
|
|
21391
|
+
style: normalizeStyle(contentStyle.value)
|
|
21392
|
+
}, [
|
|
21393
|
+
renderSlot(_ctx.$slots, "default")
|
|
21394
|
+
], 6),
|
|
21395
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
|
21396
|
+
key: 1,
|
|
21397
|
+
ref_key: "footerRef",
|
|
21398
|
+
ref: footerRef,
|
|
21399
|
+
class: normalizeClass(unref(e)("footer"))
|
|
21400
|
+
}, [
|
|
21401
|
+
renderSlot(_ctx.$slots, "footer")
|
|
21402
|
+
], 2)) : createCommentVNode("", true)
|
|
21403
|
+
], 2);
|
|
21404
|
+
};
|
|
21405
|
+
}
|
|
21406
|
+
});
|
|
21407
|
+
const XBasicPanelPage = withInstall(_sfc_main);
|
|
21193
21408
|
const install = installer.install;
|
|
21194
21409
|
export {
|
|
21195
21410
|
LIST_IGNORE,
|
|
@@ -21220,6 +21435,7 @@ export {
|
|
|
21220
21435
|
XBasicDatePicker,
|
|
21221
21436
|
XBasicDragVerify,
|
|
21222
21437
|
XBasicDrawer,
|
|
21438
|
+
XBasicDrawerFooter,
|
|
21223
21439
|
XBasicEditBatch,
|
|
21224
21440
|
XBasicFontIcon,
|
|
21225
21441
|
XBasicForm,
|
|
@@ -21232,11 +21448,13 @@ export {
|
|
|
21232
21448
|
XBasicLoading,
|
|
21233
21449
|
vLoading as XBasicLoadingDirective,
|
|
21234
21450
|
Loading as XBasicLoadingService,
|
|
21451
|
+
XBasicMasterTrigger,
|
|
21235
21452
|
XBasicMessageBox,
|
|
21236
21453
|
XBasicModal,
|
|
21237
21454
|
XBasicNotification,
|
|
21238
21455
|
XBasicPage,
|
|
21239
21456
|
XBasicPanel,
|
|
21457
|
+
XBasicPanelPage,
|
|
21240
21458
|
XBasicRadio,
|
|
21241
21459
|
XBasicRadioGroup,
|
|
21242
21460
|
XBasicRow,
|