@maxax/ui 1.0.0 → 1.0.2
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-button-action/BasicButtonCreate.vue.d.ts +16 -0
- package/dist/components/basic-button-action/BasicButtonCreate.vue.d.ts.map +1 -0
- package/dist/components/basic-button-action/BasicButtonDelete.vue.d.ts +16 -0
- package/dist/components/basic-button-action/BasicButtonDelete.vue.d.ts.map +1 -0
- package/dist/components/basic-button-action/BasicButtonEdit.vue.d.ts +16 -0
- package/dist/components/basic-button-action/BasicButtonEdit.vue.d.ts.map +1 -0
- package/dist/components/basic-button-action/BasicButtonExport.vue.d.ts +23 -0
- package/dist/components/basic-button-action/BasicButtonExport.vue.d.ts.map +1 -0
- package/dist/components/basic-button-action/BasicButtonImport.vue.d.ts +71 -0
- package/dist/components/basic-button-action/BasicButtonImport.vue.d.ts.map +1 -0
- package/dist/components/basic-button-action/BasicButtonPrint.vue.d.ts +16 -0
- package/dist/components/basic-button-action/BasicButtonPrint.vue.d.ts.map +1 -0
- package/dist/components/basic-button-action/index.d.ts +16 -0
- package/dist/components/basic-button-action/index.d.ts.map +1 -0
- package/dist/components/basic-button-action/interface.d.ts +19 -0
- package/dist/components/basic-button-action/interface.d.ts.map +1 -0
- package/dist/components/basic-checkbox-group/BasicCheckboxGroup.d.ts +2 -0
- package/dist/components/basic-checkbox-group/BasicCheckboxGroup.d.ts.map +1 -1
- package/dist/components/basic-message-box/BasicMessageBox.vue.d.ts +2 -1
- package/dist/components/basic-message-box/BasicMessageBox.vue.d.ts.map +1 -1
- package/dist/components/basic-table/BasicTable.vue.d.ts +214 -194
- package/dist/components/basic-table/BasicTable.vue.d.ts.map +1 -1
- package/dist/components/basic-table/helper.d.ts +1 -3
- package/dist/components/basic-table/helper.d.ts.map +1 -1
- package/dist/components/basic-table/hooks/use-table-config.d.ts +5 -0
- package/dist/components/basic-table/hooks/use-table-config.d.ts.map +1 -1
- package/dist/components/basic-table/index.d.ts +3 -3
- package/dist/components/basic-table/index.d.ts.map +1 -1
- package/dist/components/basic-table/setting.d.ts +0 -3
- package/dist/components/basic-table/setting.d.ts.map +1 -1
- package/dist/components/basic-table/vxe-table.d.ts +3 -3
- package/dist/components/basic-table/vxe-table.d.ts.map +1 -1
- package/dist/components/basic-upload/BasicUpload.d.ts +2 -2
- package/dist/components/basic-upload-core/AjaxUploader.d.ts +1 -1
- package/dist/components/basic-upload-core/AjaxUploader.d.ts.map +1 -1
- package/dist/components/basic-upload-core/BasicUploadCore.d.ts +1 -1
- package/dist/components/config-provider/ConfigProvider.d.ts +8 -2
- package/dist/components/config-provider/ConfigProvider.d.ts.map +1 -1
- package/dist/components/config-provider/hooks/use-global-config.d.ts +1 -0
- package/dist/components/config-provider/hooks/use-global-config.d.ts.map +1 -1
- package/dist/components/config-provider/interface.d.ts +5 -2
- package/dist/components/config-provider/interface.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/composable/index.d.ts +1 -0
- package/dist/composable/index.d.ts.map +1 -1
- package/dist/composable/use-table-config.d.ts +2 -1
- package/dist/composable/use-table-config.d.ts.map +1 -1
- package/dist/composable/use-theme-overrides.d.ts +5 -0
- package/dist/composable/use-theme-overrides.d.ts.map +1 -0
- package/dist/constants/context.d.ts +3 -0
- package/dist/constants/context.d.ts.map +1 -1
- package/dist/index.cjs +548 -290
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +544 -292
- package/dist/index.mjs.map +1 -1
- package/dist/locales.cjs +528 -112
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.mjs +528 -112
- package/dist/locales.mjs.map +1 -1
- package/dist/style.css +4 -0
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const utils$1 = require("./utils-pcMeUjXb.cjs");
|
|
|
8
8
|
const hooks = require("@maxax/hooks");
|
|
9
9
|
const dateFns = require("date-fns");
|
|
10
10
|
const dayjs = require("dayjs");
|
|
11
|
-
const
|
|
11
|
+
const vxePcUi = require("vxe-pc-ui");
|
|
12
12
|
const vxeTable = require("vxe-table");
|
|
13
13
|
const elementResizeDetectorMaker = require("element-resize-detector");
|
|
14
14
|
const isStringNumber = (val) => {
|
|
@@ -296,6 +296,7 @@ const namespaceContextKey = Symbol("namespaceContextKey");
|
|
|
296
296
|
const localeContextKey = Symbol("localeContextKey");
|
|
297
297
|
const zIndexContextKey = Symbol("zIndexContextKey");
|
|
298
298
|
const tableContextKey = Symbol("tableContextKey");
|
|
299
|
+
const themeOverridesContextKey = Symbol("themeOverridesContextKey");
|
|
299
300
|
function useLocale(localeOverrides) {
|
|
300
301
|
const locale = localeOverrides || vue.inject(localeContextKey, vue.ref());
|
|
301
302
|
return utils$1.buildLocaleContext(vue.computed(() => locale.value || utils$1.zhCN));
|
|
@@ -587,111 +588,13 @@ const useSameTarget = (handleClick) => {
|
|
|
587
588
|
};
|
|
588
589
|
return { onClick, onMousedown, onMouseup };
|
|
589
590
|
};
|
|
590
|
-
const ROW_KEY$1 = "_MAX_ROW_KEY";
|
|
591
|
-
const PAGE_SIZE_OPTIONS$1 = [10, 50, 80, 100];
|
|
592
|
-
const PAGE_SIZE$1 = 10;
|
|
593
|
-
const FETCH_SETTING$1 = {
|
|
594
|
-
// The field name of the current page passed to the background
|
|
595
|
-
pageField: "page",
|
|
596
|
-
// The number field name of each page displayed in the background
|
|
597
|
-
sizeField: "pageSize",
|
|
598
|
-
// Field name of the form data returned by the interface
|
|
599
|
-
listField: "itemList",
|
|
600
|
-
// Total number of tables returned by the interface field name
|
|
601
|
-
totalField: "totalCount"
|
|
602
|
-
};
|
|
603
|
-
const DEFAULT_SIZE = "small";
|
|
604
|
-
const setting = {
|
|
605
|
-
fit: true,
|
|
606
|
-
showHeader: true,
|
|
607
|
-
delayHover: 250,
|
|
608
|
-
autoResize: true,
|
|
609
|
-
padding: false,
|
|
610
|
-
minHeight: 180,
|
|
611
|
-
size: DEFAULT_SIZE,
|
|
612
|
-
border: "inner",
|
|
613
|
-
showOverflow: true,
|
|
614
|
-
showHeaderOverflow: "tooltip",
|
|
615
|
-
showFooterOverflow: "tooltip",
|
|
616
|
-
autoCreateKey: true,
|
|
617
|
-
showIndexColumn: true,
|
|
618
|
-
fetchSetting: FETCH_SETTING$1,
|
|
619
|
-
columns: () => [],
|
|
620
|
-
sortConfig: () => ({
|
|
621
|
-
remote: true
|
|
622
|
-
}),
|
|
623
|
-
resizeConfig: () => ({
|
|
624
|
-
refreshDelay: 250
|
|
625
|
-
}),
|
|
626
|
-
radioConfig: () => ({
|
|
627
|
-
strict: true
|
|
628
|
-
}),
|
|
629
|
-
rowConfig: () => ({
|
|
630
|
-
useKey: true,
|
|
631
|
-
isCurrent: true,
|
|
632
|
-
isHover: true,
|
|
633
|
-
keyField: "_ROW_KEY_"
|
|
634
|
-
}),
|
|
635
|
-
checkboxConfig: () => ({
|
|
636
|
-
strict: true
|
|
637
|
-
}),
|
|
638
|
-
tooltipConfig: () => ({
|
|
639
|
-
enterable: true
|
|
640
|
-
}),
|
|
641
|
-
validConfig: () => ({
|
|
642
|
-
showMessage: true,
|
|
643
|
-
autoClear: true,
|
|
644
|
-
autoPos: true,
|
|
645
|
-
message: "inline",
|
|
646
|
-
msgMode: "single"
|
|
647
|
-
}),
|
|
648
|
-
columnConfig: () => ({
|
|
649
|
-
resizable: true,
|
|
650
|
-
useKey: true,
|
|
651
|
-
maxFixedSize: 4
|
|
652
|
-
}),
|
|
653
|
-
customConfig: () => ({
|
|
654
|
-
mode: "modal"
|
|
655
|
-
}),
|
|
656
|
-
toolbarConfig: () => ({
|
|
657
|
-
custom: true,
|
|
658
|
-
zoom: true
|
|
659
|
-
})
|
|
660
|
-
};
|
|
661
|
-
const globalSetting = {
|
|
662
|
-
zIndex: 2e3,
|
|
663
|
-
table: {
|
|
664
|
-
size: "small",
|
|
665
|
-
border: true,
|
|
666
|
-
fit: true,
|
|
667
|
-
showHeader: true,
|
|
668
|
-
delayHover: 250,
|
|
669
|
-
autoResize: true,
|
|
670
|
-
minHeight: 180,
|
|
671
|
-
maxHeight: 325,
|
|
672
|
-
showOverflow: true,
|
|
673
|
-
resizable: true,
|
|
674
|
-
showHeaderOverflow: "tooltip",
|
|
675
|
-
showFooterOverflow: "tooltip"
|
|
676
|
-
},
|
|
677
|
-
grid: {
|
|
678
|
-
size: "small",
|
|
679
|
-
border: true,
|
|
680
|
-
fit: true,
|
|
681
|
-
showHeader: true,
|
|
682
|
-
delayHover: 250,
|
|
683
|
-
autoResize: true,
|
|
684
|
-
minHeight: 180,
|
|
685
|
-
maxHeight: 325,
|
|
686
|
-
showOverflow: true,
|
|
687
|
-
resizable: true,
|
|
688
|
-
showHeaderOverflow: "tooltip",
|
|
689
|
-
showFooterOverflow: "tooltip"
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
591
|
function useTableConfig(tableOverrides) {
|
|
693
592
|
const table = tableOverrides || vue.inject(tableContextKey, vue.ref());
|
|
694
|
-
return table.value
|
|
593
|
+
return table.value;
|
|
594
|
+
}
|
|
595
|
+
function useThemeOverrides(themeOverrides) {
|
|
596
|
+
const overrides = themeOverrides || vue.inject(themeOverridesContextKey, vue.ref());
|
|
597
|
+
return overrides.value;
|
|
695
598
|
}
|
|
696
599
|
const zIndex = vue.ref(0);
|
|
697
600
|
const initial = {
|
|
@@ -2393,8 +2296,8 @@ const Icon = vue.defineComponent((props, { emit }) => {
|
|
|
2393
2296
|
],
|
|
2394
2297
|
emits: ["load"]
|
|
2395
2298
|
});
|
|
2396
|
-
const _hoisted_1$
|
|
2397
|
-
const _sfc_main$
|
|
2299
|
+
const _hoisted_1$c = ["xlink:href"];
|
|
2300
|
+
const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
2398
2301
|
__name: "BasicSvgIcon",
|
|
2399
2302
|
props: {
|
|
2400
2303
|
icon: {},
|
|
@@ -2427,7 +2330,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
2427
2330
|
vue.createElementVNode("use", {
|
|
2428
2331
|
"xlink:href": symbolId.value,
|
|
2429
2332
|
fill: "currentColor"
|
|
2430
|
-
}, null, 8, _hoisted_1$
|
|
2333
|
+
}, null, 8, _hoisted_1$c)
|
|
2431
2334
|
], 16)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
2432
2335
|
__props.icon ? (vue.openBlock(), vue.createBlock(vue.unref(Icon), vue.mergeProps({
|
|
2433
2336
|
key: 0,
|
|
@@ -2439,8 +2342,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
2439
2342
|
};
|
|
2440
2343
|
}
|
|
2441
2344
|
});
|
|
2442
|
-
const XBasicSvgIcon = utils.withInstall(_sfc_main$
|
|
2443
|
-
const _sfc_main$
|
|
2345
|
+
const XBasicSvgIcon = utils.withInstall(_sfc_main$K);
|
|
2346
|
+
const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
2444
2347
|
__name: "BasicArrow",
|
|
2445
2348
|
props: {
|
|
2446
2349
|
expand: { type: Boolean },
|
|
@@ -2472,8 +2375,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
2472
2375
|
};
|
|
2473
2376
|
}
|
|
2474
2377
|
});
|
|
2475
|
-
const XBasicArrow = utils.withInstall(_sfc_main$
|
|
2476
|
-
const _sfc_main$
|
|
2378
|
+
const XBasicArrow = utils.withInstall(_sfc_main$J);
|
|
2379
|
+
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
2477
2380
|
__name: "BasicButton",
|
|
2478
2381
|
props: {
|
|
2479
2382
|
size: {},
|
|
@@ -2528,7 +2431,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
2528
2431
|
};
|
|
2529
2432
|
}
|
|
2530
2433
|
});
|
|
2531
|
-
const XBasicButton = utils.withInstall(_sfc_main$
|
|
2434
|
+
const XBasicButton = utils.withInstall(_sfc_main$I);
|
|
2532
2435
|
/**
|
|
2533
2436
|
* @vue/shared v3.5.24
|
|
2534
2437
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -2635,6 +2538,10 @@ const provideGlobalConfig = (config, app, global = false) => {
|
|
|
2635
2538
|
tableContextKey,
|
|
2636
2539
|
vue.computed(() => context.value.table)
|
|
2637
2540
|
);
|
|
2541
|
+
provideFn(
|
|
2542
|
+
themeOverridesContextKey,
|
|
2543
|
+
vue.computed(() => context.value.themeOverrides)
|
|
2544
|
+
);
|
|
2638
2545
|
if (global || !globalConfig.value) {
|
|
2639
2546
|
globalConfig.value = context.value;
|
|
2640
2547
|
}
|
|
@@ -2657,11 +2564,16 @@ const useConfigProvider = (block) => {
|
|
|
2657
2564
|
var _a;
|
|
2658
2565
|
return ((_a = config.value) == null ? void 0 : _a.zIndex) || DEFAULT_INITIAL_Z_INDEX;
|
|
2659
2566
|
}));
|
|
2567
|
+
const themeOverrides = useThemeOverrides(vue.computed(() => {
|
|
2568
|
+
var _a;
|
|
2569
|
+
return (_a = config.value) == null ? void 0 : _a.themeOverrides;
|
|
2570
|
+
}));
|
|
2660
2571
|
provideGlobalConfig(vue.computed(() => vue.unref(config) || {}));
|
|
2661
2572
|
return {
|
|
2662
2573
|
ns,
|
|
2663
2574
|
locale,
|
|
2664
|
-
zIndex: zIndex2
|
|
2575
|
+
zIndex: zIndex2,
|
|
2576
|
+
themeOverrides
|
|
2665
2577
|
};
|
|
2666
2578
|
};
|
|
2667
2579
|
const configProviderProps = {
|
|
@@ -2689,6 +2601,9 @@ const configProviderProps = {
|
|
|
2689
2601
|
/** 全局表格配置 */
|
|
2690
2602
|
table: {
|
|
2691
2603
|
type: Object
|
|
2604
|
+
},
|
|
2605
|
+
themeOverrides: {
|
|
2606
|
+
type: Object
|
|
2692
2607
|
}
|
|
2693
2608
|
};
|
|
2694
2609
|
const ConfigProvider = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -2750,7 +2665,7 @@ const basicMessageBoxProps = {
|
|
|
2750
2665
|
default: ""
|
|
2751
2666
|
}
|
|
2752
2667
|
};
|
|
2753
|
-
const _sfc_main$
|
|
2668
|
+
const _sfc_main$H = vue.defineComponent({
|
|
2754
2669
|
components: {
|
|
2755
2670
|
NButton: naiveUi.NButton,
|
|
2756
2671
|
NInput: naiveUi.NInput,
|
|
@@ -2760,7 +2675,7 @@ const _sfc_main$B = vue.defineComponent({
|
|
|
2760
2675
|
props: basicMessageBoxProps,
|
|
2761
2676
|
emits: ["vanish", "action"],
|
|
2762
2677
|
setup(props, { emit }) {
|
|
2763
|
-
const { locale, zIndex: zIndex2, ns } = useConfigProvider("basic-message-box");
|
|
2678
|
+
const { locale, zIndex: zIndex2, ns, themeOverrides } = useConfigProvider("basic-message-box");
|
|
2764
2679
|
const { t } = locale;
|
|
2765
2680
|
const { nextZIndex } = zIndex2;
|
|
2766
2681
|
const visible = vue.ref(false);
|
|
@@ -2821,6 +2736,7 @@ const _sfc_main$B = vue.defineComponent({
|
|
|
2821
2736
|
const inputRef = vue.ref();
|
|
2822
2737
|
const confirmRef = vue.ref();
|
|
2823
2738
|
const confirmButtonClasses = vue.computed(() => state.confirmButtonClass);
|
|
2739
|
+
const themeOverridesRef = vue.computed(() => themeOverrides);
|
|
2824
2740
|
const contentId = utils.guid();
|
|
2825
2741
|
const inputId = utils.guid();
|
|
2826
2742
|
const validate = () => {
|
|
@@ -2965,6 +2881,7 @@ const _sfc_main$B = vue.defineComponent({
|
|
|
2965
2881
|
inputId,
|
|
2966
2882
|
iconComponent,
|
|
2967
2883
|
confirmButtonClasses,
|
|
2884
|
+
themeOverridesRef,
|
|
2968
2885
|
rootRef,
|
|
2969
2886
|
focusStartRef,
|
|
2970
2887
|
headerRef,
|
|
@@ -2988,7 +2905,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2988
2905
|
}
|
|
2989
2906
|
return target;
|
|
2990
2907
|
};
|
|
2991
|
-
const _hoisted_1$
|
|
2908
|
+
const _hoisted_1$b = ["aria-label", "aria-describedby"];
|
|
2992
2909
|
const _hoisted_2$4 = ["id"];
|
|
2993
2910
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2994
2911
|
const _component_BasicSvgIcon = vue.resolveComponent("BasicSvgIcon");
|
|
@@ -3094,12 +3011,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3094
3011
|
ref: "inputRef",
|
|
3095
3012
|
value: _ctx.inputValue,
|
|
3096
3013
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
3014
|
+
"theme-overrides": _ctx.themeOverridesRef,
|
|
3097
3015
|
type: _ctx.inputType,
|
|
3098
3016
|
placeholder: _ctx.inputPlaceholder,
|
|
3099
3017
|
"aria-invalid": _ctx.validateError,
|
|
3100
3018
|
class: vue.normalizeClass({ invalid: _ctx.validateError }),
|
|
3101
3019
|
onKeydown: vue.withKeys(_ctx.handleInputEnter, ["enter"])
|
|
3102
|
-
}, null, 8, ["id", "value", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
|
|
3020
|
+
}, null, 8, ["id", "value", "theme-overrides", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
|
|
3103
3021
|
vue.createElementVNode("div", {
|
|
3104
3022
|
class: vue.normalizeClass(_ctx.ns.e("errormsg")),
|
|
3105
3023
|
style: vue.normalizeStyle({ visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden" })
|
|
@@ -3113,6 +3031,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3113
3031
|
}, [
|
|
3114
3032
|
_ctx.showCancelButton ? (vue.openBlock(), vue.createBlock(_component_NButton, {
|
|
3115
3033
|
key: 0,
|
|
3034
|
+
"theme-overrides": _ctx.themeOverridesRef,
|
|
3116
3035
|
loading: _ctx.cancelButtonLoading,
|
|
3117
3036
|
class: vue.normalizeClass([_ctx.cancelButtonClass]),
|
|
3118
3037
|
round: _ctx.roundButton,
|
|
@@ -3123,9 +3042,10 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3123
3042
|
vue.createTextVNode(vue.toDisplayString(_ctx.cancelButtonText || _ctx.t("max.button.cancel")), 1)
|
|
3124
3043
|
]),
|
|
3125
3044
|
_: 1
|
|
3126
|
-
}, 8, ["loading", "class", "round"])) : vue.createCommentVNode("", true),
|
|
3045
|
+
}, 8, ["theme-overrides", "loading", "class", "round"])) : vue.createCommentVNode("", true),
|
|
3127
3046
|
vue.withDirectives(vue.createVNode(_component_NButton, {
|
|
3128
3047
|
ref: "confirmRef",
|
|
3048
|
+
"theme-overrides": _ctx.themeOverridesRef,
|
|
3129
3049
|
type: "primary",
|
|
3130
3050
|
loading: _ctx.confirmButtonLoading,
|
|
3131
3051
|
class: vue.normalizeClass([_ctx.confirmButtonClasses]),
|
|
@@ -3138,12 +3058,12 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3138
3058
|
vue.createTextVNode(vue.toDisplayString(_ctx.confirmButtonText || _ctx.t("max.button.confirm")), 1)
|
|
3139
3059
|
]),
|
|
3140
3060
|
_: 1
|
|
3141
|
-
}, 8, ["loading", "class", "round", "disabled"]), [
|
|
3061
|
+
}, 8, ["theme-overrides", "loading", "class", "round", "disabled"]), [
|
|
3142
3062
|
[vue.vShow, _ctx.showConfirmButton]
|
|
3143
3063
|
])
|
|
3144
3064
|
], 2)
|
|
3145
3065
|
], 6)
|
|
3146
|
-
], 42, _hoisted_1$
|
|
3066
|
+
], 42, _hoisted_1$b)
|
|
3147
3067
|
]),
|
|
3148
3068
|
_: 3
|
|
3149
3069
|
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
@@ -3153,7 +3073,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3153
3073
|
_: 3
|
|
3154
3074
|
});
|
|
3155
3075
|
}
|
|
3156
|
-
const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3076
|
+
const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$2]]);
|
|
3157
3077
|
const messageInstance = /* @__PURE__ */ new Map();
|
|
3158
3078
|
const getAppendToElement = (props) => {
|
|
3159
3079
|
let appendTo = document.body;
|
|
@@ -3282,7 +3202,7 @@ const XBasicMessageBox = $MessageBox;
|
|
|
3282
3202
|
function _isSlot$3(s) {
|
|
3283
3203
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
3284
3204
|
}
|
|
3285
|
-
const _sfc_main$
|
|
3205
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
3286
3206
|
name: "ButtonGroupItem",
|
|
3287
3207
|
props: {
|
|
3288
3208
|
schema: {
|
|
@@ -3635,7 +3555,7 @@ function useButtonGroupSchema({ getProps, schemaRef }) {
|
|
|
3635
3555
|
});
|
|
3636
3556
|
return { getSchema };
|
|
3637
3557
|
}
|
|
3638
|
-
const _sfc_main$
|
|
3558
|
+
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
3639
3559
|
__name: "BasicButtonGroup",
|
|
3640
3560
|
props: {
|
|
3641
3561
|
showReturnButton: { type: Boolean },
|
|
@@ -3716,7 +3636,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
3716
3636
|
return (_ctx, _cache) => {
|
|
3717
3637
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: vue.unref(getWrapperClass) }, getBindValue.value), [
|
|
3718
3638
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getSchema), (schema) => {
|
|
3719
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3639
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$G, {
|
|
3720
3640
|
key: schema.field,
|
|
3721
3641
|
schema,
|
|
3722
3642
|
"button-group-action-type": buttonGroupActionType,
|
|
@@ -3737,9 +3657,9 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
3737
3657
|
};
|
|
3738
3658
|
}
|
|
3739
3659
|
});
|
|
3740
|
-
const XBasicButtonGroup = utils.withInstall(_sfc_main$
|
|
3741
|
-
const _hoisted_1$
|
|
3742
|
-
const _sfc_main$
|
|
3660
|
+
const XBasicButtonGroup = utils.withInstall(_sfc_main$F);
|
|
3661
|
+
const _hoisted_1$a = ["title"];
|
|
3662
|
+
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
3743
3663
|
__name: "BasicText",
|
|
3744
3664
|
props: {
|
|
3745
3665
|
icon: { default: "" },
|
|
@@ -3777,7 +3697,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
3777
3697
|
class: vue.normalizeClass(basicTextClass.value),
|
|
3778
3698
|
title: vue.unref(utils.isString)(vue.unref(mergedValueRef)) ? vue.unref(mergedValueRef) : void 0
|
|
3779
3699
|
}, [
|
|
3780
|
-
__props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3700
|
+
__props.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
|
|
3781
3701
|
key: 0,
|
|
3782
3702
|
icon: __props.icon,
|
|
3783
3703
|
class: vue.normalizeClass(__props.iconClass),
|
|
@@ -3786,12 +3706,12 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
3786
3706
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3787
3707
|
vue.createTextVNode(vue.toDisplayString(vue.unref(mergedValueRef)), 1)
|
|
3788
3708
|
])
|
|
3789
|
-
], 10, _hoisted_1$
|
|
3709
|
+
], 10, _hoisted_1$a);
|
|
3790
3710
|
};
|
|
3791
3711
|
}
|
|
3792
3712
|
});
|
|
3793
|
-
const XBasicText = utils.withInstall(_sfc_main$
|
|
3794
|
-
const _sfc_main$
|
|
3713
|
+
const XBasicText = utils.withInstall(_sfc_main$E);
|
|
3714
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
3795
3715
|
__name: "BasicCard",
|
|
3796
3716
|
props: {
|
|
3797
3717
|
title: {},
|
|
@@ -3830,8 +3750,8 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
3830
3750
|
};
|
|
3831
3751
|
}
|
|
3832
3752
|
});
|
|
3833
|
-
const XBasicCard = utils.withInstall(_sfc_main$
|
|
3834
|
-
const _sfc_main$
|
|
3753
|
+
const XBasicCard = utils.withInstall(_sfc_main$D);
|
|
3754
|
+
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
3835
3755
|
...{
|
|
3836
3756
|
inheritAttrs: false
|
|
3837
3757
|
},
|
|
@@ -3936,7 +3856,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
3936
3856
|
}
|
|
3937
3857
|
});
|
|
3938
3858
|
const basicCascaderProps = {};
|
|
3939
|
-
const XBasicCascader = utils.withInstall(_sfc_main$
|
|
3859
|
+
const XBasicCascader = utils.withInstall(_sfc_main$C);
|
|
3940
3860
|
const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
|
|
3941
3861
|
const createBasicCheckboxGroupContext = (props) => {
|
|
3942
3862
|
return vue.provide(basicCheckboxGroupKey, props);
|
|
@@ -3957,7 +3877,7 @@ const IconCheck = /* @__PURE__ */ vue.defineComponent({
|
|
|
3957
3877
|
}, null)]);
|
|
3958
3878
|
}
|
|
3959
3879
|
});
|
|
3960
|
-
const _sfc_main$
|
|
3880
|
+
const _sfc_main$B = vue.defineComponent({
|
|
3961
3881
|
name: "IconHover",
|
|
3962
3882
|
props: {
|
|
3963
3883
|
disabled: {
|
|
@@ -3985,7 +3905,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3985
3905
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3986
3906
|
], 2);
|
|
3987
3907
|
}
|
|
3988
|
-
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3908
|
+
const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$1]]);
|
|
3989
3909
|
const basicCheckboxProps = {
|
|
3990
3910
|
/**
|
|
3991
3911
|
* @zh 绑定值
|
|
@@ -4238,6 +4158,7 @@ const BasicCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
4238
4158
|
props: basicCheckboxGroupProps,
|
|
4239
4159
|
emits: {
|
|
4240
4160
|
"update:value": (_value) => true,
|
|
4161
|
+
"all-change": (_value, _ev) => true,
|
|
4241
4162
|
/**
|
|
4242
4163
|
* @zh 值改变时触发
|
|
4243
4164
|
* @en Trigger when the value changes
|
|
@@ -4294,6 +4215,7 @@ const BasicCheckboxGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
4294
4215
|
allChecked.value = value;
|
|
4295
4216
|
const newValue = allChecked.value ? options.value.map((option) => option.value) : [];
|
|
4296
4217
|
handleChange(newValue, e);
|
|
4218
|
+
emit("all-change", newValue, e);
|
|
4297
4219
|
};
|
|
4298
4220
|
const cls = vue.computed(() => [b(), is(`direction-${props.direction}`)]);
|
|
4299
4221
|
vue.watch(() => props.value, (curValue) => {
|
|
@@ -4907,7 +4829,7 @@ function useTransition(source, options = {}) {
|
|
|
4907
4829
|
});
|
|
4908
4830
|
return vue.computed(() => vue.toValue(options.disabled) ? sourceVal() : outputRef.value);
|
|
4909
4831
|
}
|
|
4910
|
-
const _sfc_main$
|
|
4832
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
4911
4833
|
__name: "BasicCountTo",
|
|
4912
4834
|
props: {
|
|
4913
4835
|
startValue: { default: 0 },
|
|
@@ -4968,8 +4890,8 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
4968
4890
|
};
|
|
4969
4891
|
}
|
|
4970
4892
|
});
|
|
4971
|
-
const XBasicCountTo = utils.withInstall(_sfc_main$
|
|
4972
|
-
const _sfc_main$
|
|
4893
|
+
const XBasicCountTo = utils.withInstall(_sfc_main$A);
|
|
4894
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
4973
4895
|
__name: "BasicDatePicker",
|
|
4974
4896
|
props: {
|
|
4975
4897
|
disabled: { type: Boolean, default: false },
|
|
@@ -5029,7 +4951,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
5029
4951
|
};
|
|
5030
4952
|
}
|
|
5031
4953
|
});
|
|
5032
|
-
const XBasicDatePicker = utils.withInstall(_sfc_main$
|
|
4954
|
+
const XBasicDatePicker = utils.withInstall(_sfc_main$z);
|
|
5033
4955
|
const basicDragVerifyProps = {
|
|
5034
4956
|
value: {
|
|
5035
4957
|
type: Boolean,
|
|
@@ -5076,7 +4998,7 @@ const basicDragVerifyProps = {
|
|
|
5076
4998
|
default: () => ({})
|
|
5077
4999
|
}
|
|
5078
5000
|
};
|
|
5079
|
-
const _sfc_main$
|
|
5001
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
5080
5002
|
name: "BasicDragVerify",
|
|
5081
5003
|
props: basicDragVerifyProps,
|
|
5082
5004
|
emits: ["success", "update:value", "change", "start", "move", "end"],
|
|
@@ -5379,7 +5301,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
5379
5301
|
};
|
|
5380
5302
|
}
|
|
5381
5303
|
});
|
|
5382
|
-
const XBasicDragVerify = utils.withInstall(_sfc_main$
|
|
5304
|
+
const XBasicDragVerify = utils.withInstall(_sfc_main$y);
|
|
5383
5305
|
const basicHelpProps = {
|
|
5384
5306
|
/**
|
|
5385
5307
|
* Whether to display the serial number
|
|
@@ -5395,7 +5317,7 @@ const basicHelpProps = {
|
|
|
5395
5317
|
default: ""
|
|
5396
5318
|
}
|
|
5397
5319
|
};
|
|
5398
|
-
const _sfc_main$
|
|
5320
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
5399
5321
|
name: "BasicHelp",
|
|
5400
5322
|
components: {
|
|
5401
5323
|
XBasicSvgIcon
|
|
@@ -5441,8 +5363,8 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
5441
5363
|
});
|
|
5442
5364
|
}
|
|
5443
5365
|
});
|
|
5444
|
-
const XBasicHelp = utils.withInstall(_sfc_main$
|
|
5445
|
-
const _sfc_main$
|
|
5366
|
+
const XBasicHelp = utils.withInstall(_sfc_main$x);
|
|
5367
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
5446
5368
|
__name: "BasicTitle",
|
|
5447
5369
|
props: {
|
|
5448
5370
|
helpMessage: {},
|
|
@@ -5485,12 +5407,12 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
5485
5407
|
};
|
|
5486
5408
|
}
|
|
5487
5409
|
});
|
|
5488
|
-
const XBasicTitle = utils.withInstall(_sfc_main$
|
|
5489
|
-
const _hoisted_1$
|
|
5410
|
+
const XBasicTitle = utils.withInstall(_sfc_main$w);
|
|
5411
|
+
const _hoisted_1$9 = {
|
|
5490
5412
|
key: 0,
|
|
5491
5413
|
class: "footer-wrapper"
|
|
5492
5414
|
};
|
|
5493
|
-
const _sfc_main$
|
|
5415
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
5494
5416
|
__name: "BasicDrawer",
|
|
5495
5417
|
props: {
|
|
5496
5418
|
showCancelBtn: { type: Boolean, default: true },
|
|
@@ -5624,7 +5546,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
5624
5546
|
!_ctx.$slots.footer ? {
|
|
5625
5547
|
name: "footer",
|
|
5626
5548
|
fn: vue.withCtx(() => [
|
|
5627
|
-
__props.showFooter ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
5549
|
+
__props.showFooter ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
|
|
5628
5550
|
vue.renderSlot(_ctx.$slots, "before-footer"),
|
|
5629
5551
|
__props.showCancelBtn ? (vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), {
|
|
5630
5552
|
key: 0,
|
|
@@ -5664,7 +5586,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
5664
5586
|
};
|
|
5665
5587
|
}
|
|
5666
5588
|
});
|
|
5667
|
-
const XBasicDrawer = utils.withInstall(_sfc_main$
|
|
5589
|
+
const XBasicDrawer = utils.withInstall(_sfc_main$v);
|
|
5668
5590
|
const basicEditBatchKey = Symbol("basic-edit-batch");
|
|
5669
5591
|
const createBasicEditBatchContext = (props) => {
|
|
5670
5592
|
return vue.provide(basicEditBatchKey, props);
|
|
@@ -5672,8 +5594,8 @@ const createBasicEditBatchContext = (props) => {
|
|
|
5672
5594
|
const useBasicEditBatchContext = () => {
|
|
5673
5595
|
return vue.inject(basicEditBatchKey);
|
|
5674
5596
|
};
|
|
5675
|
-
const _hoisted_1$
|
|
5676
|
-
const _sfc_main$
|
|
5597
|
+
const _hoisted_1$8 = ["disabled"];
|
|
5598
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
5677
5599
|
__name: "EditBatchAction",
|
|
5678
5600
|
props: {
|
|
5679
5601
|
disabled: { type: Boolean, default: false },
|
|
@@ -5729,11 +5651,11 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
5729
5651
|
_: 1
|
|
5730
5652
|
}, 16, ["class", "onClick"])) : vue.createCommentVNode("", true),
|
|
5731
5653
|
vue.renderSlot(_ctx.$slots, "submitAfter")
|
|
5732
|
-
], 10, _hoisted_1$
|
|
5654
|
+
], 10, _hoisted_1$8);
|
|
5733
5655
|
};
|
|
5734
5656
|
}
|
|
5735
5657
|
});
|
|
5736
|
-
const _sfc_main$
|
|
5658
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
5737
5659
|
__name: "BasicHidden",
|
|
5738
5660
|
props: {
|
|
5739
5661
|
value: {},
|
|
@@ -5760,7 +5682,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
5760
5682
|
};
|
|
5761
5683
|
}
|
|
5762
5684
|
});
|
|
5763
|
-
const XBasicHidden = utils.withInstall(_sfc_main$
|
|
5685
|
+
const XBasicHidden = utils.withInstall(_sfc_main$t);
|
|
5764
5686
|
const basicRadioGroupKey = Symbol("basic-radio-group");
|
|
5765
5687
|
const createBasicRadioGroupContext = (props) => {
|
|
5766
5688
|
return vue.provide(basicRadioGroupKey, props);
|
|
@@ -6028,7 +5950,7 @@ const BasicRadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
6028
5950
|
}
|
|
6029
5951
|
});
|
|
6030
5952
|
const XBasicRadioGroup = utils.withInstall(BasicRadioGroup);
|
|
6031
|
-
const _sfc_main$
|
|
5953
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
6032
5954
|
...{
|
|
6033
5955
|
inheritAttrs: false
|
|
6034
5956
|
},
|
|
@@ -6147,7 +6069,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
6147
6069
|
}
|
|
6148
6070
|
});
|
|
6149
6071
|
const basicSelectProps = {};
|
|
6150
|
-
const XBasicSelect = utils.withInstall(_sfc_main$
|
|
6072
|
+
const XBasicSelect = utils.withInstall(_sfc_main$s);
|
|
6151
6073
|
const componentMap$1 = /* @__PURE__ */ new Map();
|
|
6152
6074
|
componentMap$1.set("Input", naiveUi.NInput);
|
|
6153
6075
|
componentMap$1.set("InputNumber", naiveUi.NInputNumber);
|
|
@@ -6226,7 +6148,7 @@ function isComponentEditBatchSchema(schema) {
|
|
|
6226
6148
|
function _isSlot$1(s) {
|
|
6227
6149
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
6228
6150
|
}
|
|
6229
|
-
const _sfc_main$
|
|
6151
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
6230
6152
|
name: "BasicEditBatchItem",
|
|
6231
6153
|
components: {
|
|
6232
6154
|
XBasicHelp
|
|
@@ -6964,7 +6886,7 @@ function useEditBatchValues({ getProps, defaultValueRef, getSchema, formModel })
|
|
|
6964
6886
|
}
|
|
6965
6887
|
return { handleFormValues, initDefault };
|
|
6966
6888
|
}
|
|
6967
|
-
const _sfc_main$
|
|
6889
|
+
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
6968
6890
|
__name: "BasicEditBatch",
|
|
6969
6891
|
props: {
|
|
6970
6892
|
name: {},
|
|
@@ -7094,7 +7016,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
7094
7016
|
options: vue.unref(getOptions)
|
|
7095
7017
|
}, null, 8, ["value", "options"])
|
|
7096
7018
|
], 2),
|
|
7097
|
-
schemaItemRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7019
|
+
schemaItemRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$r, {
|
|
7098
7020
|
key: 0,
|
|
7099
7021
|
schema: schemaItemRef.value,
|
|
7100
7022
|
"edit-batch-props": getProps.value,
|
|
@@ -7111,7 +7033,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
7111
7033
|
};
|
|
7112
7034
|
})
|
|
7113
7035
|
]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : vue.createCommentVNode("", true),
|
|
7114
|
-
vue.createVNode(_sfc_main$
|
|
7036
|
+
vue.createVNode(_sfc_main$u, vue.normalizeProps(vue.guardReactiveProps(getEditBatchActionBindProps.value)), vue.createSlots({ _: 2 }, [
|
|
7115
7037
|
vue.renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
|
|
7116
7038
|
return {
|
|
7117
7039
|
name: item,
|
|
@@ -7125,7 +7047,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
7125
7047
|
};
|
|
7126
7048
|
}
|
|
7127
7049
|
});
|
|
7128
|
-
const XBasicEditBatch = utils.withInstall(_sfc_main$
|
|
7050
|
+
const XBasicEditBatch = utils.withInstall(_sfc_main$q);
|
|
7129
7051
|
const basicFontIconProps = {
|
|
7130
7052
|
icon: {
|
|
7131
7053
|
type: String,
|
|
@@ -7176,7 +7098,7 @@ const createBasicFormContext = (props) => {
|
|
|
7176
7098
|
const useBasicFormContext = () => {
|
|
7177
7099
|
return vue.inject(basicFormKey);
|
|
7178
7100
|
};
|
|
7179
|
-
const _sfc_main$
|
|
7101
|
+
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
7180
7102
|
__name: "FormAction",
|
|
7181
7103
|
props: {
|
|
7182
7104
|
showActionButtonGroup: { type: Boolean, default: true },
|
|
@@ -7316,7 +7238,7 @@ const basicScrollTextProps = {
|
|
|
7316
7238
|
default: ""
|
|
7317
7239
|
}
|
|
7318
7240
|
};
|
|
7319
|
-
const _sfc_main$
|
|
7241
|
+
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
7320
7242
|
name: "BasicScrollText",
|
|
7321
7243
|
props: basicScrollTextProps,
|
|
7322
7244
|
setup(props, {
|
|
@@ -7378,7 +7300,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
7378
7300
|
}, [content()]) : null])]);
|
|
7379
7301
|
}
|
|
7380
7302
|
});
|
|
7381
|
-
const XBasicScrollText = utils.withInstall(_sfc_main$
|
|
7303
|
+
const XBasicScrollText = utils.withInstall(_sfc_main$o);
|
|
7382
7304
|
const componentMap = /* @__PURE__ */ new Map();
|
|
7383
7305
|
componentMap.set("Input", naiveUi.NInput);
|
|
7384
7306
|
componentMap.set("InputNumber", naiveUi.NInputNumber);
|
|
@@ -7477,7 +7399,7 @@ function isComponentFormSchema(schema) {
|
|
|
7477
7399
|
function _isSlot(s) {
|
|
7478
7400
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
7479
7401
|
}
|
|
7480
|
-
const _sfc_main$
|
|
7402
|
+
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
7481
7403
|
name: "BasicFormItem",
|
|
7482
7404
|
components: {
|
|
7483
7405
|
XBasicHelp,
|
|
@@ -8577,7 +8499,7 @@ function useFormValues({ getProps, defaultValueRef, getSchema, formModel }) {
|
|
|
8577
8499
|
}
|
|
8578
8500
|
return { handleFormValues, initDefault };
|
|
8579
8501
|
}
|
|
8580
|
-
const _sfc_main$
|
|
8502
|
+
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
8581
8503
|
__name: "BasicForm",
|
|
8582
8504
|
props: {
|
|
8583
8505
|
card: { type: Boolean, default: false },
|
|
@@ -8768,7 +8690,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
8768
8690
|
default: vue.withCtx(() => [
|
|
8769
8691
|
vue.renderSlot(_ctx.$slots, "formHeader"),
|
|
8770
8692
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getSchema), (schema) => {
|
|
8771
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8693
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$n, {
|
|
8772
8694
|
key: schema.field,
|
|
8773
8695
|
"is-advanced": vue.unref(fieldsIsAdvancedMap)[schema.field],
|
|
8774
8696
|
"form-action-type": formActionType,
|
|
@@ -8788,7 +8710,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
8788
8710
|
})
|
|
8789
8711
|
]), 1032, ["is-advanced", "schema", "form-props", "all-default-values", "form-model"]);
|
|
8790
8712
|
}), 128)),
|
|
8791
|
-
vue.createVNode(_sfc_main$
|
|
8713
|
+
vue.createVNode(_sfc_main$p, vue.mergeProps(getFormActionBindProps.value, { onToggleAdvanced: vue.unref(handleToggleAdvanced) }), vue.createSlots({ _: 2 }, [
|
|
8792
8714
|
vue.renderList(["resetBefore", "submitBefore", "advanceBefore", "advanceAfter"], (item) => {
|
|
8793
8715
|
return {
|
|
8794
8716
|
name: item,
|
|
@@ -8809,8 +8731,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
8809
8731
|
};
|
|
8810
8732
|
}
|
|
8811
8733
|
});
|
|
8812
|
-
const XBasicForm = utils.withInstall(_sfc_main$
|
|
8813
|
-
const _sfc_main$
|
|
8734
|
+
const XBasicForm = utils.withInstall(_sfc_main$m);
|
|
8735
|
+
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
8814
8736
|
__name: "BasicGradientTitle",
|
|
8815
8737
|
props: {
|
|
8816
8738
|
text: {}
|
|
@@ -8843,7 +8765,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
8843
8765
|
}
|
|
8844
8766
|
});
|
|
8845
8767
|
const basicGradientTitleProps = {};
|
|
8846
|
-
const XBasicGradientTitle = utils.withInstall(_sfc_main$
|
|
8768
|
+
const XBasicGradientTitle = utils.withInstall(_sfc_main$l);
|
|
8847
8769
|
const basicIconOnlineProps = {
|
|
8848
8770
|
icon: {
|
|
8849
8771
|
type: String,
|
|
@@ -12740,9 +12662,9 @@ const IconJson = {
|
|
|
12740
12662
|
"yin-yang"
|
|
12741
12663
|
]
|
|
12742
12664
|
};
|
|
12743
|
-
const _hoisted_1$
|
|
12665
|
+
const _hoisted_1$7 = { class: "panel-icon-list" };
|
|
12744
12666
|
const _hoisted_2$3 = ["title", "onClick"];
|
|
12745
|
-
const _sfc_main$
|
|
12667
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
12746
12668
|
__name: "BasicIconPicker",
|
|
12747
12669
|
props: {
|
|
12748
12670
|
disabled: { type: Boolean },
|
|
@@ -12905,7 +12827,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
12905
12827
|
class: vue.normalizeClass(vue.unref(e)("scrollbar"))
|
|
12906
12828
|
}, {
|
|
12907
12829
|
default: vue.withCtx(() => [
|
|
12908
|
-
vue.createElementVNode("ul", _hoisted_1$
|
|
12830
|
+
vue.createElementVNode("ul", _hoisted_1$7, [
|
|
12909
12831
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pageList.value, (item, key2) => {
|
|
12910
12832
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
12911
12833
|
key: key2,
|
|
@@ -12972,11 +12894,11 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
12972
12894
|
};
|
|
12973
12895
|
}
|
|
12974
12896
|
});
|
|
12975
|
-
const XBasicIconPicker = utils.withInstall(_sfc_main$
|
|
12976
|
-
const ROW_KEY = "_MAX_ROW_KEY";
|
|
12977
|
-
const PAGE_SIZE_OPTIONS = [10, 50, 80, 100];
|
|
12978
|
-
const PAGE_SIZE = 10;
|
|
12979
|
-
const FETCH_SETTING = {
|
|
12897
|
+
const XBasicIconPicker = utils.withInstall(_sfc_main$k);
|
|
12898
|
+
const ROW_KEY$1 = "_MAX_ROW_KEY";
|
|
12899
|
+
const PAGE_SIZE_OPTIONS$1 = [10, 50, 80, 100];
|
|
12900
|
+
const PAGE_SIZE$1 = 10;
|
|
12901
|
+
const FETCH_SETTING$1 = {
|
|
12980
12902
|
// The field name of the current page passed to the background
|
|
12981
12903
|
pageField: "page",
|
|
12982
12904
|
// The number field name of each page displayed in the background
|
|
@@ -13003,7 +12925,7 @@ function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination
|
|
|
13003
12925
|
const getDataSourceRef = vue.ref([]);
|
|
13004
12926
|
const getRowKey = vue.computed(() => {
|
|
13005
12927
|
const { rKey } = vue.unref(propsRef);
|
|
13006
|
-
return rKey || ROW_KEY;
|
|
12928
|
+
return rKey || ROW_KEY$1;
|
|
13007
12929
|
});
|
|
13008
12930
|
vue.watchEffect(() => {
|
|
13009
12931
|
tableData.value = vue.unref(dataSourceRef);
|
|
@@ -13029,11 +12951,11 @@ function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination
|
|
|
13029
12951
|
const firstItem = dataSource[0];
|
|
13030
12952
|
const lastItem = dataSource[dataSource.length - 1];
|
|
13031
12953
|
if (firstItem && lastItem) {
|
|
13032
|
-
if (!firstItem[ROW_KEY] || !lastItem[ROW_KEY]) {
|
|
12954
|
+
if (!firstItem[ROW_KEY$1] || !lastItem[ROW_KEY$1]) {
|
|
13033
12955
|
const data = lodashEs.cloneDeep(vue.unref(dataSourceRef));
|
|
13034
12956
|
data.forEach((item) => {
|
|
13035
|
-
if (!item[ROW_KEY]) {
|
|
13036
|
-
item[ROW_KEY] = utils.guid();
|
|
12957
|
+
if (!item[ROW_KEY$1]) {
|
|
12958
|
+
item[ROW_KEY$1] = utils.guid();
|
|
13037
12959
|
}
|
|
13038
12960
|
});
|
|
13039
12961
|
dataSourceRef.value = data;
|
|
@@ -13096,7 +13018,7 @@ function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination
|
|
|
13096
13018
|
function getSearchInfo() {
|
|
13097
13019
|
return searchInfoRef.value;
|
|
13098
13020
|
}
|
|
13099
|
-
function mergeListDataRecord(records, key2 = ROW_KEY) {
|
|
13021
|
+
function mergeListDataRecord(records, key2 = ROW_KEY$1) {
|
|
13100
13022
|
const itemList = lodashEs.cloneDeep(getDataSource() || []);
|
|
13101
13023
|
const items = utils.mergeArray(itemList, records, key2);
|
|
13102
13024
|
setListData(items);
|
|
@@ -13108,11 +13030,11 @@ function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination
|
|
|
13108
13030
|
try {
|
|
13109
13031
|
setLoading(true);
|
|
13110
13032
|
const { pageField, sizeField, listField, totalField } = {
|
|
13111
|
-
...FETCH_SETTING,
|
|
13033
|
+
...FETCH_SETTING$1,
|
|
13112
13034
|
...fetchSetting
|
|
13113
13035
|
};
|
|
13114
13036
|
let pageParams = {};
|
|
13115
|
-
const { currentPage = 1, pageSize = PAGE_SIZE } = vue.unref(getPaginationInfo);
|
|
13037
|
+
const { currentPage = 1, pageSize = PAGE_SIZE$1 } = vue.unref(getPaginationInfo);
|
|
13116
13038
|
const isPagination = lodashEs.isBoolean(pagination) ? pagination : lodashEs.isPlainObject(pagination);
|
|
13117
13039
|
if (lodashEs.isBoolean(pagination) && !pagination) {
|
|
13118
13040
|
pageParams = {};
|
|
@@ -13264,8 +13186,8 @@ function usePagination$1(propsRef) {
|
|
|
13264
13186
|
size: "small",
|
|
13265
13187
|
border: true,
|
|
13266
13188
|
currentPage: 1,
|
|
13267
|
-
pageSize: PAGE_SIZE,
|
|
13268
|
-
pageSizes: PAGE_SIZE_OPTIONS,
|
|
13189
|
+
pageSize: PAGE_SIZE$1,
|
|
13190
|
+
pageSizes: PAGE_SIZE_OPTIONS$1,
|
|
13269
13191
|
layouts: ["PrevJump", "PrevPage", "Number", "NextPage", "NextJump", "Sizes", "Total"],
|
|
13270
13192
|
total: 0
|
|
13271
13193
|
});
|
|
@@ -13302,7 +13224,7 @@ function usePagination$1(propsRef) {
|
|
|
13302
13224
|
}
|
|
13303
13225
|
return { getPagination, getPaginationInfo, setShowPagination, getShowPagination, setPagination };
|
|
13304
13226
|
}
|
|
13305
|
-
const _sfc_main$
|
|
13227
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
13306
13228
|
__name: "BasicListPage",
|
|
13307
13229
|
props: {
|
|
13308
13230
|
listClassName: {},
|
|
@@ -13316,7 +13238,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
13316
13238
|
beforeFetch: {},
|
|
13317
13239
|
afterFetch: {},
|
|
13318
13240
|
handleSearchInfoFn: {},
|
|
13319
|
-
fetchSetting: { default: () => FETCH_SETTING },
|
|
13241
|
+
fetchSetting: { default: () => FETCH_SETTING$1 },
|
|
13320
13242
|
defSort: {},
|
|
13321
13243
|
searchInfo: {},
|
|
13322
13244
|
useSearchForm: { type: Boolean },
|
|
@@ -13439,13 +13361,13 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
13439
13361
|
}, [
|
|
13440
13362
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getDataSourceRef), (item, index2) => {
|
|
13441
13363
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
13442
|
-
key: item[vue.unref(ROW_KEY)],
|
|
13364
|
+
key: item[vue.unref(ROW_KEY$1)],
|
|
13443
13365
|
class: vue.normalizeClass(["basic-list-page-item", getItemClassName(item)])
|
|
13444
13366
|
}, [
|
|
13445
13367
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
13446
13368
|
rowIndex: index2,
|
|
13447
13369
|
row: item,
|
|
13448
|
-
rowKey: item[vue.unref(ROW_KEY)]
|
|
13370
|
+
rowKey: item[vue.unref(ROW_KEY$1)]
|
|
13449
13371
|
})
|
|
13450
13372
|
], 2);
|
|
13451
13373
|
}), 128))
|
|
@@ -13459,7 +13381,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
13459
13381
|
vue.renderSlot(_ctx.$slots, "bottom-before"),
|
|
13460
13382
|
vue.renderSlot(_ctx.$slots, "bottom-after")
|
|
13461
13383
|
], 2),
|
|
13462
|
-
((_a = vue.unref(getPaginationInfo)) == null ? void 0 : _a.total) && __props.pagination ? (vue.openBlock(), vue.createBlock(vue.unref(
|
|
13384
|
+
((_a = vue.unref(getPaginationInfo)) == null ? void 0 : _a.total) && __props.pagination ? (vue.openBlock(), vue.createBlock(vue.unref(vxePcUi.VxePager), vue.mergeProps({ key: 0 }, vue.unref(getPaginationInfo), { onPageChange: vue.unref(onPageChange) }), null, 16, ["onPageChange"])) : vue.createCommentVNode("", true)
|
|
13463
13385
|
], 2),
|
|
13464
13386
|
vue.unref(getLoading) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
13465
13387
|
key: 1,
|
|
@@ -13471,7 +13393,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
13471
13393
|
};
|
|
13472
13394
|
}
|
|
13473
13395
|
});
|
|
13474
|
-
const XBasicListPage = utils.withInstall(_sfc_main$
|
|
13396
|
+
const XBasicListPage = utils.withInstall(_sfc_main$j);
|
|
13475
13397
|
function createLoadingComponent(options) {
|
|
13476
13398
|
let afterLeaveTimer;
|
|
13477
13399
|
const afterLeaveFlag = vue.ref(false);
|
|
@@ -13740,7 +13662,7 @@ const XBasicLoading = {
|
|
|
13740
13662
|
directive: vLoading,
|
|
13741
13663
|
service: Loading
|
|
13742
13664
|
};
|
|
13743
|
-
const _sfc_main$
|
|
13665
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
13744
13666
|
__name: "BasicModal",
|
|
13745
13667
|
props: {
|
|
13746
13668
|
width: {},
|
|
@@ -13892,12 +13814,12 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
13892
13814
|
}
|
|
13893
13815
|
});
|
|
13894
13816
|
const basicModalProps = {};
|
|
13895
|
-
const XBasicModal = utils.withInstall(_sfc_main$
|
|
13896
|
-
const _hoisted_1$
|
|
13817
|
+
const XBasicModal = utils.withInstall(_sfc_main$i);
|
|
13818
|
+
const _hoisted_1$6 = ["id"];
|
|
13897
13819
|
const _hoisted_2$2 = ["textContent"];
|
|
13898
13820
|
const _hoisted_3 = { key: 0 };
|
|
13899
13821
|
const _hoisted_4 = ["innerHTML"];
|
|
13900
|
-
const _sfc_main$
|
|
13822
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
13901
13823
|
__name: "BasicNotification",
|
|
13902
13824
|
props: {
|
|
13903
13825
|
customClass: { default: "" },
|
|
@@ -14033,7 +13955,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
14033
13955
|
}, null, 8, ["class"])) : vue.createCommentVNode("", true)
|
|
14034
13956
|
])
|
|
14035
13957
|
], 2)
|
|
14036
|
-
], 46, _hoisted_1$
|
|
13958
|
+
], 46, _hoisted_1$6), [
|
|
14037
13959
|
[vue.vShow, visible.value]
|
|
14038
13960
|
])
|
|
14039
13961
|
]),
|
|
@@ -14084,7 +14006,7 @@ const notify = (options, context) => {
|
|
|
14084
14006
|
appendTo = document.body;
|
|
14085
14007
|
}
|
|
14086
14008
|
const container = document.createElement("div");
|
|
14087
|
-
const vm = vue.createVNode(_sfc_main$
|
|
14009
|
+
const vm = vue.createVNode(_sfc_main$h, props, utils.isFunction(props.message) ? props.message : vue.isVNode(props.message) ? () => props.message : null);
|
|
14088
14010
|
vm.appContext = utils.isUndefined(context) ? notify._context : context;
|
|
14089
14011
|
vm.props.onDestroy = () => {
|
|
14090
14012
|
vue.render(null, container);
|
|
@@ -14142,7 +14064,7 @@ notify.closeAll = closeAll;
|
|
|
14142
14064
|
notify._context = null;
|
|
14143
14065
|
const $Notification = notify;
|
|
14144
14066
|
const XBasicNotification = $Notification;
|
|
14145
|
-
const _sfc_main$
|
|
14067
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
14146
14068
|
__name: "BasicPage",
|
|
14147
14069
|
props: {
|
|
14148
14070
|
title: {},
|
|
@@ -14242,8 +14164,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
14242
14164
|
};
|
|
14243
14165
|
}
|
|
14244
14166
|
});
|
|
14245
|
-
const XBasicPage = utils.withInstall(_sfc_main$
|
|
14246
|
-
const _sfc_main$
|
|
14167
|
+
const XBasicPage = utils.withInstall(_sfc_main$g);
|
|
14168
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
14247
14169
|
__name: "BasicPanel",
|
|
14248
14170
|
props: {
|
|
14249
14171
|
title: {},
|
|
@@ -14280,7 +14202,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
14280
14202
|
};
|
|
14281
14203
|
}
|
|
14282
14204
|
});
|
|
14283
|
-
const XBasicPanel = utils.withInstall(_sfc_main$
|
|
14205
|
+
const XBasicPanel = utils.withInstall(_sfc_main$f);
|
|
14284
14206
|
const basicRowProps = {
|
|
14285
14207
|
align: String,
|
|
14286
14208
|
justify: String,
|
|
@@ -14424,7 +14346,7 @@ const BasicRow = /* @__PURE__ */ vue.defineComponent({
|
|
|
14424
14346
|
}
|
|
14425
14347
|
});
|
|
14426
14348
|
const XBasicRow = utils.withInstall(BasicRow);
|
|
14427
|
-
const _sfc_main$
|
|
14349
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
14428
14350
|
__name: "BasicSubPanel",
|
|
14429
14351
|
props: {
|
|
14430
14352
|
title: {}
|
|
@@ -14460,34 +14382,21 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
14460
14382
|
}
|
|
14461
14383
|
});
|
|
14462
14384
|
const basicSubPanelProps = {};
|
|
14463
|
-
const XBasicSubPanel = utils.withInstall(_sfc_main$
|
|
14464
|
-
|
|
14465
|
-
|
|
14466
|
-
|
|
14467
|
-
|
|
14468
|
-
|
|
14469
|
-
|
|
14470
|
-
|
|
14471
|
-
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
const documentElement = document.documentElement;
|
|
14479
|
-
if (documentElement) {
|
|
14480
|
-
documentElement.setAttribute("data-vxe-ui-theme", theme);
|
|
14481
|
-
}
|
|
14482
|
-
}
|
|
14483
|
-
}
|
|
14484
|
-
function setVxeUIConfig(config = {}) {
|
|
14485
|
-
const globalConfig2 = lodashEs.merge({}, globalSetting, config);
|
|
14486
|
-
VxeUI.setConfig(globalConfig2);
|
|
14487
|
-
}
|
|
14488
|
-
function setVxeUIFormat(format) {
|
|
14489
|
-
VxeUI.formats.mixin(format);
|
|
14490
|
-
}
|
|
14385
|
+
const XBasicSubPanel = utils.withInstall(_sfc_main$e);
|
|
14386
|
+
const ROW_KEY = "_MAX_ROW_KEY";
|
|
14387
|
+
const PAGE_SIZE_OPTIONS = [10, 50, 80, 100];
|
|
14388
|
+
const PAGE_SIZE = 10;
|
|
14389
|
+
const FETCH_SETTING = {
|
|
14390
|
+
// The field name of the current page passed to the background
|
|
14391
|
+
pageField: "page",
|
|
14392
|
+
// The number field name of each page displayed in the background
|
|
14393
|
+
sizeField: "pageSize",
|
|
14394
|
+
// Field name of the form data returned by the interface
|
|
14395
|
+
listField: "itemList",
|
|
14396
|
+
// Total number of tables returned by the interface field name
|
|
14397
|
+
totalField: "totalCount"
|
|
14398
|
+
};
|
|
14399
|
+
const DEFAULT_SIZE = "small";
|
|
14491
14400
|
function handleFieldColumn(columns) {
|
|
14492
14401
|
columns.forEach((column) => {
|
|
14493
14402
|
column.field || (column.field = column.type || "");
|
|
@@ -14530,7 +14439,7 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
|
|
|
14530
14439
|
}
|
|
14531
14440
|
const {
|
|
14532
14441
|
currentPage = 1,
|
|
14533
|
-
pageSize = PAGE_SIZE
|
|
14442
|
+
pageSize = PAGE_SIZE
|
|
14534
14443
|
} = getPagination;
|
|
14535
14444
|
const seq = ((currentPage < 1 ? 1 : currentPage) - 1) * pageSize + rowIndex + 1;
|
|
14536
14445
|
return vue.createVNode("span", null, [seq]);
|
|
@@ -14658,6 +14567,29 @@ function useColumns(propsRef, getPaginationRef) {
|
|
|
14658
14567
|
setCacheColumns
|
|
14659
14568
|
};
|
|
14660
14569
|
}
|
|
14570
|
+
function parseRowKey(rowKey, record, autoCreateKey) {
|
|
14571
|
+
if (typeof rowKey === "string") {
|
|
14572
|
+
return rowKey;
|
|
14573
|
+
} else if (rowKey) {
|
|
14574
|
+
return rowKey(record);
|
|
14575
|
+
}
|
|
14576
|
+
return ROW_KEY;
|
|
14577
|
+
}
|
|
14578
|
+
function parseRowKeyValue(rowKey, record, autoCreateKey) {
|
|
14579
|
+
return record[parseRowKey(rowKey, record)];
|
|
14580
|
+
}
|
|
14581
|
+
function setVxeTableTheme(name) {
|
|
14582
|
+
const theme = !name || name === "default" ? "light" : name;
|
|
14583
|
+
if (typeof document !== "undefined") {
|
|
14584
|
+
const documentElement = document.documentElement;
|
|
14585
|
+
if (documentElement) {
|
|
14586
|
+
documentElement.setAttribute("data-vxe-ui-theme", theme);
|
|
14587
|
+
}
|
|
14588
|
+
}
|
|
14589
|
+
}
|
|
14590
|
+
function setTableGlobalFormat(format) {
|
|
14591
|
+
vxeTable.VxeUI.formats.mixin(format);
|
|
14592
|
+
}
|
|
14661
14593
|
function useDataSource(propsRef, { tableData, getPaginationInfo, setPagination, setSelection, setLoading, emit }) {
|
|
14662
14594
|
const searchState = vue.reactive({
|
|
14663
14595
|
sortInfo: {},
|
|
@@ -14683,7 +14615,7 @@ function useDataSource(propsRef, { tableData, getPaginationInfo, setPagination,
|
|
|
14683
14615
|
});
|
|
14684
14616
|
const getRowKey = vue.computed(() => {
|
|
14685
14617
|
const { rKey } = vue.unref(propsRef);
|
|
14686
|
-
return vue.unref(getAutoCreateKey) ? ROW_KEY
|
|
14618
|
+
return vue.unref(getAutoCreateKey) ? ROW_KEY : rKey;
|
|
14687
14619
|
});
|
|
14688
14620
|
const getRowConfigRef = vue.computed(() => {
|
|
14689
14621
|
const { rowConfig } = vue.unref(propsRef);
|
|
@@ -14718,11 +14650,11 @@ function useDataSource(propsRef, { tableData, getPaginationInfo, setPagination,
|
|
|
14718
14650
|
const firstItem = dataSource[0];
|
|
14719
14651
|
const lastItem = dataSource[dataSource.length - 1];
|
|
14720
14652
|
if (firstItem && lastItem) {
|
|
14721
|
-
if (!firstItem[ROW_KEY
|
|
14653
|
+
if (!firstItem[ROW_KEY] || !lastItem[ROW_KEY]) {
|
|
14722
14654
|
const data = lodashEs.cloneDeep(vue.unref(dataSourceRef));
|
|
14723
14655
|
data.forEach((item) => {
|
|
14724
|
-
if (!item[ROW_KEY
|
|
14725
|
-
item[ROW_KEY
|
|
14656
|
+
if (!item[ROW_KEY]) {
|
|
14657
|
+
item[ROW_KEY] = utils.guid();
|
|
14726
14658
|
}
|
|
14727
14659
|
if (item.children && item.children.length) {
|
|
14728
14660
|
setTableKey(item.children);
|
|
@@ -14742,8 +14674,8 @@ function useDataSource(propsRef, { tableData, getPaginationInfo, setPagination,
|
|
|
14742
14674
|
function setTableKey(items) {
|
|
14743
14675
|
if (!items || !Array.isArray(items)) return;
|
|
14744
14676
|
items.forEach((item) => {
|
|
14745
|
-
if (!item[ROW_KEY
|
|
14746
|
-
item[ROW_KEY
|
|
14677
|
+
if (!item[ROW_KEY]) {
|
|
14678
|
+
item[ROW_KEY] = utils.guid();
|
|
14747
14679
|
}
|
|
14748
14680
|
if (item.children && item.children.length) {
|
|
14749
14681
|
setTableKey(item.children);
|
|
@@ -14816,7 +14748,7 @@ function useDataSource(propsRef, { tableData, getPaginationInfo, setPagination,
|
|
|
14816
14748
|
function getTableRowKey() {
|
|
14817
14749
|
return vue.unref(getRowKey);
|
|
14818
14750
|
}
|
|
14819
|
-
function mergeTableDataRecord(records, key2 = ROW_KEY
|
|
14751
|
+
function mergeTableDataRecord(records, key2 = ROW_KEY) {
|
|
14820
14752
|
const itemList = lodashEs.cloneDeep(getDataSource() || []);
|
|
14821
14753
|
const items = utils.mergeArray(itemList, records, key2);
|
|
14822
14754
|
setTableData(items);
|
|
@@ -14828,11 +14760,11 @@ function useDataSource(propsRef, { tableData, getPaginationInfo, setPagination,
|
|
|
14828
14760
|
try {
|
|
14829
14761
|
setLoading(true);
|
|
14830
14762
|
const { pageField, sizeField, listField, totalField } = {
|
|
14831
|
-
...FETCH_SETTING
|
|
14763
|
+
...FETCH_SETTING,
|
|
14832
14764
|
...fetchSetting
|
|
14833
14765
|
};
|
|
14834
14766
|
let pageParams = {};
|
|
14835
|
-
const { currentPage = 1, pageSize = PAGE_SIZE
|
|
14767
|
+
const { currentPage = 1, pageSize = PAGE_SIZE } = vue.unref(getPaginationInfo);
|
|
14836
14768
|
if (lodashEs.isBoolean(pagination) && !pagination) {
|
|
14837
14769
|
pageParams = {};
|
|
14838
14770
|
} else {
|
|
@@ -14968,8 +14900,8 @@ function usePagination(propsRef, _emit) {
|
|
|
14968
14900
|
size: DEFAULT_SIZE,
|
|
14969
14901
|
border: true,
|
|
14970
14902
|
currentPage: 1,
|
|
14971
|
-
pageSize: PAGE_SIZE
|
|
14972
|
-
pageSizes: PAGE_SIZE_OPTIONS
|
|
14903
|
+
pageSize: PAGE_SIZE,
|
|
14904
|
+
pageSizes: PAGE_SIZE_OPTIONS,
|
|
14973
14905
|
layouts: ["PrevJump", "PrevPage", "Number", "NextPage", "NextJump", "Sizes", "Total"],
|
|
14974
14906
|
total: 0
|
|
14975
14907
|
});
|
|
@@ -15048,7 +14980,7 @@ function useRowSelection(propsRef, tableData, emit, tableElRef) {
|
|
|
15048
14980
|
});
|
|
15049
14981
|
const getRowKey = vue.computed(() => {
|
|
15050
14982
|
const { rKey } = vue.unref(propsRef);
|
|
15051
|
-
return vue.unref(getAutoCreateKey) ? ROW_KEY
|
|
14983
|
+
return vue.unref(getAutoCreateKey) ? ROW_KEY : rKey;
|
|
15052
14984
|
});
|
|
15053
14985
|
function getCurrentPageKeys() {
|
|
15054
14986
|
const { treeConfig } = vue.unref(propsRef);
|
|
@@ -15259,8 +15191,66 @@ function useTableForm(propsRef, { fetch: fetch2, getLoading, setPagination, setS
|
|
|
15259
15191
|
handleSearchInfoReload
|
|
15260
15192
|
};
|
|
15261
15193
|
}
|
|
15262
|
-
const
|
|
15263
|
-
|
|
15194
|
+
const setting = {
|
|
15195
|
+
size: DEFAULT_SIZE,
|
|
15196
|
+
autoCreateKey: true,
|
|
15197
|
+
showIndexColumn: true,
|
|
15198
|
+
fetchSetting: () => FETCH_SETTING,
|
|
15199
|
+
columns: () => [],
|
|
15200
|
+
fit: true,
|
|
15201
|
+
padding: false,
|
|
15202
|
+
minHeight: 180,
|
|
15203
|
+
border: "inner",
|
|
15204
|
+
showHeader: true,
|
|
15205
|
+
delayHover: 250,
|
|
15206
|
+
autoResize: true,
|
|
15207
|
+
maxHeight: 325,
|
|
15208
|
+
showOverflow: true,
|
|
15209
|
+
showHeaderOverflow: "tooltip",
|
|
15210
|
+
showFooterOverflow: "tooltip",
|
|
15211
|
+
sortConfig: () => ({
|
|
15212
|
+
remote: true
|
|
15213
|
+
}),
|
|
15214
|
+
resizeConfig: () => ({
|
|
15215
|
+
refreshDelay: 250
|
|
15216
|
+
}),
|
|
15217
|
+
radioConfig: () => ({
|
|
15218
|
+
strict: true
|
|
15219
|
+
}),
|
|
15220
|
+
rowConfig: () => ({
|
|
15221
|
+
useKey: true,
|
|
15222
|
+
isCurrent: true,
|
|
15223
|
+
isHover: true,
|
|
15224
|
+
keyField: "_ROW_KEY_"
|
|
15225
|
+
}),
|
|
15226
|
+
checkboxConfig: () => ({
|
|
15227
|
+
strict: true
|
|
15228
|
+
}),
|
|
15229
|
+
tooltipConfig: () => ({
|
|
15230
|
+
enterable: true
|
|
15231
|
+
}),
|
|
15232
|
+
validConfig: () => ({
|
|
15233
|
+
showMessage: true,
|
|
15234
|
+
autoClear: true,
|
|
15235
|
+
autoPos: true,
|
|
15236
|
+
message: "inline",
|
|
15237
|
+
msgMode: "single"
|
|
15238
|
+
}),
|
|
15239
|
+
columnConfig: () => ({
|
|
15240
|
+
resizable: true,
|
|
15241
|
+
useKey: true,
|
|
15242
|
+
maxFixedSize: 4
|
|
15243
|
+
}),
|
|
15244
|
+
customConfig: () => ({
|
|
15245
|
+
mode: "modal"
|
|
15246
|
+
}),
|
|
15247
|
+
toolbarConfig: () => ({
|
|
15248
|
+
custom: true,
|
|
15249
|
+
zoom: true
|
|
15250
|
+
})
|
|
15251
|
+
};
|
|
15252
|
+
const _hoisted_1$5 = { class: "max-table-selection-count" };
|
|
15253
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
15264
15254
|
__name: "BasicTable",
|
|
15265
15255
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
15266
15256
|
layouts: {},
|
|
@@ -15300,7 +15290,10 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15300
15290
|
headerRowStyle: { type: [Object, Function] },
|
|
15301
15291
|
footerRowStyle: { type: [Object, Function] },
|
|
15302
15292
|
footerCellStyle: { type: [Object, Function] },
|
|
15293
|
+
showCustomHeader: { type: Boolean },
|
|
15294
|
+
mergeHeaderCells: {},
|
|
15303
15295
|
mergeCells: {},
|
|
15296
|
+
mergeFooterCells: {},
|
|
15304
15297
|
mergeFooterItems: {},
|
|
15305
15298
|
spanMethod: { type: Function },
|
|
15306
15299
|
footerSpanMethod: { type: Function },
|
|
@@ -15315,6 +15308,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15315
15308
|
cellConfig: {},
|
|
15316
15309
|
headerCellConfig: {},
|
|
15317
15310
|
footerCellConfig: {},
|
|
15311
|
+
aggregateConfig: {},
|
|
15318
15312
|
rowGroupConfig: {},
|
|
15319
15313
|
currentRowConfig: {},
|
|
15320
15314
|
currentColumnConfig: {},
|
|
@@ -15327,9 +15321,12 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15327
15321
|
seqConfig: {},
|
|
15328
15322
|
sortConfig: {},
|
|
15329
15323
|
filterConfig: {},
|
|
15324
|
+
floatingFilterConfig: {},
|
|
15330
15325
|
radioConfig: {},
|
|
15331
15326
|
checkboxConfig: {},
|
|
15327
|
+
headerTooltipConfig: {},
|
|
15332
15328
|
tooltipConfig: {},
|
|
15329
|
+
footerTooltipConfig: {},
|
|
15333
15330
|
exportConfig: {},
|
|
15334
15331
|
importConfig: {},
|
|
15335
15332
|
printConfig: {},
|
|
@@ -15372,6 +15369,9 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15372
15369
|
onPaste: { type: Function },
|
|
15373
15370
|
onCopy: { type: Function },
|
|
15374
15371
|
onCut: { type: Function },
|
|
15372
|
+
onColumnsChange: { type: Function },
|
|
15373
|
+
onDataChange: { type: Function },
|
|
15374
|
+
onFooterDataChange: { type: Function },
|
|
15375
15375
|
onCurrentRowChange: { type: Function },
|
|
15376
15376
|
onCurrentRowDisabled: { type: Function },
|
|
15377
15377
|
onCurrentColumnChange: { type: Function },
|
|
@@ -15382,6 +15382,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15382
15382
|
onCheckboxRangeStart: { type: Function },
|
|
15383
15383
|
onCheckboxRangeChange: { type: Function },
|
|
15384
15384
|
onCheckboxRangeEnd: { type: Function },
|
|
15385
|
+
onCheckboxRangeSelect: { type: Function },
|
|
15385
15386
|
onCellClick: { type: Function },
|
|
15386
15387
|
onCellDblclick: { type: Function },
|
|
15387
15388
|
onCellMenu: { type: Function },
|
|
@@ -15394,7 +15395,11 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15394
15395
|
onFooterCellDblclick: { type: Function },
|
|
15395
15396
|
onFooterCellMenu: { type: Function },
|
|
15396
15397
|
onSortChange: { type: Function },
|
|
15398
|
+
onClearSort: { type: Function },
|
|
15399
|
+
onClearAllSort: { type: Function },
|
|
15397
15400
|
onFilterChange: { type: Function },
|
|
15401
|
+
onClearFilter: { type: Function },
|
|
15402
|
+
onClearAllFilter: { type: Function },
|
|
15398
15403
|
onFilterVisible: { type: Function },
|
|
15399
15404
|
onResizableChange: { type: Function },
|
|
15400
15405
|
onToggleRowGroupExpand: { type: Function },
|
|
@@ -15411,6 +15416,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15411
15416
|
onRowDragstart: { type: Function },
|
|
15412
15417
|
onRowDragover: { type: Function },
|
|
15413
15418
|
onRowDragend: { type: Function },
|
|
15419
|
+
onRowRemoveDragend: { type: Function },
|
|
15420
|
+
onRowInsertDragend: { type: Function },
|
|
15414
15421
|
onColumnDragstart: { type: Function },
|
|
15415
15422
|
onColumnDragover: { type: Function },
|
|
15416
15423
|
onColumnDragend: { type: Function },
|
|
@@ -15455,13 +15462,11 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15455
15462
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15456
15463
|
const props = __props;
|
|
15457
15464
|
const emit = __emit;
|
|
15458
|
-
const tableConfig = useTableConfig();
|
|
15459
|
-
setVxeUIConfig(tableConfig || {});
|
|
15460
15465
|
const attrs = vue.useAttrs();
|
|
15461
15466
|
const { b, e, is } = useNamespace("basic-table");
|
|
15462
15467
|
const { t } = useLocale();
|
|
15463
15468
|
const slots = vue.useSlots();
|
|
15464
|
-
const innerPropsRef = vue.ref();
|
|
15469
|
+
const innerPropsRef = vue.ref({});
|
|
15465
15470
|
const getProps = vue.computed(() => {
|
|
15466
15471
|
return { ...props, ...vue.unref(innerPropsRef) };
|
|
15467
15472
|
});
|
|
@@ -15503,12 +15508,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15503
15508
|
showFooter: vue.unref(showFooter),
|
|
15504
15509
|
...vue.unref(getRowSelectionRef),
|
|
15505
15510
|
...vue.unref(getSortRef),
|
|
15506
|
-
...vue.unref(getRowConfigRef)
|
|
15507
|
-
toolbarConfig: {
|
|
15508
|
-
zoom: true,
|
|
15509
|
-
custom: true,
|
|
15510
|
-
...vue.unref(getProps).toolbarConfig
|
|
15511
|
-
}
|
|
15511
|
+
...vue.unref(getRowConfigRef)
|
|
15512
15512
|
};
|
|
15513
15513
|
return propsData;
|
|
15514
15514
|
});
|
|
@@ -15639,13 +15639,13 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15639
15639
|
class: vue.normalizeClass(vue.unref(e)("selection-count"))
|
|
15640
15640
|
}, [
|
|
15641
15641
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("max.basic.selected")), 1),
|
|
15642
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
15642
|
+
vue.createElementVNode("span", _hoisted_1$5, vue.toDisplayString(vue.unref(getSelectRows)().length), 1),
|
|
15643
15643
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(t)("max.basic.item")), 1)
|
|
15644
15644
|
], 2)
|
|
15645
15645
|
], 2)) : vue.createCommentVNode("", true),
|
|
15646
15646
|
vue.renderSlot(_ctx.$slots, "selection-wrapper-after")
|
|
15647
15647
|
], 2),
|
|
15648
|
-
((_a = vue.unref(getPaginationInfo)) == null ? void 0 : _a.total) && __props.pagination ? (vue.openBlock(), vue.createBlock(vue.unref(
|
|
15648
|
+
((_a = vue.unref(getPaginationInfo)) == null ? void 0 : _a.total) && __props.pagination ? (vue.openBlock(), vue.createBlock(vue.unref(vxePcUi.VxePager), vue.mergeProps({ key: 0 }, vue.unref(getPaginationInfo), { onPageChange: vue.unref(onPageChange) }), null, 16, ["onPageChange"])) : vue.createCommentVNode("", true)
|
|
15649
15649
|
], 2)
|
|
15650
15650
|
];
|
|
15651
15651
|
}),
|
|
@@ -15703,9 +15703,9 @@ const vxeTableFormatter = {
|
|
|
15703
15703
|
}
|
|
15704
15704
|
}
|
|
15705
15705
|
};
|
|
15706
|
-
VxeUI.formats.mixin(vxeTableFormatter);
|
|
15707
|
-
const XBasicTable = utils.withInstall(_sfc_main$
|
|
15708
|
-
const _sfc_main$
|
|
15706
|
+
vxeTable.VxeUI.formats.mixin(vxeTableFormatter);
|
|
15707
|
+
const XBasicTable = utils.withInstall(_sfc_main$d);
|
|
15708
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
15709
15709
|
__name: "BasicTag",
|
|
15710
15710
|
props: {
|
|
15711
15711
|
tagType: { type: [Number, Boolean] },
|
|
@@ -15730,7 +15730,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15730
15730
|
};
|
|
15731
15731
|
}
|
|
15732
15732
|
});
|
|
15733
|
-
const XBasicTag = utils.withInstall(_sfc_main$
|
|
15733
|
+
const XBasicTag = utils.withInstall(_sfc_main$c);
|
|
15734
15734
|
const attrAccept = (file, acceptedFiles) => {
|
|
15735
15735
|
if (file && acceptedFiles) {
|
|
15736
15736
|
const acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(",");
|
|
@@ -16314,8 +16314,10 @@ const AjaxUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
16314
16314
|
webkitdirectory: "webkitdirectory"
|
|
16315
16315
|
} : {};
|
|
16316
16316
|
const eventsFat = {
|
|
16317
|
+
// eslint-disable-next-line prettier/prettier
|
|
16317
16318
|
onClick: openFileDialogOnClick ? onClick : () => {
|
|
16318
16319
|
},
|
|
16320
|
+
// eslint-disable-next-line prettier/prettier
|
|
16319
16321
|
onKeydown: openFileDialogOnClick ? onKeyDown : () => {
|
|
16320
16322
|
},
|
|
16321
16323
|
onMouseenter,
|
|
@@ -17303,7 +17305,7 @@ const BasicUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
17303
17305
|
} = props;
|
|
17304
17306
|
const {
|
|
17305
17307
|
class: className,
|
|
17306
|
-
style:
|
|
17308
|
+
style: _styleName,
|
|
17307
17309
|
...transAttrs
|
|
17308
17310
|
} = attrs;
|
|
17309
17311
|
const rcUploadProps = {
|
|
@@ -17463,9 +17465,9 @@ const BasicUploadDragger = /* @__PURE__ */ vue.defineComponent({
|
|
|
17463
17465
|
}
|
|
17464
17466
|
});
|
|
17465
17467
|
const XBasicUploadDragger = utils.withInstall(BasicUploadDragger);
|
|
17466
|
-
const _hoisted_1$
|
|
17468
|
+
const _hoisted_1$4 = ["title"];
|
|
17467
17469
|
const _hoisted_2$1 = ["title"];
|
|
17468
|
-
const _sfc_main$
|
|
17470
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
17469
17471
|
__name: "BasicViewBar",
|
|
17470
17472
|
props: {
|
|
17471
17473
|
fixed: { type: Boolean },
|
|
@@ -17556,7 +17558,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
17556
17558
|
onClick: scrollPrev
|
|
17557
17559
|
}, [
|
|
17558
17560
|
vue.createVNode(vue.unref(XBasicSvgIcon), { icon: "ri:arrow-left-s-line" })
|
|
17559
|
-
], 10, _hoisted_1$
|
|
17561
|
+
], 10, _hoisted_1$4),
|
|
17560
17562
|
vue.createElementVNode("div", {
|
|
17561
17563
|
class: vue.normalizeClass({ [vue.unref(is)("hide")]: !scrollable.value, [vue.unref(e)("next")]: true }),
|
|
17562
17564
|
title: vue.unref(t)("max.viewBar.next"),
|
|
@@ -17577,13 +17579,13 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
17577
17579
|
};
|
|
17578
17580
|
}
|
|
17579
17581
|
});
|
|
17580
|
-
const XBasicViewBar = utils.withInstall(_sfc_main$
|
|
17581
|
-
const _sfc_main$
|
|
17582
|
+
const XBasicViewBar = utils.withInstall(_sfc_main$b);
|
|
17583
|
+
const _sfc_main$a = vue.defineComponent({
|
|
17582
17584
|
name: "CLoadingIcon"
|
|
17583
17585
|
});
|
|
17584
|
-
const _hoisted_1$
|
|
17586
|
+
const _hoisted_1$3 = { viewBox: "0 0 50 50" };
|
|
17585
17587
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17586
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
17588
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$3, [..._cache[0] || (_cache[0] = [
|
|
17587
17589
|
vue.createElementVNode("circle", {
|
|
17588
17590
|
class: "imax-loading-icon__circle",
|
|
17589
17591
|
cx: "25",
|
|
@@ -17595,7 +17597,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17595
17597
|
}, null, -1)
|
|
17596
17598
|
])]);
|
|
17597
17599
|
}
|
|
17598
|
-
const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17600
|
+
const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render]]);
|
|
17599
17601
|
var ignoreEnum = /* @__PURE__ */ ((ignoreEnum2) => {
|
|
17600
17602
|
ignoreEnum2["none"] = "none";
|
|
17601
17603
|
ignoreEnum2["parents"] = "parents";
|
|
@@ -17794,9 +17796,9 @@ const useTreeNodeCls = (props, dragoverRefs) => {
|
|
|
17794
17796
|
titleCls
|
|
17795
17797
|
};
|
|
17796
17798
|
};
|
|
17797
|
-
const _hoisted_1$
|
|
17799
|
+
const _hoisted_1$2 = ["d", "stroke-width", "stroke", "stroke-dasharray"];
|
|
17798
17800
|
const _hoisted_2 = ["draggable"];
|
|
17799
|
-
const _sfc_main$
|
|
17801
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
17800
17802
|
...{
|
|
17801
17803
|
name: "VTreeNode"
|
|
17802
17804
|
},
|
|
@@ -18010,7 +18012,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
18010
18012
|
"stroke-width": strokeWidth.value,
|
|
18011
18013
|
stroke: showLineParams.value.color,
|
|
18012
18014
|
"stroke-dasharray": strokeDasharray.value
|
|
18013
|
-
}, null, 8, _hoisted_1$
|
|
18015
|
+
}, null, 8, _hoisted_1$2)
|
|
18014
18016
|
], 4);
|
|
18015
18017
|
}), 128)) : vue.createCommentVNode("", true),
|
|
18016
18018
|
vue.createElementVNode("div", {
|
|
@@ -18110,7 +18112,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
18110
18112
|
};
|
|
18111
18113
|
}
|
|
18112
18114
|
});
|
|
18113
|
-
const XTreeNode = utils.withInstall(_sfc_main$
|
|
18115
|
+
const XTreeNode = utils.withInstall(_sfc_main$9);
|
|
18114
18116
|
const useExpandAnimation = (renderNodesRef, renderStartRef, props) => {
|
|
18115
18117
|
const expandAnimationStart = vue.ref(false);
|
|
18116
18118
|
const expandAnimationReady = vue.ref(false);
|
|
@@ -19560,7 +19562,7 @@ const pickReadonly = (obj, ...keys) => {
|
|
|
19560
19562
|
});
|
|
19561
19563
|
return picked;
|
|
19562
19564
|
};
|
|
19563
|
-
const _sfc_main$
|
|
19565
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
19564
19566
|
...{
|
|
19565
19567
|
name: "VTree",
|
|
19566
19568
|
inheritAttrs: false
|
|
@@ -20049,7 +20051,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20049
20051
|
};
|
|
20050
20052
|
}
|
|
20051
20053
|
});
|
|
20052
|
-
const XTree = utils.withInstall(_sfc_main$
|
|
20054
|
+
const XTree = utils.withInstall(_sfc_main$8);
|
|
20053
20055
|
const useTreeSearchCls = (props, options) => {
|
|
20054
20056
|
const { checkAllStatus, isShowingChecked } = options;
|
|
20055
20057
|
const { b } = useNamespace("tree-search");
|
|
@@ -20134,8 +20136,8 @@ const DEFAULT_TREE_SEARCH_PROPS = {
|
|
|
20134
20136
|
searchDebounceTime: 300
|
|
20135
20137
|
};
|
|
20136
20138
|
const TREE_SEARCH_EVENTS = ["search", ...TREE_EVENTS];
|
|
20137
|
-
const _hoisted_1 = ["placeholder", "disabled"];
|
|
20138
|
-
const _sfc_main$
|
|
20139
|
+
const _hoisted_1$1 = ["placeholder", "disabled"];
|
|
20140
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
20139
20141
|
...{
|
|
20140
20142
|
name: "VTreeSearch",
|
|
20141
20143
|
inheritAttrs: false
|
|
@@ -20392,7 +20394,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20392
20394
|
placeholder: placeholder.value,
|
|
20393
20395
|
disabled: __props.searchDisabled,
|
|
20394
20396
|
onInput: handleSearch
|
|
20395
|
-
}, null, 42, _hoisted_1), [
|
|
20397
|
+
}, null, 42, _hoisted_1$1), [
|
|
20396
20398
|
[vue.vModelText, keyword.value]
|
|
20397
20399
|
])
|
|
20398
20400
|
])
|
|
@@ -20445,7 +20447,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20445
20447
|
};
|
|
20446
20448
|
}
|
|
20447
20449
|
});
|
|
20448
|
-
const XTreeSearch = utils.withInstall(_sfc_main$
|
|
20450
|
+
const XTreeSearch = utils.withInstall(_sfc_main$7);
|
|
20449
20451
|
const useTreeDropCls = (props, options) => {
|
|
20450
20452
|
const { dropdownVisible, checkedCount, selectedTitle } = options;
|
|
20451
20453
|
const { b } = useNamespace("tree-drop");
|
|
@@ -20517,7 +20519,7 @@ const DEFAULT_TREE_DROP_PROPS = {
|
|
|
20517
20519
|
};
|
|
20518
20520
|
const TREE_SEARCH_API_METHODS = [...TREE_API_METHODS, "clearKeyword", "getKeyword", "search"];
|
|
20519
20521
|
const TREE_DROP_EVENTS = ["clear", "dropdown-visible-change", ...TREE_SEARCH_EVENTS];
|
|
20520
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
20522
|
+
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
20521
20523
|
...{
|
|
20522
20524
|
name: "VTreeDrop",
|
|
20523
20525
|
inheritAttrs: false
|
|
@@ -20882,7 +20884,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20882
20884
|
};
|
|
20883
20885
|
}
|
|
20884
20886
|
});
|
|
20885
|
-
const XTreeDrop = utils.withInstall(_sfc_main);
|
|
20887
|
+
const XTreeDrop = utils.withInstall(_sfc_main$6);
|
|
20886
20888
|
const components = [
|
|
20887
20889
|
XConfigProvider,
|
|
20888
20890
|
XBasicSvgIcon,
|
|
@@ -20944,12 +20946,263 @@ const makeInstaller = (components2 = []) => {
|
|
|
20944
20946
|
};
|
|
20945
20947
|
};
|
|
20946
20948
|
const installer = makeInstaller([...components]);
|
|
20949
|
+
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
20950
|
+
__name: "BasicButtonCreate",
|
|
20951
|
+
emits: ["click"],
|
|
20952
|
+
setup(__props, { emit: __emit }) {
|
|
20953
|
+
const emit = __emit;
|
|
20954
|
+
const attrs = vue.useAttrs();
|
|
20955
|
+
function onClickHandler() {
|
|
20956
|
+
emit("click");
|
|
20957
|
+
}
|
|
20958
|
+
return (_ctx, _cache) => {
|
|
20959
|
+
return vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), vue.mergeProps({
|
|
20960
|
+
icon: "ri-add-fill",
|
|
20961
|
+
type: "primary"
|
|
20962
|
+
}, vue.unref(attrs), { onClick: onClickHandler }), {
|
|
20963
|
+
default: vue.withCtx(() => [
|
|
20964
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
20965
|
+
_cache[0] || (_cache[0] = vue.createTextVNode("新增", -1))
|
|
20966
|
+
])
|
|
20967
|
+
]),
|
|
20968
|
+
_: 3
|
|
20969
|
+
}, 16);
|
|
20970
|
+
};
|
|
20971
|
+
}
|
|
20972
|
+
});
|
|
20973
|
+
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
20974
|
+
__name: "BasicButtonDelete",
|
|
20975
|
+
emits: ["click"],
|
|
20976
|
+
setup(__props, { emit: __emit }) {
|
|
20977
|
+
const emit = __emit;
|
|
20978
|
+
const attrs = vue.useAttrs();
|
|
20979
|
+
function onClickHandler() {
|
|
20980
|
+
emit("click");
|
|
20981
|
+
}
|
|
20982
|
+
return (_ctx, _cache) => {
|
|
20983
|
+
return vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), vue.mergeProps({
|
|
20984
|
+
type: "error",
|
|
20985
|
+
icon: "ri-delete-bin-5-fill"
|
|
20986
|
+
}, vue.unref(attrs), { onClick: onClickHandler }), {
|
|
20987
|
+
default: vue.withCtx(() => [
|
|
20988
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
20989
|
+
_cache[0] || (_cache[0] = vue.createTextVNode("删除", -1))
|
|
20990
|
+
])
|
|
20991
|
+
]),
|
|
20992
|
+
_: 3
|
|
20993
|
+
}, 16);
|
|
20994
|
+
};
|
|
20995
|
+
}
|
|
20996
|
+
});
|
|
20997
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
20998
|
+
__name: "BasicButtonEdit",
|
|
20999
|
+
emits: ["click"],
|
|
21000
|
+
setup(__props, { emit: __emit }) {
|
|
21001
|
+
const emit = __emit;
|
|
21002
|
+
const attrs = vue.useAttrs();
|
|
21003
|
+
function onClickHandler() {
|
|
21004
|
+
emit("click");
|
|
21005
|
+
}
|
|
21006
|
+
return (_ctx, _cache) => {
|
|
21007
|
+
return vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), vue.mergeProps({
|
|
21008
|
+
icon: "ri-edit-fill",
|
|
21009
|
+
type: "primary"
|
|
21010
|
+
}, vue.unref(attrs), { onClick: onClickHandler }), {
|
|
21011
|
+
default: vue.withCtx(() => [
|
|
21012
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
21013
|
+
_cache[0] || (_cache[0] = vue.createTextVNode("编辑", -1))
|
|
21014
|
+
])
|
|
21015
|
+
]),
|
|
21016
|
+
_: 3
|
|
21017
|
+
}, 16);
|
|
21018
|
+
};
|
|
21019
|
+
}
|
|
21020
|
+
});
|
|
21021
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
21022
|
+
__name: "BasicButtonExport",
|
|
21023
|
+
props: {
|
|
21024
|
+
href: {},
|
|
21025
|
+
exportApi: { type: Function },
|
|
21026
|
+
beforeFetch: { type: Function },
|
|
21027
|
+
afterFetch: { type: Function },
|
|
21028
|
+
download: {},
|
|
21029
|
+
origin: { type: Boolean },
|
|
21030
|
+
onClick: { type: Function }
|
|
21031
|
+
},
|
|
21032
|
+
setup(__props) {
|
|
21033
|
+
const props = __props;
|
|
21034
|
+
const attrs = vue.useAttrs();
|
|
21035
|
+
async function downloadFileRemote() {
|
|
21036
|
+
if (!props.exportApi) return false;
|
|
21037
|
+
const params = utils.isFunction(props.beforeFetch) ? props.beforeFetch() : {};
|
|
21038
|
+
const { response } = await props.exportApi(params);
|
|
21039
|
+
if (response.data) {
|
|
21040
|
+
utils.downloadFileByResponseData(response);
|
|
21041
|
+
}
|
|
21042
|
+
props.afterFetch && props.afterFetch(response);
|
|
21043
|
+
}
|
|
21044
|
+
function onClickHandler() {
|
|
21045
|
+
var _a;
|
|
21046
|
+
if (props.origin) {
|
|
21047
|
+
(_a = props.onClick) == null ? void 0 : _a.call(props);
|
|
21048
|
+
return false;
|
|
21049
|
+
}
|
|
21050
|
+
if (!props.exportApi) {
|
|
21051
|
+
utils.downloadFileStatic(props.href, props.download);
|
|
21052
|
+
return false;
|
|
21053
|
+
}
|
|
21054
|
+
downloadFileRemote();
|
|
21055
|
+
}
|
|
21056
|
+
return (_ctx, _cache) => {
|
|
21057
|
+
return vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), vue.mergeProps({
|
|
21058
|
+
icon: "ri:export-line",
|
|
21059
|
+
type: "primary"
|
|
21060
|
+
}, vue.unref(attrs), { onClick: onClickHandler }), {
|
|
21061
|
+
default: vue.withCtx(() => [
|
|
21062
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
21063
|
+
_cache[0] || (_cache[0] = vue.createTextVNode("导出", -1))
|
|
21064
|
+
])
|
|
21065
|
+
]),
|
|
21066
|
+
_: 3
|
|
21067
|
+
}, 16);
|
|
21068
|
+
};
|
|
21069
|
+
}
|
|
21070
|
+
});
|
|
21071
|
+
const _hoisted_1 = ["multiple", "name", "accept"];
|
|
21072
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
21073
|
+
__name: "BasicButtonImport",
|
|
21074
|
+
props: {
|
|
21075
|
+
name: { default: "file" },
|
|
21076
|
+
accept: { default: ".xlsx,.xls,.csv" },
|
|
21077
|
+
multiple: { type: Boolean, default: false },
|
|
21078
|
+
beforeUpload: { type: Function, default: void 0 }
|
|
21079
|
+
},
|
|
21080
|
+
emits: ["change"],
|
|
21081
|
+
setup(__props, { emit: __emit }) {
|
|
21082
|
+
const props = __props;
|
|
21083
|
+
const emit = __emit;
|
|
21084
|
+
const attrs = vue.useAttrs();
|
|
21085
|
+
const uid2 = vue.ref(utils.guid());
|
|
21086
|
+
const fileInputRef = vue.useTemplateRef("fileInputRef");
|
|
21087
|
+
function onClickHandler() {
|
|
21088
|
+
var _a;
|
|
21089
|
+
(_a = fileInputRef.value) == null ? void 0 : _a.click();
|
|
21090
|
+
}
|
|
21091
|
+
function reset() {
|
|
21092
|
+
uid2.value = utils.guid();
|
|
21093
|
+
}
|
|
21094
|
+
async function processFile(file, fileList) {
|
|
21095
|
+
const { beforeUpload } = props;
|
|
21096
|
+
let transformedFile = file;
|
|
21097
|
+
if (beforeUpload) {
|
|
21098
|
+
try {
|
|
21099
|
+
transformedFile = await beforeUpload(file, fileList);
|
|
21100
|
+
} catch (e) {
|
|
21101
|
+
console.warn("max-ajax-uploader", e);
|
|
21102
|
+
transformedFile = false;
|
|
21103
|
+
}
|
|
21104
|
+
if (transformedFile === false) {
|
|
21105
|
+
return {
|
|
21106
|
+
origin: file
|
|
21107
|
+
};
|
|
21108
|
+
}
|
|
21109
|
+
}
|
|
21110
|
+
return {
|
|
21111
|
+
origin: file
|
|
21112
|
+
};
|
|
21113
|
+
}
|
|
21114
|
+
function uploadFiles(files) {
|
|
21115
|
+
const originFiles = [...files];
|
|
21116
|
+
const postFiles = originFiles.map((file) => {
|
|
21117
|
+
return processFile(file, originFiles);
|
|
21118
|
+
});
|
|
21119
|
+
Promise.all(postFiles).then((fileList) => {
|
|
21120
|
+
if (fileList.length === 0) {
|
|
21121
|
+
return;
|
|
21122
|
+
}
|
|
21123
|
+
const file = fileList[0].origin;
|
|
21124
|
+
const po = new FormData();
|
|
21125
|
+
po.append("file", file);
|
|
21126
|
+
emit("change", { file: fileList[0].origin, files: fileList, param: po });
|
|
21127
|
+
});
|
|
21128
|
+
}
|
|
21129
|
+
function onFileChange(e) {
|
|
21130
|
+
const { accept } = props;
|
|
21131
|
+
const { files } = e.target;
|
|
21132
|
+
const acceptedFiles = [...files].filter((file) => utils.attrAccept(file, accept));
|
|
21133
|
+
uploadFiles(acceptedFiles);
|
|
21134
|
+
reset();
|
|
21135
|
+
}
|
|
21136
|
+
return (_ctx, _cache) => {
|
|
21137
|
+
return vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), vue.mergeProps({
|
|
21138
|
+
icon: "ri:import-line",
|
|
21139
|
+
type: "primary"
|
|
21140
|
+
}, vue.unref(attrs), { onClick: onClickHandler }), {
|
|
21141
|
+
default: vue.withCtx(() => [
|
|
21142
|
+
(vue.openBlock(), vue.createElementBlock("input", {
|
|
21143
|
+
key: uid2.value,
|
|
21144
|
+
ref_key: "fileInputRef",
|
|
21145
|
+
ref: fileInputRef,
|
|
21146
|
+
type: "file",
|
|
21147
|
+
class: "hidden",
|
|
21148
|
+
multiple: __props.multiple,
|
|
21149
|
+
name: __props.name,
|
|
21150
|
+
accept: __props.accept,
|
|
21151
|
+
onChange: onFileChange
|
|
21152
|
+
}, null, 40, _hoisted_1)),
|
|
21153
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
21154
|
+
_cache[0] || (_cache[0] = vue.createTextVNode("导入", -1))
|
|
21155
|
+
], true)
|
|
21156
|
+
]),
|
|
21157
|
+
_: 3
|
|
21158
|
+
}, 16);
|
|
21159
|
+
};
|
|
21160
|
+
}
|
|
21161
|
+
});
|
|
21162
|
+
const BasicButtonImport = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-aee6611b"]]);
|
|
21163
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
21164
|
+
__name: "BasicButtonPrint",
|
|
21165
|
+
emits: ["click"],
|
|
21166
|
+
setup(__props, { emit: __emit }) {
|
|
21167
|
+
const emit = __emit;
|
|
21168
|
+
const attrs = vue.useAttrs();
|
|
21169
|
+
function onClickHandler() {
|
|
21170
|
+
emit("click");
|
|
21171
|
+
}
|
|
21172
|
+
return (_ctx, _cache) => {
|
|
21173
|
+
return vue.openBlock(), vue.createBlock(vue.unref(XBasicButton), vue.mergeProps({
|
|
21174
|
+
icon: "ri-printer-line",
|
|
21175
|
+
type: "primary"
|
|
21176
|
+
}, vue.unref(attrs), { onClick: onClickHandler }), {
|
|
21177
|
+
default: vue.withCtx(() => [
|
|
21178
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
21179
|
+
_cache[0] || (_cache[0] = vue.createTextVNode("打印", -1))
|
|
21180
|
+
])
|
|
21181
|
+
]),
|
|
21182
|
+
_: 3
|
|
21183
|
+
}, 16);
|
|
21184
|
+
};
|
|
21185
|
+
}
|
|
21186
|
+
});
|
|
21187
|
+
const XBasicButtonCreate = utils.withInstall(_sfc_main$5);
|
|
21188
|
+
const XBasicButtonEdit = utils.withInstall(_sfc_main$3);
|
|
21189
|
+
const XBasicButtonDelete = utils.withInstall(_sfc_main$4);
|
|
21190
|
+
const XBasicButtonExport = utils.withInstall(_sfc_main$2);
|
|
21191
|
+
const XBasicButtonImport = utils.withInstall(BasicButtonImport);
|
|
21192
|
+
const XBasicButtonPrint = utils.withInstall(_sfc_main);
|
|
20947
21193
|
const install = installer.install;
|
|
21194
|
+
Object.defineProperty(exports, "UIGlobal", {
|
|
21195
|
+
enumerable: true,
|
|
21196
|
+
get: () => vxePcUi.VxeUI
|
|
21197
|
+
});
|
|
20948
21198
|
Object.defineProperty(exports, "VxePager", {
|
|
20949
21199
|
enumerable: true,
|
|
20950
|
-
get: () =>
|
|
21200
|
+
get: () => vxePcUi.VxePager
|
|
21201
|
+
});
|
|
21202
|
+
Object.defineProperty(exports, "TableGlobal", {
|
|
21203
|
+
enumerable: true,
|
|
21204
|
+
get: () => vxeTable.VxeUI
|
|
20951
21205
|
});
|
|
20952
|
-
exports.VxeUI = VxeUI;
|
|
20953
21206
|
Object.defineProperty(exports, "VxeColgroup", {
|
|
20954
21207
|
enumerable: true,
|
|
20955
21208
|
get: () => vxeTable.VxeColgroup
|
|
@@ -20970,12 +21223,17 @@ Object.defineProperty(exports, "VxeToolbar", {
|
|
|
20970
21223
|
enumerable: true,
|
|
20971
21224
|
get: () => vxeTable.VxeToolbar
|
|
20972
21225
|
});
|
|
20973
|
-
exports.VxeUITable = vxeTable;
|
|
20974
21226
|
exports.LIST_IGNORE = LIST_IGNORE;
|
|
20975
21227
|
exports.TreeNode = TreeNode;
|
|
20976
21228
|
exports.XBasicArrow = XBasicArrow;
|
|
20977
21229
|
exports.XBasicButton = XBasicButton;
|
|
21230
|
+
exports.XBasicButtonCreate = XBasicButtonCreate;
|
|
21231
|
+
exports.XBasicButtonDelete = XBasicButtonDelete;
|
|
21232
|
+
exports.XBasicButtonEdit = XBasicButtonEdit;
|
|
21233
|
+
exports.XBasicButtonExport = XBasicButtonExport;
|
|
20978
21234
|
exports.XBasicButtonGroup = XBasicButtonGroup;
|
|
21235
|
+
exports.XBasicButtonImport = XBasicButtonImport;
|
|
21236
|
+
exports.XBasicButtonPrint = XBasicButtonPrint;
|
|
20979
21237
|
exports.XBasicCard = XBasicCard;
|
|
20980
21238
|
exports.XBasicCascader = XBasicCascader;
|
|
20981
21239
|
exports.XBasicCheckbox = XBasicCheckbox;
|
|
@@ -21049,9 +21307,8 @@ exports.makeInstaller = makeInstaller;
|
|
|
21049
21307
|
exports.notificationTypes = notificationTypes;
|
|
21050
21308
|
exports.provideGlobalConfig = provideGlobalConfig;
|
|
21051
21309
|
exports.responsiveArray = responsiveArray;
|
|
21310
|
+
exports.setTableGlobalFormat = setTableGlobalFormat;
|
|
21052
21311
|
exports.setVxeTableTheme = setVxeTableTheme;
|
|
21053
|
-
exports.setVxeUIConfig = setVxeUIConfig;
|
|
21054
|
-
exports.setVxeUIFormat = setVxeUIFormat;
|
|
21055
21312
|
exports.useBasicDrawerModal = useBasicDrawerModal;
|
|
21056
21313
|
exports.useComponentRegister = useComponentRegister;
|
|
21057
21314
|
exports.useConfigProvider = useConfigProvider;
|
|
@@ -21066,6 +21323,7 @@ exports.useNamespace = useNamespace;
|
|
|
21066
21323
|
exports.useResponsiveObserve = useResponsiveObserve;
|
|
21067
21324
|
exports.useSameTarget = useSameTarget;
|
|
21068
21325
|
exports.useTableConfig = useTableConfig;
|
|
21326
|
+
exports.useThemeOverrides = useThemeOverrides;
|
|
21069
21327
|
exports.useZIndex = useZIndex;
|
|
21070
21328
|
exports.vLoading = vLoading;
|
|
21071
21329
|
//# sourceMappingURL=index.cjs.map
|