@ecan-bi/datav 1.1.0 → 1.1.1
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/index.es.js +131 -59
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +130 -58
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +31 -31
- package/package.json +1 -1
- package/types/utils/types.d.ts +5 -0
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.1 */
|
|
2
2
|
var _a, _b, _c, _d;
|
|
3
|
-
import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
|
|
3
|
+
import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, onBeforeUnmount, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
|
|
4
4
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
5
5
|
import { addListener, removeListener } from "resize-detector";
|
|
6
6
|
import { Spin as Spin$1, Skeleton as Skeleton$1, message, Progress, Input as Input$1, DatePicker as DatePicker$1, Select as Select$1, RangePicker as RangePicker$1, Button as Button$1, CheckboxGroup, Modal as Modal$1, Table as Table$1, TableSummary, TableSummaryRow, TableSummaryCell } from "ant-design-vue";
|
|
@@ -1560,13 +1560,11 @@ const BASE_URL = ((_c = window == null ? void 0 : window.config) == null ? void
|
|
|
1560
1560
|
const ERD_URL = ((_d = window == null ? void 0 : window.config) == null ? void 0 : _d.erdURL) || "";
|
|
1561
1561
|
const useOnEvent = (props2, events) => {
|
|
1562
1562
|
watch(() => props2.id, (id, oldId) => {
|
|
1563
|
+
console.log(id, oldId);
|
|
1563
1564
|
const eventBus = inject(EVENT_BUS, {
|
|
1564
1565
|
onEvent: (i, e) => void 0,
|
|
1565
1566
|
offEvent: (i) => void 0
|
|
1566
1567
|
});
|
|
1567
|
-
if (oldId != null && oldId !== "") {
|
|
1568
|
-
eventBus.offEvent(oldId);
|
|
1569
|
-
}
|
|
1570
1568
|
if (id != null && id !== "") {
|
|
1571
1569
|
eventBus.onEvent(id, events);
|
|
1572
1570
|
}
|
|
@@ -2640,11 +2638,16 @@ const _sfc_main$o = defineComponent({
|
|
|
2640
2638
|
setGlobalModel
|
|
2641
2639
|
});
|
|
2642
2640
|
const eventBus = mitt();
|
|
2641
|
+
const eventBusKeySet = /* @__PURE__ */ new Set();
|
|
2643
2642
|
const onEvent = (key, events) => {
|
|
2643
|
+
if (eventBusKeySet.has(key)) {
|
|
2644
|
+
eventBus.off(key);
|
|
2645
|
+
}
|
|
2644
2646
|
eventBus.on(key, (k) => {
|
|
2647
|
+
eventBusKeySet.add(key);
|
|
2645
2648
|
return Object.prototype.toString.call(events[k]) === "[object Function]" && events[k]();
|
|
2646
2649
|
});
|
|
2647
|
-
|
|
2650
|
+
onBeforeUnmount(() => {
|
|
2648
2651
|
eventBus.off(key);
|
|
2649
2652
|
});
|
|
2650
2653
|
};
|
|
@@ -2667,14 +2670,16 @@ const _sfc_main$o = defineComponent({
|
|
|
2667
2670
|
requestToken
|
|
2668
2671
|
});
|
|
2669
2672
|
const requestModel = /* @__PURE__ */ new Map();
|
|
2670
|
-
const
|
|
2671
|
-
|
|
2673
|
+
const requestMap = /* @__PURE__ */ new Map();
|
|
2674
|
+
const setRequest = ({ requestFn = () => {
|
|
2675
|
+
}, sortNum = 0, id = "" }) => {
|
|
2672
2676
|
if (requestModel.has(sortNum)) {
|
|
2673
2677
|
const requestFnList = requestModel.get(sortNum);
|
|
2674
2678
|
requestFnList == null ? void 0 : requestFnList.push(requestFn);
|
|
2675
2679
|
} else {
|
|
2676
2680
|
requestModel.set(sortNum, [requestFn]);
|
|
2677
2681
|
}
|
|
2682
|
+
requestMap.set(id, requestFn);
|
|
2678
2683
|
};
|
|
2679
2684
|
const handleRequestFnList = (requestFnList) => {
|
|
2680
2685
|
return new Promise((resolve, reject) => {
|
|
@@ -2696,22 +2701,29 @@ const _sfc_main$o = defineComponent({
|
|
|
2696
2701
|
});
|
|
2697
2702
|
config.indicatorToken = (_a2 = res.data.data) == null ? void 0 : _a2.token;
|
|
2698
2703
|
};
|
|
2699
|
-
const touchRequest = async () => {
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2704
|
+
const touchRequest = async (id) => {
|
|
2705
|
+
if (!id) {
|
|
2706
|
+
const requestModelArr = Array.from(requestModel);
|
|
2707
|
+
requestModelArr.sort((a, b) => b[0] - a[0]);
|
|
2708
|
+
const len = requestModelArr.length;
|
|
2709
|
+
try {
|
|
2710
|
+
if (props2.pageMode !== "design" && unref(tokenNum) > 0) {
|
|
2711
|
+
await queryUserToken();
|
|
2712
|
+
}
|
|
2713
|
+
for (let i = 0; i < len; i++) {
|
|
2714
|
+
const requestFnList = requestModelArr[i][1];
|
|
2715
|
+
await handleRequestFnList(requestFnList);
|
|
2716
|
+
}
|
|
2717
|
+
} catch (e) {
|
|
2718
|
+
console.error(e);
|
|
2719
|
+
} finally {
|
|
2720
|
+
requestModel.clear();
|
|
2706
2721
|
}
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2722
|
+
} else if (typeof id === "string") {
|
|
2723
|
+
const requestFn = requestMap.get(id);
|
|
2724
|
+
if (typeof requestFn === "function") {
|
|
2725
|
+
requestFn();
|
|
2710
2726
|
}
|
|
2711
|
-
} catch (e) {
|
|
2712
|
-
console.error(e);
|
|
2713
|
-
} finally {
|
|
2714
|
-
requestModel.clear();
|
|
2715
2727
|
}
|
|
2716
2728
|
};
|
|
2717
2729
|
provide(REQUEST_MODEL, {
|
|
@@ -2730,6 +2742,10 @@ const _sfc_main$o = defineComponent({
|
|
|
2730
2742
|
eventBus.off(REFRESH_PAGE);
|
|
2731
2743
|
});
|
|
2732
2744
|
};
|
|
2745
|
+
onBeforeUnmount(() => {
|
|
2746
|
+
requestModel == null ? void 0 : requestModel.clear();
|
|
2747
|
+
requestMap == null ? void 0 : requestMap.clear();
|
|
2748
|
+
});
|
|
2733
2749
|
expose({
|
|
2734
2750
|
touchRequest,
|
|
2735
2751
|
getGlobalModel,
|
|
@@ -2864,9 +2880,13 @@ const _sfc_main$n = defineComponent({
|
|
|
2864
2880
|
refreshData
|
|
2865
2881
|
});
|
|
2866
2882
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
2867
|
-
setRequest: (
|
|
2883
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
2884
|
+
});
|
|
2885
|
+
setRequest({
|
|
2886
|
+
id: props2.id,
|
|
2887
|
+
requestFn: refreshData,
|
|
2888
|
+
sortNum: props2.requestSort
|
|
2868
2889
|
});
|
|
2869
|
-
setRequest(refreshData, props2.requestSort);
|
|
2870
2890
|
useOnEvent(props2, {
|
|
2871
2891
|
refreshData
|
|
2872
2892
|
});
|
|
@@ -2899,7 +2919,7 @@ const _sfc_main$n = defineComponent({
|
|
|
2899
2919
|
};
|
|
2900
2920
|
}
|
|
2901
2921
|
});
|
|
2902
|
-
const
|
|
2922
|
+
const Text_vue_vue_type_style_index_0_scoped_860fa6ea_lang = "";
|
|
2903
2923
|
const _hoisted_1$8 = ["innerHTML"];
|
|
2904
2924
|
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2905
2925
|
const _component_skeleton = resolveComponent("skeleton");
|
|
@@ -2917,7 +2937,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2917
2937
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2918
2938
|
}, null, 12, _hoisted_1$8));
|
|
2919
2939
|
}
|
|
2920
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
2940
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-860fa6ea"]]);
|
|
2921
2941
|
const EcanText = withInstall(Text);
|
|
2922
2942
|
const _sfc_main$m = defineComponent({
|
|
2923
2943
|
name: "EcanScrollText",
|
|
@@ -3101,9 +3121,13 @@ const _sfc_main$k = defineComponent({
|
|
|
3101
3121
|
refreshData
|
|
3102
3122
|
});
|
|
3103
3123
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
3104
|
-
setRequest: (
|
|
3124
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
3125
|
+
});
|
|
3126
|
+
setRequest({
|
|
3127
|
+
id: props2.id,
|
|
3128
|
+
requestFn: handleRequestData,
|
|
3129
|
+
sortNum: props2.requestSort
|
|
3105
3130
|
});
|
|
3106
|
-
setRequest(handleRequestData, props2.requestSort);
|
|
3107
3131
|
return {
|
|
3108
3132
|
style: style2,
|
|
3109
3133
|
formatFn,
|
|
@@ -3115,9 +3139,9 @@ const _sfc_main$k = defineComponent({
|
|
|
3115
3139
|
};
|
|
3116
3140
|
}
|
|
3117
3141
|
});
|
|
3118
|
-
const
|
|
3142
|
+
const List_vue_vue_type_style_index_0_scoped_baf2ff0c_lang = "";
|
|
3119
3143
|
const List_vue_vue_type_style_index_1_lang = "";
|
|
3120
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
3144
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-baf2ff0c"), n = n(), popScopeId(), n);
|
|
3121
3145
|
const _hoisted_1$6 = {
|
|
3122
3146
|
key: 0,
|
|
3123
3147
|
class: "title"
|
|
@@ -3219,7 +3243,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3219
3243
|
}, 8, ["loading"])
|
|
3220
3244
|
], 4);
|
|
3221
3245
|
}
|
|
3222
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-
|
|
3246
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-baf2ff0c"]]);
|
|
3223
3247
|
const EcanList = withInstall(List);
|
|
3224
3248
|
const proportionProps = {
|
|
3225
3249
|
...props,
|
|
@@ -3374,9 +3398,13 @@ const _sfc_main$j = defineComponent({
|
|
|
3374
3398
|
const click = emitEvent("click", () => {
|
|
3375
3399
|
});
|
|
3376
3400
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
3377
|
-
setRequest: (
|
|
3401
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
3402
|
+
});
|
|
3403
|
+
setRequest({
|
|
3404
|
+
id: props2.id,
|
|
3405
|
+
requestFn: handleRequestData,
|
|
3406
|
+
sortNum: props2.requestSort
|
|
3378
3407
|
});
|
|
3379
|
-
setRequest(handleRequestData, props2.requestSort);
|
|
3380
3408
|
return {
|
|
3381
3409
|
style: style2,
|
|
3382
3410
|
myWidth,
|
|
@@ -3387,7 +3415,7 @@ const _sfc_main$j = defineComponent({
|
|
|
3387
3415
|
};
|
|
3388
3416
|
}
|
|
3389
3417
|
});
|
|
3390
|
-
const
|
|
3418
|
+
const Proportion_vue_vue_type_style_index_0_scoped_304d430d_lang = "";
|
|
3391
3419
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3392
3420
|
const _component_skeleton = resolveComponent("skeleton");
|
|
3393
3421
|
const _component_a_progress = resolveComponent("a-progress");
|
|
@@ -3427,7 +3455,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3427
3455
|
}, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
|
|
3428
3456
|
], 4);
|
|
3429
3457
|
}
|
|
3430
|
-
const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-
|
|
3458
|
+
const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-304d430d"]]);
|
|
3431
3459
|
const EcanProportion = withInstall(Proportion);
|
|
3432
3460
|
const inputProps = {
|
|
3433
3461
|
...props,
|
|
@@ -3674,9 +3702,13 @@ const _sfc_main$g = defineComponent({
|
|
|
3674
3702
|
selectChange
|
|
3675
3703
|
});
|
|
3676
3704
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
3677
|
-
setRequest: (
|
|
3705
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
3706
|
+
});
|
|
3707
|
+
setRequest({
|
|
3708
|
+
id: props2.id,
|
|
3709
|
+
requestFn: handleRequestData,
|
|
3710
|
+
sortNum: props2.requestSort
|
|
3678
3711
|
});
|
|
3679
|
-
setRequest(handleRequestData, props2.requestSort);
|
|
3680
3712
|
return {
|
|
3681
3713
|
style: style2,
|
|
3682
3714
|
getPopupContainer,
|
|
@@ -3688,7 +3720,7 @@ const _sfc_main$g = defineComponent({
|
|
|
3688
3720
|
};
|
|
3689
3721
|
}
|
|
3690
3722
|
});
|
|
3691
|
-
const
|
|
3723
|
+
const Select_vue_vue_type_style_index_0_scoped_dd2bcf63_lang = "";
|
|
3692
3724
|
const Select_vue_vue_type_style_index_1_lang = "";
|
|
3693
3725
|
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3694
3726
|
const _component_a_select = resolveComponent("a-select");
|
|
@@ -3712,7 +3744,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3712
3744
|
}, null, 8, ["value", "options", "mode", "getPopupContainer", "field-names", "maxTagCount", "filter-option", "onChange", "loading"])
|
|
3713
3745
|
], 4);
|
|
3714
3746
|
}
|
|
3715
|
-
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
3747
|
+
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-dd2bcf63"]]);
|
|
3716
3748
|
const EcanSelect = withInstall(Select);
|
|
3717
3749
|
const rangePickerProps = {
|
|
3718
3750
|
...props,
|
|
@@ -3966,9 +3998,13 @@ const _sfc_main$d = defineComponent({
|
|
|
3966
3998
|
setGlobalModel(id, { ...modal, RECORD: myValue });
|
|
3967
3999
|
});
|
|
3968
4000
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
3969
|
-
setRequest: (
|
|
4001
|
+
setRequest: ({ id: id2, sortNum, requestFn }) => void 0
|
|
4002
|
+
});
|
|
4003
|
+
setRequest({
|
|
4004
|
+
id: props2.id,
|
|
4005
|
+
requestFn: handleRequestData,
|
|
4006
|
+
sortNum: props2.requestSort
|
|
3970
4007
|
});
|
|
3971
|
-
setRequest(handleRequestData, props2.requestSort);
|
|
3972
4008
|
return {
|
|
3973
4009
|
myOption,
|
|
3974
4010
|
style: style2,
|
|
@@ -4315,9 +4351,13 @@ const _sfc_main$c = defineComponent({
|
|
|
4315
4351
|
click
|
|
4316
4352
|
});
|
|
4317
4353
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
4318
|
-
setRequest: (
|
|
4354
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
4355
|
+
});
|
|
4356
|
+
setRequest({
|
|
4357
|
+
id: props2.id,
|
|
4358
|
+
requestFn: chooseRequestOrDiagram,
|
|
4359
|
+
sortNum: props2.requestSort
|
|
4319
4360
|
});
|
|
4320
|
-
setRequest(chooseRequestOrDiagram, props2.requestSort);
|
|
4321
4361
|
return {
|
|
4322
4362
|
option,
|
|
4323
4363
|
style: style2,
|
|
@@ -4725,9 +4765,13 @@ const _sfc_main$b = defineComponent({
|
|
|
4725
4765
|
click
|
|
4726
4766
|
});
|
|
4727
4767
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
4728
|
-
setRequest: (
|
|
4768
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
4769
|
+
});
|
|
4770
|
+
setRequest({
|
|
4771
|
+
id: props2.id,
|
|
4772
|
+
requestFn: chooseRequestOrDiagram,
|
|
4773
|
+
sortNum: props2.requestSort
|
|
4729
4774
|
});
|
|
4730
|
-
setRequest(chooseRequestOrDiagram, props2.requestSort);
|
|
4731
4775
|
return {
|
|
4732
4776
|
option,
|
|
4733
4777
|
style: style2,
|
|
@@ -5170,9 +5214,13 @@ const _sfc_main$a = defineComponent({
|
|
|
5170
5214
|
setGlobalModel(id, { ...modal, RECORD: e.data });
|
|
5171
5215
|
});
|
|
5172
5216
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
5173
|
-
setRequest: (
|
|
5217
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
5218
|
+
});
|
|
5219
|
+
setRequest({
|
|
5220
|
+
id: props2.id,
|
|
5221
|
+
requestFn: refreshData,
|
|
5222
|
+
sortNum: props2.requestSort
|
|
5174
5223
|
});
|
|
5175
|
-
setRequest(refreshData, props2.requestSort);
|
|
5176
5224
|
useOnEvent(props2, {
|
|
5177
5225
|
refreshData,
|
|
5178
5226
|
click
|
|
@@ -5494,9 +5542,13 @@ const _sfc_main$9 = defineComponent({
|
|
|
5494
5542
|
click
|
|
5495
5543
|
});
|
|
5496
5544
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
5497
|
-
setRequest: (
|
|
5545
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
5546
|
+
});
|
|
5547
|
+
setRequest({
|
|
5548
|
+
id: props2.id,
|
|
5549
|
+
requestFn: handleRequestData,
|
|
5550
|
+
sortNum: props2.requestSort
|
|
5498
5551
|
});
|
|
5499
|
-
setRequest(handleRequestData, props2.requestSort);
|
|
5500
5552
|
return {
|
|
5501
5553
|
option,
|
|
5502
5554
|
style: style2,
|
|
@@ -6021,9 +6073,13 @@ const _sfc_main$7 = defineComponent({
|
|
|
6021
6073
|
setGlobalModel(id, { ...modal, RECORD: e == null ? void 0 : e.data });
|
|
6022
6074
|
});
|
|
6023
6075
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
6024
|
-
setRequest: (
|
|
6076
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
6077
|
+
});
|
|
6078
|
+
setRequest({
|
|
6079
|
+
id: props2.id,
|
|
6080
|
+
requestFn: chooseRequestOrDiagram,
|
|
6081
|
+
sortNum: props2.requestSort
|
|
6025
6082
|
});
|
|
6026
|
-
setRequest(chooseRequestOrDiagram, props2.requestSort);
|
|
6027
6083
|
useOnEvent(props2, {
|
|
6028
6084
|
refreshData,
|
|
6029
6085
|
click
|
|
@@ -6771,9 +6827,11 @@ const _sfc_main$1 = defineComponent({
|
|
|
6771
6827
|
}
|
|
6772
6828
|
const {
|
|
6773
6829
|
cellAlign = "center",
|
|
6774
|
-
cellColor
|
|
6830
|
+
cellColor,
|
|
6831
|
+
dataIndex,
|
|
6832
|
+
title
|
|
6775
6833
|
} = column;
|
|
6776
|
-
column.customCell = (
|
|
6834
|
+
column.customCell = (record, rowIndex) => ({
|
|
6777
6835
|
style: {
|
|
6778
6836
|
textAlign: cellAlign,
|
|
6779
6837
|
color: cellColor,
|
|
@@ -6782,7 +6840,17 @@ const _sfc_main$1 = defineComponent({
|
|
|
6782
6840
|
},
|
|
6783
6841
|
class: {
|
|
6784
6842
|
highlight: unref(useRowIndex) === rowIndex && props2.clickHighlight
|
|
6785
|
-
}
|
|
6843
|
+
},
|
|
6844
|
+
onClick: emitEvent("click", () => {
|
|
6845
|
+
const id = props2.id;
|
|
6846
|
+
const modal = getGlobalModel(id);
|
|
6847
|
+
record = {
|
|
6848
|
+
dataIndex,
|
|
6849
|
+
title,
|
|
6850
|
+
...record
|
|
6851
|
+
};
|
|
6852
|
+
setGlobalModel(id, { ...modal, RECORD: record });
|
|
6853
|
+
})
|
|
6786
6854
|
});
|
|
6787
6855
|
if (Array.isArray(column.children)) {
|
|
6788
6856
|
handleChildrenColumns(column.children);
|
|
@@ -6994,7 +7062,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
6994
7062
|
};
|
|
6995
7063
|
const useRowIndex = ref(-1);
|
|
6996
7064
|
const customRow = (record, index2) => ({
|
|
6997
|
-
onClick: emitEvent("
|
|
7065
|
+
onClick: emitEvent("rowClick", () => {
|
|
6998
7066
|
const id = props2.id;
|
|
6999
7067
|
const modal = getGlobalModel(id);
|
|
7000
7068
|
setGlobalModel(id, { ...modal, RECORD: record });
|
|
@@ -7063,9 +7131,13 @@ const _sfc_main$1 = defineComponent({
|
|
|
7063
7131
|
return summaryList2;
|
|
7064
7132
|
});
|
|
7065
7133
|
const { setRequest } = inject(REQUEST_MODEL, {
|
|
7066
|
-
setRequest: (
|
|
7134
|
+
setRequest: ({ id, sortNum, requestFn }) => void 0
|
|
7135
|
+
});
|
|
7136
|
+
setRequest({
|
|
7137
|
+
id: props2.id,
|
|
7138
|
+
requestFn: refreshData,
|
|
7139
|
+
sortNum: props2.requestSort
|
|
7067
7140
|
});
|
|
7068
|
-
setRequest(refreshData, props2.requestSort);
|
|
7069
7141
|
expose({
|
|
7070
7142
|
refreshData
|
|
7071
7143
|
});
|
|
@@ -7111,7 +7183,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
7111
7183
|
};
|
|
7112
7184
|
}
|
|
7113
7185
|
});
|
|
7114
|
-
const
|
|
7186
|
+
const Table_vue_vue_type_style_index_0_scoped_3e5c9238_lang = "";
|
|
7115
7187
|
const Table_vue_vue_type_style_index_1_lang = "";
|
|
7116
7188
|
const _hoisted_1$1 = {
|
|
7117
7189
|
key: 1,
|
|
@@ -7233,7 +7305,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7233
7305
|
}, 8, ["loading"])
|
|
7234
7306
|
], 4);
|
|
7235
7307
|
}
|
|
7236
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7308
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-3e5c9238"]]);
|
|
7237
7309
|
const EcanTable = withInstall(Table);
|
|
7238
7310
|
const mapProps = {
|
|
7239
7311
|
...props,
|