@ecan-bi/datav 1.0.80 → 1.0.81
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 +192 -53
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +192 -54
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +24 -6
- package/package.json +1 -1
- package/types/control/checkbox/Checkbox.vue.d.ts +448 -0
- package/types/control/checkbox/index.d.ts +448 -0
- package/types/control/checkbox/props.d.ts +232 -0
- package/types/control/index.d.ts +1 -0
- package/types/control/input/Input.vue.d.ts +3 -0
- package/types/control/input/index.d.ts +4 -1
- package/types/control/input/props.d.ts +1 -0
- package/types/control/select/Select.vue.d.ts +57 -51
- package/types/control/select/index.d.ts +6 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.0.
|
|
1
|
+
/*! @ecan-bi/datav@1.0.81 */
|
|
2
2
|
var _a, _b, _c;
|
|
3
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";
|
|
4
4
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
5
5
|
import { addListener, removeListener } from "resize-detector";
|
|
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, Modal as Modal$1, Table as Table$1, TableSummary, TableSummaryRow, TableSummaryCell } from "ant-design-vue";
|
|
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";
|
|
7
7
|
import "ant-design-vue/es/spin/style";
|
|
8
8
|
import "ant-design-vue/es/skeleton/style";
|
|
9
9
|
import { mapValues, without, pick, debounce } from "lodash-es";
|
|
@@ -16,6 +16,7 @@ import "ant-design-vue/es/date-picker/style";
|
|
|
16
16
|
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
|
|
17
17
|
import "ant-design-vue/es/select/style";
|
|
18
18
|
import "ant-design-vue/es/button/style";
|
|
19
|
+
import "ant-design-vue/es/checkbox/style";
|
|
19
20
|
import { CanvasRenderer } from "echarts/renderers";
|
|
20
21
|
import { PieChart, LineChart, BarChart, ScatterChart, MapChart } from "echarts/charts";
|
|
21
22
|
import { TitleComponent, ToolboxComponent, TooltipComponent, LegendComponent, DatasetComponent, VisualMapComponent, GraphicComponent } from "echarts/components";
|
|
@@ -1395,7 +1396,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
1395
1396
|
}
|
|
1396
1397
|
return target;
|
|
1397
1398
|
};
|
|
1398
|
-
const _sfc_main$
|
|
1399
|
+
const _sfc_main$q = defineComponent({
|
|
1399
1400
|
props: {
|
|
1400
1401
|
spinning: {
|
|
1401
1402
|
type: Boolean,
|
|
@@ -1419,7 +1420,7 @@ const _sfc_main$p = defineComponent({
|
|
|
1419
1420
|
}
|
|
1420
1421
|
});
|
|
1421
1422
|
const _hoisted_1$a = { class: "spin-wrapper" };
|
|
1422
|
-
function _sfc_render$
|
|
1423
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1423
1424
|
const _component_a_spin = resolveComponent("a-spin");
|
|
1424
1425
|
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
1425
1426
|
_ctx.spinning ? (openBlock(), createBlock(_component_a_spin, {
|
|
@@ -1431,8 +1432,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1431
1432
|
}, null, 8, ["spinning", "indicator"])) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
1432
1433
|
]);
|
|
1433
1434
|
}
|
|
1434
|
-
const Spin = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1435
|
-
const _sfc_main$
|
|
1435
|
+
const Spin = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
|
|
1436
|
+
const _sfc_main$p = defineComponent({
|
|
1436
1437
|
name: "Skeleton",
|
|
1437
1438
|
props: {
|
|
1438
1439
|
loading: {
|
|
@@ -1444,7 +1445,7 @@ const _sfc_main$o = defineComponent({
|
|
|
1444
1445
|
ASkeleton: Skeleton$1
|
|
1445
1446
|
}
|
|
1446
1447
|
});
|
|
1447
|
-
function _sfc_render$
|
|
1448
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1448
1449
|
const _component_a_skeleton = resolveComponent("a-skeleton");
|
|
1449
1450
|
return openBlock(), createBlock(_component_a_skeleton, {
|
|
1450
1451
|
active: "",
|
|
@@ -1456,7 +1457,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1456
1457
|
_: 3
|
|
1457
1458
|
}, 8, ["loading"]);
|
|
1458
1459
|
}
|
|
1459
|
-
const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1460
|
+
const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]);
|
|
1460
1461
|
process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
1461
1462
|
process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
|
|
1462
1463
|
const withInstall = (main, extra) => {
|
|
@@ -2443,7 +2444,7 @@ const useHrefParamsToGlobalVariables = () => {
|
|
|
2443
2444
|
}
|
|
2444
2445
|
};
|
|
2445
2446
|
const PageConfig_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2446
|
-
const _sfc_main$
|
|
2447
|
+
const _sfc_main$o = defineComponent({
|
|
2447
2448
|
name: "EcanPageConfig",
|
|
2448
2449
|
inheritAttrs: false,
|
|
2449
2450
|
props: {
|
|
@@ -2544,7 +2545,7 @@ const _hoisted_1$9 = {
|
|
|
2544
2545
|
id: "container",
|
|
2545
2546
|
ref: "container"
|
|
2546
2547
|
};
|
|
2547
|
-
function _sfc_render$
|
|
2548
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2548
2549
|
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
2549
2550
|
_ctx.ready ? (openBlock(), createElementBlock("div", {
|
|
2550
2551
|
key: 0,
|
|
@@ -2555,7 +2556,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2555
2556
|
], 4)) : createCommentVNode("", true)
|
|
2556
2557
|
], 512);
|
|
2557
2558
|
}
|
|
2558
|
-
const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2559
|
+
const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-c850087e"]]);
|
|
2559
2560
|
const EcanPageConfig = withInstall(PageConfig);
|
|
2560
2561
|
const providerConfig = {
|
|
2561
2562
|
contextRequestUrl: "",
|
|
@@ -2564,7 +2565,7 @@ const providerConfig = {
|
|
|
2564
2565
|
containerMap: {}
|
|
2565
2566
|
};
|
|
2566
2567
|
const providerConfigComponentProps = transformToComponentProps(providerConfig);
|
|
2567
|
-
const _sfc_main$
|
|
2568
|
+
const _sfc_main$n = defineComponent({
|
|
2568
2569
|
name: "EcanProviderConfig",
|
|
2569
2570
|
inheritAttrs: false,
|
|
2570
2571
|
props: {
|
|
@@ -2708,12 +2709,12 @@ const _hoisted_1$8 = {
|
|
|
2708
2709
|
id: "ProviderConfig",
|
|
2709
2710
|
ref: "providerConfig"
|
|
2710
2711
|
};
|
|
2711
|
-
function _sfc_render$
|
|
2712
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2712
2713
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
2713
2714
|
renderSlot(_ctx.$slots, "default")
|
|
2714
2715
|
], 512);
|
|
2715
2716
|
}
|
|
2716
|
-
const ProviderConfig = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2717
|
+
const ProviderConfig = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
|
|
2717
2718
|
const EcanProviderConfig = withInstall(ProviderConfig);
|
|
2718
2719
|
const textProps = {
|
|
2719
2720
|
...props,
|
|
@@ -2741,7 +2742,7 @@ const textEvents = ["refreshData", "click"];
|
|
|
2741
2742
|
const goUp = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=";
|
|
2742
2743
|
const goDown = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG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oped_true_lang = "";
|
|
2744
|
-
const _sfc_main$
|
|
2745
|
+
const _sfc_main$m = defineComponent({
|
|
2745
2746
|
name: "EcanText",
|
|
2746
2747
|
components: { Skeleton },
|
|
2747
2748
|
props: {
|
|
@@ -2844,7 +2845,7 @@ const _sfc_main$l = defineComponent({
|
|
|
2844
2845
|
}
|
|
2845
2846
|
});
|
|
2846
2847
|
const _hoisted_1$7 = ["innerHTML"];
|
|
2847
|
-
function _sfc_render$
|
|
2848
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2848
2849
|
const _component_skeleton = resolveComponent("skeleton");
|
|
2849
2850
|
return _ctx.loading ? (openBlock(), createElementBlock("div", {
|
|
2850
2851
|
key: 0,
|
|
@@ -2860,10 +2861,10 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2860
2861
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2861
2862
|
}, null, 12, _hoisted_1$7));
|
|
2862
2863
|
}
|
|
2863
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2864
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-04fdee06"]]);
|
|
2864
2865
|
const EcanText = withInstall(Text);
|
|
2865
2866
|
const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2866
|
-
const _sfc_main$
|
|
2867
|
+
const _sfc_main$l = defineComponent({
|
|
2867
2868
|
name: "EcanScrollText",
|
|
2868
2869
|
setup() {
|
|
2869
2870
|
const text = ref("\u57FA\u7840\u6587\u672C");
|
|
@@ -2873,10 +2874,10 @@ const _sfc_main$k = defineComponent({
|
|
|
2873
2874
|
}
|
|
2874
2875
|
});
|
|
2875
2876
|
const _hoisted_1$6 = { class: "red" };
|
|
2876
|
-
function _sfc_render$
|
|
2877
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2877
2878
|
return openBlock(), createElementBlock("div", _hoisted_1$6, toDisplayString(_ctx.text), 1);
|
|
2878
2879
|
}
|
|
2879
|
-
const ScrollText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2880
|
+
const ScrollText = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-0bb717eb"]]);
|
|
2880
2881
|
const EcanScrollText = withInstall(ScrollText);
|
|
2881
2882
|
const timeDisplayProps = {
|
|
2882
2883
|
...props,
|
|
@@ -2896,7 +2897,7 @@ const timeDisplayProps = {
|
|
|
2896
2897
|
};
|
|
2897
2898
|
const timeDisplayComponentProps = transformToComponentProps(timeDisplayProps);
|
|
2898
2899
|
const TimeDisplay_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2899
|
-
const _sfc_main$
|
|
2900
|
+
const _sfc_main$k = defineComponent({
|
|
2900
2901
|
name: "EcanTimeDisplay",
|
|
2901
2902
|
props: {
|
|
2902
2903
|
...timeDisplayComponentProps
|
|
@@ -2929,13 +2930,13 @@ const _sfc_main$j = defineComponent({
|
|
|
2929
2930
|
};
|
|
2930
2931
|
}
|
|
2931
2932
|
});
|
|
2932
|
-
function _sfc_render$
|
|
2933
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2933
2934
|
return openBlock(), createElementBlock("div", {
|
|
2934
2935
|
class: "time-display",
|
|
2935
2936
|
style: normalizeStyle(_ctx.style)
|
|
2936
2937
|
}, toDisplayString(_ctx.time), 5);
|
|
2937
2938
|
}
|
|
2938
|
-
const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2939
|
+
const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-2da8f6d2"]]);
|
|
2939
2940
|
const EcanTimeDisplay = withInstall(TimeDisplay);
|
|
2940
2941
|
const listProps = {
|
|
2941
2942
|
...props,
|
|
@@ -2975,7 +2976,7 @@ const listComponentProps = transformToComponentProps(listProps);
|
|
|
2975
2976
|
const listEvents = ["refreshData", "click"];
|
|
2976
2977
|
const List_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2977
2978
|
const List_vue_vue_type_style_index_1_lang = "";
|
|
2978
|
-
const _sfc_main$
|
|
2979
|
+
const _sfc_main$j = defineComponent({
|
|
2979
2980
|
name: "EcanList",
|
|
2980
2981
|
components: { Skeleton },
|
|
2981
2982
|
props: {
|
|
@@ -3083,7 +3084,7 @@ const _hoisted_7$1 = {
|
|
|
3083
3084
|
key: 2,
|
|
3084
3085
|
class: "empty"
|
|
3085
3086
|
};
|
|
3086
|
-
function _sfc_render$
|
|
3087
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3087
3088
|
const _component_skeleton = resolveComponent("skeleton");
|
|
3088
3089
|
return openBlock(), createElementBlock("div", {
|
|
3089
3090
|
class: "ecan-list",
|
|
@@ -3162,7 +3163,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3162
3163
|
}, 8, ["loading"])
|
|
3163
3164
|
], 4);
|
|
3164
3165
|
}
|
|
3165
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3166
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-2d4a657c"]]);
|
|
3166
3167
|
const EcanList = withInstall(List);
|
|
3167
3168
|
const proportionProps = {
|
|
3168
3169
|
...props,
|
|
@@ -3191,7 +3192,7 @@ const proportionProps = {
|
|
|
3191
3192
|
const proportionComponentProps = transformToComponentProps(proportionProps);
|
|
3192
3193
|
const proportionEvents = ["refreshData", "click"];
|
|
3193
3194
|
const Proportion_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3194
|
-
const _sfc_main$
|
|
3195
|
+
const _sfc_main$i = defineComponent({
|
|
3195
3196
|
name: "EcanProportion",
|
|
3196
3197
|
components: {
|
|
3197
3198
|
AProgress: Progress,
|
|
@@ -3331,7 +3332,7 @@ const _sfc_main$h = defineComponent({
|
|
|
3331
3332
|
};
|
|
3332
3333
|
}
|
|
3333
3334
|
});
|
|
3334
|
-
function _sfc_render$
|
|
3335
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3335
3336
|
const _component_skeleton = resolveComponent("skeleton");
|
|
3336
3337
|
const _component_a_progress = resolveComponent("a-progress");
|
|
3337
3338
|
return openBlock(), createElementBlock("div", {
|
|
@@ -3370,7 +3371,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3370
3371
|
}, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
|
|
3371
3372
|
], 4);
|
|
3372
3373
|
}
|
|
3373
|
-
const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3374
|
+
const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-4f7958e8"]]);
|
|
3374
3375
|
const EcanProportion = withInstall(Proportion);
|
|
3375
3376
|
const inputProps = {
|
|
3376
3377
|
...props,
|
|
@@ -3386,8 +3387,9 @@ const inputProps = {
|
|
|
3386
3387
|
placeholder: "\u8BF7\u8F93\u5165\u6587\u5B57"
|
|
3387
3388
|
};
|
|
3388
3389
|
const inputComponentProps = transformToComponentProps(inputProps);
|
|
3389
|
-
const
|
|
3390
|
-
const
|
|
3390
|
+
const inputEvents = ["inputChange", "inputBlur"];
|
|
3391
|
+
const Input_vue_vue_type_style_index_0_lang = "";
|
|
3392
|
+
const _sfc_main$h = defineComponent({
|
|
3391
3393
|
name: "EcanInput",
|
|
3392
3394
|
components: {
|
|
3393
3395
|
AInput: Input$1
|
|
@@ -3397,12 +3399,40 @@ const _sfc_main$g = defineComponent({
|
|
|
3397
3399
|
},
|
|
3398
3400
|
setup(props2) {
|
|
3399
3401
|
const style2 = usePickComponentStyle(props2);
|
|
3402
|
+
const myValue = ref("");
|
|
3403
|
+
watch(() => props2.value, (value) => {
|
|
3404
|
+
myValue.value = value;
|
|
3405
|
+
}, {
|
|
3406
|
+
immediate: true
|
|
3407
|
+
});
|
|
3408
|
+
const id = props2.id;
|
|
3409
|
+
const { getGlobalModel, setGlobalModel } = inject(GLOBAL_MODEL, {
|
|
3410
|
+
getGlobalModel: (key) => void 0,
|
|
3411
|
+
setGlobalModel: (key, value) => void 0
|
|
3412
|
+
});
|
|
3413
|
+
setGlobalModel(props2.id, {
|
|
3414
|
+
type: props2.type,
|
|
3415
|
+
value: myValue
|
|
3416
|
+
});
|
|
3417
|
+
const handleSetGlobalModel = () => {
|
|
3418
|
+
const modal = getGlobalModel(id);
|
|
3419
|
+
setGlobalModel(id, { ...modal, RECORD: myValue });
|
|
3420
|
+
};
|
|
3421
|
+
const emitEvent = useEmitEvent(props2);
|
|
3422
|
+
const inputChange = debounce(emitEvent("inputChange", () => {
|
|
3423
|
+
handleSetGlobalModel();
|
|
3424
|
+
}), 300);
|
|
3425
|
+
const inputBlur = emitEvent("inputBlur", () => {
|
|
3426
|
+
});
|
|
3400
3427
|
return {
|
|
3401
|
-
style: style2
|
|
3428
|
+
style: style2,
|
|
3429
|
+
myValue,
|
|
3430
|
+
inputBlur,
|
|
3431
|
+
inputChange
|
|
3402
3432
|
};
|
|
3403
3433
|
}
|
|
3404
3434
|
});
|
|
3405
|
-
function _sfc_render$
|
|
3435
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3406
3436
|
const _component_a_input = resolveComponent("a-input");
|
|
3407
3437
|
return openBlock(), createElementBlock("div", {
|
|
3408
3438
|
class: "ecan-input",
|
|
@@ -3410,12 +3440,15 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3410
3440
|
}, [
|
|
3411
3441
|
createVNode(_component_a_input, {
|
|
3412
3442
|
class: "input",
|
|
3413
|
-
value: _ctx.
|
|
3414
|
-
|
|
3415
|
-
|
|
3443
|
+
value: _ctx.myValue,
|
|
3444
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.myValue = $event),
|
|
3445
|
+
placeholder: _ctx.placeholder,
|
|
3446
|
+
onChange: _ctx.inputChange,
|
|
3447
|
+
onBlur: _ctx.inputBlur
|
|
3448
|
+
}, null, 8, ["value", "placeholder", "onChange", "onBlur"])
|
|
3416
3449
|
], 4);
|
|
3417
3450
|
}
|
|
3418
|
-
const Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3451
|
+
const Input = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h]]);
|
|
3419
3452
|
const EcanInput = withInstall(Input);
|
|
3420
3453
|
const datePickerProps = {
|
|
3421
3454
|
...props,
|
|
@@ -3437,7 +3470,7 @@ const datePickerComponentProps = transformToComponentProps(datePickerProps);
|
|
|
3437
3470
|
const datePickerEvents = ["dateChange"];
|
|
3438
3471
|
const DatePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3439
3472
|
const DatePicker_vue_vue_type_style_index_1_lang = "";
|
|
3440
|
-
const _sfc_main$
|
|
3473
|
+
const _sfc_main$g = defineComponent({
|
|
3441
3474
|
name: "EcanDatePicker",
|
|
3442
3475
|
props: {
|
|
3443
3476
|
...datePickerComponentProps
|
|
@@ -3472,7 +3505,7 @@ const _sfc_main$f = defineComponent({
|
|
|
3472
3505
|
};
|
|
3473
3506
|
}
|
|
3474
3507
|
});
|
|
3475
|
-
function _sfc_render$
|
|
3508
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3476
3509
|
const _component_a_date_picker = resolveComponent("a-date-picker");
|
|
3477
3510
|
return openBlock(), createElementBlock("div", {
|
|
3478
3511
|
class: "ecan-date-picker",
|
|
@@ -3492,7 +3525,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3492
3525
|
}, null, 8, ["value", "format", "picker", "showTime", "locale", "onChange", "getPopupContainer"])
|
|
3493
3526
|
], 4);
|
|
3494
3527
|
}
|
|
3495
|
-
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3528
|
+
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-6e240054"]]);
|
|
3496
3529
|
const EcanDatePicker = withInstall(DatePicker);
|
|
3497
3530
|
const selectProps = {
|
|
3498
3531
|
...props,
|
|
@@ -3501,7 +3534,11 @@ const selectProps = {
|
|
|
3501
3534
|
width: "120px",
|
|
3502
3535
|
height: "33px",
|
|
3503
3536
|
type: "ecanSelect",
|
|
3504
|
-
data: [
|
|
3537
|
+
data: [
|
|
3538
|
+
{ label: "\u9009\u9879\u4E00", value: 1 },
|
|
3539
|
+
{ label: "\u9009\u9879\u4E8C", value: 2 },
|
|
3540
|
+
{ label: "\u9009\u9879\u4E09", value: 3 }
|
|
3541
|
+
],
|
|
3505
3542
|
value: "",
|
|
3506
3543
|
dataFieldNames: { label: "label", value: "value" }
|
|
3507
3544
|
};
|
|
@@ -3509,7 +3546,7 @@ const selectComponentProps = transformToComponentProps(selectProps);
|
|
|
3509
3546
|
const selectEvents = ["selectChange"];
|
|
3510
3547
|
const Select_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3511
3548
|
const Select_vue_vue_type_style_index_1_lang = "";
|
|
3512
|
-
const _sfc_main$
|
|
3549
|
+
const _sfc_main$f = defineComponent({
|
|
3513
3550
|
name: "EcanSelect",
|
|
3514
3551
|
components: {
|
|
3515
3552
|
ASelect: Select$1
|
|
@@ -3526,6 +3563,12 @@ const _sfc_main$e = defineComponent({
|
|
|
3526
3563
|
});
|
|
3527
3564
|
const options = ref(props2.data);
|
|
3528
3565
|
const myValue = ref(props2.value || props2.data[0]);
|
|
3566
|
+
const dataFieldNames = props2.dataFieldNames;
|
|
3567
|
+
const filterOption = (input, option) => {
|
|
3568
|
+
var _a2;
|
|
3569
|
+
const labelKey = dataFieldNames.label;
|
|
3570
|
+
return ((_a2 = option[labelKey]) == null ? void 0 : _a2.toLowerCase().indexOf(input == null ? void 0 : input.toLowerCase())) >= 0;
|
|
3571
|
+
};
|
|
3529
3572
|
const handleRequestData = async () => {
|
|
3530
3573
|
var _a2, _b2;
|
|
3531
3574
|
if (props2.dataType !== "request" || unref(pageMode) === "design")
|
|
@@ -3534,7 +3577,7 @@ const _sfc_main$e = defineComponent({
|
|
|
3534
3577
|
options.value = ((_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.rows) || [];
|
|
3535
3578
|
const firstOption = unref(options)[0];
|
|
3536
3579
|
if (props2.value === "" && firstOption != null) {
|
|
3537
|
-
myValue.value = firstOption[
|
|
3580
|
+
myValue.value = firstOption[dataFieldNames.value];
|
|
3538
3581
|
}
|
|
3539
3582
|
};
|
|
3540
3583
|
const { getGlobalModel, setGlobalModel } = inject(GLOBAL_MODEL, {
|
|
@@ -3563,11 +3606,12 @@ const _sfc_main$e = defineComponent({
|
|
|
3563
3606
|
getPopupContainer,
|
|
3564
3607
|
myValue,
|
|
3565
3608
|
selectChange,
|
|
3566
|
-
options
|
|
3609
|
+
options,
|
|
3610
|
+
filterOption
|
|
3567
3611
|
};
|
|
3568
3612
|
}
|
|
3569
3613
|
});
|
|
3570
|
-
function _sfc_render$
|
|
3614
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3571
3615
|
const _component_a_select = resolveComponent("a-select");
|
|
3572
3616
|
return openBlock(), createElementBlock("div", {
|
|
3573
3617
|
class: "ecan-select",
|
|
@@ -3580,11 +3624,13 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3580
3624
|
options: _ctx.options,
|
|
3581
3625
|
getPopupContainer: _ctx.getPopupContainer,
|
|
3582
3626
|
"field-names": _ctx.dataFieldNames,
|
|
3627
|
+
"show-search": "",
|
|
3628
|
+
"filter-option": _ctx.filterOption,
|
|
3583
3629
|
onChange: _ctx.selectChange
|
|
3584
|
-
}, null, 8, ["value", "options", "getPopupContainer", "field-names", "onChange"])
|
|
3630
|
+
}, null, 8, ["value", "options", "getPopupContainer", "field-names", "filter-option", "onChange"])
|
|
3585
3631
|
], 4);
|
|
3586
3632
|
}
|
|
3587
|
-
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3633
|
+
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-0a8df5d2"]]);
|
|
3588
3634
|
const EcanSelect = withInstall(Select);
|
|
3589
3635
|
const rangePickerProps = {
|
|
3590
3636
|
...props,
|
|
@@ -3602,7 +3648,7 @@ const rangePickerComponentProps = transformToComponentProps(rangePickerProps);
|
|
|
3602
3648
|
const rangePickerEvents = ["dateChange"];
|
|
3603
3649
|
const RangePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3604
3650
|
const RangePicker_vue_vue_type_style_index_1_lang = "";
|
|
3605
|
-
const _sfc_main$
|
|
3651
|
+
const _sfc_main$e = defineComponent({
|
|
3606
3652
|
name: "EcanRangePicker",
|
|
3607
3653
|
components: {
|
|
3608
3654
|
ARangePicker: RangePicker$1
|
|
@@ -3647,7 +3693,7 @@ const _sfc_main$d = defineComponent({
|
|
|
3647
3693
|
};
|
|
3648
3694
|
}
|
|
3649
3695
|
});
|
|
3650
|
-
function _sfc_render$
|
|
3696
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3651
3697
|
const _component_a_range_picker = resolveComponent("a-range-picker");
|
|
3652
3698
|
return openBlock(), createElementBlock("div", {
|
|
3653
3699
|
class: "ecan-range-picker",
|
|
@@ -3666,7 +3712,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3666
3712
|
}, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
|
|
3667
3713
|
], 4);
|
|
3668
3714
|
}
|
|
3669
|
-
const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3715
|
+
const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-7433eda4"]]);
|
|
3670
3716
|
const EcanRangePicker = withInstall(RangePicker);
|
|
3671
3717
|
const buttonProps = {
|
|
3672
3718
|
...props,
|
|
@@ -3686,7 +3732,7 @@ const buttonProps = {
|
|
|
3686
3732
|
const buttonComponentProps = transformToComponentProps(buttonProps);
|
|
3687
3733
|
const buttonEvents = ["click"];
|
|
3688
3734
|
const Button_vue_vue_type_style_index_0_lang = "";
|
|
3689
|
-
const _sfc_main$
|
|
3735
|
+
const _sfc_main$d = defineComponent({
|
|
3690
3736
|
name: "EcanButton",
|
|
3691
3737
|
components: {
|
|
3692
3738
|
AButton: Button$1
|
|
@@ -3729,7 +3775,7 @@ const _sfc_main$c = defineComponent({
|
|
|
3729
3775
|
};
|
|
3730
3776
|
}
|
|
3731
3777
|
});
|
|
3732
|
-
function _sfc_render$
|
|
3778
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3733
3779
|
const _component_a_button = resolveComponent("a-button");
|
|
3734
3780
|
return openBlock(), createElementBlock("div", {
|
|
3735
3781
|
class: "ecan-button",
|
|
@@ -3756,8 +3802,91 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3756
3802
|
}, 8, ["onClick", "type", "danger", "shape", "href", "target"])
|
|
3757
3803
|
], 4);
|
|
3758
3804
|
}
|
|
3759
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3805
|
+
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d]]);
|
|
3760
3806
|
const EcanButton = withInstall(Button);
|
|
3807
|
+
const checkboxProps = {
|
|
3808
|
+
...props,
|
|
3809
|
+
width: "240px",
|
|
3810
|
+
id: "",
|
|
3811
|
+
left: "0px",
|
|
3812
|
+
top: "0px",
|
|
3813
|
+
name: "\u590D\u9009\u6846",
|
|
3814
|
+
keyName: "\u590D\u9009\u6846",
|
|
3815
|
+
rotate: "",
|
|
3816
|
+
type: "ecanCheckbox",
|
|
3817
|
+
value: "",
|
|
3818
|
+
data: [
|
|
3819
|
+
{ label: "\u9009\u9879\u4E00", value: "1", checked: true },
|
|
3820
|
+
{ label: "\u9009\u9879\u4E8C", value: "2", checked: true },
|
|
3821
|
+
{ label: "\u9009\u9879\u4E09", value: "3" }
|
|
3822
|
+
]
|
|
3823
|
+
};
|
|
3824
|
+
const checkboxComponentProps = transformToComponentProps(checkboxProps);
|
|
3825
|
+
const checkboxEvents = ["checkboxChange"];
|
|
3826
|
+
const Checkbox_vue_vue_type_style_index_0_lang = "";
|
|
3827
|
+
const _sfc_main$c = defineComponent({
|
|
3828
|
+
name: "EcanCheckbox",
|
|
3829
|
+
components: {
|
|
3830
|
+
ACheckboxGroup: CheckboxGroup
|
|
3831
|
+
},
|
|
3832
|
+
props: {
|
|
3833
|
+
...checkboxComponentProps
|
|
3834
|
+
},
|
|
3835
|
+
setup(props2) {
|
|
3836
|
+
const style2 = usePickComponentStyle(props2);
|
|
3837
|
+
const myOption = ref([]);
|
|
3838
|
+
const myValue = ref([]);
|
|
3839
|
+
watch(() => props2.data, (data) => {
|
|
3840
|
+
const value = [];
|
|
3841
|
+
data.forEach((item) => {
|
|
3842
|
+
if (item.checked) {
|
|
3843
|
+
value.push(item.value);
|
|
3844
|
+
}
|
|
3845
|
+
});
|
|
3846
|
+
myOption.value = data;
|
|
3847
|
+
myValue.value = value;
|
|
3848
|
+
}, {
|
|
3849
|
+
immediate: true,
|
|
3850
|
+
deep: true
|
|
3851
|
+
});
|
|
3852
|
+
const id = props2.id;
|
|
3853
|
+
const { getGlobalModel, setGlobalModel } = inject(GLOBAL_MODEL, {
|
|
3854
|
+
getGlobalModel: (key) => void 0,
|
|
3855
|
+
setGlobalModel: (key, value) => void 0
|
|
3856
|
+
});
|
|
3857
|
+
setGlobalModel(props2.id, {
|
|
3858
|
+
type: props2.type,
|
|
3859
|
+
value: myValue
|
|
3860
|
+
});
|
|
3861
|
+
const emitEvent = useEmitEvent(props2);
|
|
3862
|
+
const checkboxChange = emitEvent("checkboxChange", () => {
|
|
3863
|
+
const modal = getGlobalModel(id);
|
|
3864
|
+
setGlobalModel(id, { ...modal, RECORD: myValue });
|
|
3865
|
+
});
|
|
3866
|
+
return {
|
|
3867
|
+
myOption,
|
|
3868
|
+
style: style2,
|
|
3869
|
+
myValue,
|
|
3870
|
+
checkboxChange
|
|
3871
|
+
};
|
|
3872
|
+
}
|
|
3873
|
+
});
|
|
3874
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3875
|
+
const _component_a_checkbox_group = resolveComponent("a-checkbox-group");
|
|
3876
|
+
return openBlock(), createElementBlock("div", {
|
|
3877
|
+
class: "ecan-checkbox",
|
|
3878
|
+
style: normalizeStyle(_ctx.style)
|
|
3879
|
+
}, [
|
|
3880
|
+
createVNode(_component_a_checkbox_group, {
|
|
3881
|
+
options: _ctx.myOption,
|
|
3882
|
+
value: _ctx.myValue,
|
|
3883
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.myValue = $event),
|
|
3884
|
+
onChange: _ctx.checkboxChange
|
|
3885
|
+
}, null, 8, ["options", "value", "onChange"])
|
|
3886
|
+
], 4);
|
|
3887
|
+
}
|
|
3888
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
|
|
3889
|
+
const EcanCheckbox = withInstall(Checkbox);
|
|
3761
3890
|
const pieProps = {
|
|
3762
3891
|
...props,
|
|
3763
3892
|
id: "",
|
|
@@ -6911,6 +7040,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
6911
7040
|
EcanProportion,
|
|
6912
7041
|
inputProps,
|
|
6913
7042
|
inputComponentProps,
|
|
7043
|
+
inputEvents,
|
|
6914
7044
|
EcanInput,
|
|
6915
7045
|
datePickerProps,
|
|
6916
7046
|
datePickerComponentProps,
|
|
@@ -6928,6 +7058,10 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
6928
7058
|
buttonComponentProps,
|
|
6929
7059
|
buttonEvents,
|
|
6930
7060
|
EcanButton,
|
|
7061
|
+
checkboxProps,
|
|
7062
|
+
checkboxComponentProps,
|
|
7063
|
+
checkboxEvents,
|
|
7064
|
+
EcanCheckbox,
|
|
6931
7065
|
pieProps,
|
|
6932
7066
|
pieComponentProps,
|
|
6933
7067
|
pieEvents,
|
|
@@ -6989,6 +7123,7 @@ export {
|
|
|
6989
7123
|
EcanBar,
|
|
6990
7124
|
EcanBorder,
|
|
6991
7125
|
EcanButton,
|
|
7126
|
+
EcanCheckbox,
|
|
6992
7127
|
EcanComboGraph,
|
|
6993
7128
|
EcanCustomGraph,
|
|
6994
7129
|
EcanDatePicker,
|
|
@@ -7019,6 +7154,9 @@ export {
|
|
|
7019
7154
|
buttonComponentProps,
|
|
7020
7155
|
buttonEvents,
|
|
7021
7156
|
buttonProps,
|
|
7157
|
+
checkboxComponentProps,
|
|
7158
|
+
checkboxEvents,
|
|
7159
|
+
checkboxProps,
|
|
7022
7160
|
comboGraphComponentProps,
|
|
7023
7161
|
comboGraphEvents,
|
|
7024
7162
|
comboGraphProps,
|
|
@@ -7031,6 +7169,7 @@ export {
|
|
|
7031
7169
|
imageComponentProps,
|
|
7032
7170
|
imageProps,
|
|
7033
7171
|
inputComponentProps,
|
|
7172
|
+
inputEvents,
|
|
7034
7173
|
inputProps,
|
|
7035
7174
|
lineComponentProps,
|
|
7036
7175
|
lineEvents,
|