@ecan-bi/chart-config-panel 1.0.11 → 1.0.12
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/vue2/index.cjs +6 -6
- package/dist/vue2/index.mjs +48 -31
- package/dist/vue3/index.cjs +7 -7
- package/dist/vue3/index.mjs +351 -334
- package/package.json +1 -1
package/dist/vue2/index.mjs
CHANGED
|
@@ -35,9 +35,9 @@ var Z = (o, e, t) => new Promise((n, a) => {
|
|
|
35
35
|
}, m = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(l, i);
|
|
36
36
|
m((t = t.apply(o, e)).next());
|
|
37
37
|
});
|
|
38
|
-
import { cloneDeep as
|
|
38
|
+
import { cloneDeep as M, reduce as ht, pick as Se } from "lodash-es";
|
|
39
39
|
import { Sketch as Vt } from "vue-color";
|
|
40
|
-
import { defineComponent as Dt, ref as
|
|
40
|
+
import { defineComponent as Dt, ref as Mt, watch as Ot, onMounted as Nt, unref as we } from "vue";
|
|
41
41
|
const zt = [
|
|
42
42
|
{
|
|
43
43
|
title: "基本属性",
|
|
@@ -198,6 +198,8 @@ const zt = [
|
|
|
198
198
|
"yAxisLeftUnitAdapt",
|
|
199
199
|
"yAxisRightUnitAdapt",
|
|
200
200
|
"yAxisMaxValue",
|
|
201
|
+
"yAxisLeftMaxValue",
|
|
202
|
+
"yAxisRightMaxValue",
|
|
201
203
|
"showYAxisLineArrow",
|
|
202
204
|
"yAxisLineInverse",
|
|
203
205
|
"yAxisMax",
|
|
@@ -1219,7 +1221,8 @@ const zt = [
|
|
|
1219
1221
|
startValue: "",
|
|
1220
1222
|
endValue: "",
|
|
1221
1223
|
xAxisMaxValue: null,
|
|
1222
|
-
|
|
1224
|
+
yAxisLeftMaxValue: null,
|
|
1225
|
+
yAxisRightMaxValue: null,
|
|
1223
1226
|
xAxisLabelShow: !0,
|
|
1224
1227
|
yAxisLeftUnitAdapt: !1,
|
|
1225
1228
|
yAxisRightUnitAdapt: !1,
|
|
@@ -5736,6 +5739,20 @@ const zt = [
|
|
|
5736
5739
|
min: 0
|
|
5737
5740
|
}
|
|
5738
5741
|
},
|
|
5742
|
+
yAxisLeftMaxValue: {
|
|
5743
|
+
label: "最大值-左轴",
|
|
5744
|
+
component: "input-number",
|
|
5745
|
+
props: {
|
|
5746
|
+
min: 0
|
|
5747
|
+
}
|
|
5748
|
+
},
|
|
5749
|
+
yAxisRightMaxValue: {
|
|
5750
|
+
label: "最大值-右轴",
|
|
5751
|
+
component: "input-number",
|
|
5752
|
+
props: {
|
|
5753
|
+
min: 0
|
|
5754
|
+
}
|
|
5755
|
+
},
|
|
5739
5756
|
scrollDirection: {
|
|
5740
5757
|
label: "滚动方向",
|
|
5741
5758
|
component: "radio-group",
|
|
@@ -6632,7 +6649,7 @@ let xe = !1, Fe = !1;
|
|
|
6632
6649
|
const D = [];
|
|
6633
6650
|
let B = 0;
|
|
6634
6651
|
const Q = [];
|
|
6635
|
-
let
|
|
6652
|
+
let O = null, q = 0;
|
|
6636
6653
|
const io = Promise.resolve();
|
|
6637
6654
|
function so(o) {
|
|
6638
6655
|
D.length && D.includes(o, xe && o.allowRecurse ? B + 1 : B) || (o.id == null ? D.push(o) : D.splice(function(e) {
|
|
@@ -6673,11 +6690,11 @@ function xt(o) {
|
|
|
6673
6690
|
B = 0, D.length = 0, function(t) {
|
|
6674
6691
|
if (Q.length) {
|
|
6675
6692
|
const n = [...new Set(Q)];
|
|
6676
|
-
if (Q.length = 0,
|
|
6677
|
-
return void
|
|
6678
|
-
for (
|
|
6679
|
-
process.env.NODE_ENV !== "production" && Ye(t,
|
|
6680
|
-
|
|
6693
|
+
if (Q.length = 0, O)
|
|
6694
|
+
return void O.push(...n);
|
|
6695
|
+
for (O = n, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), O.sort((a, l) => ue(a) - ue(l)), q = 0; q < O.length; q++)
|
|
6696
|
+
process.env.NODE_ENV !== "production" && Ye(t, O[q]) || O[q]();
|
|
6697
|
+
O = null, q = 0;
|
|
6681
6698
|
}
|
|
6682
6699
|
}(o), xe = !1, (D.length || Q.length) && xt(o);
|
|
6683
6700
|
}
|
|
@@ -6714,7 +6731,7 @@ process.env.NODE_ENV !== "production" && (Ie().__VUE_HMR_RUNTIME__ = { createRec
|
|
|
6714
6731
|
a = () => {
|
|
6715
6732
|
for (const l of n)
|
|
6716
6733
|
ie.delete(se(l.type));
|
|
6717
|
-
}, oo(a) ? Q.push(...a) :
|
|
6734
|
+
}, oo(a) ? Q.push(...a) : O && O.includes(a, a.allowRecurse ? q + 1 : q) || Q.push(a), yt();
|
|
6718
6735
|
var a;
|
|
6719
6736
|
}) });
|
|
6720
6737
|
const be = /* @__PURE__ */ new Map();
|
|
@@ -7131,8 +7148,8 @@ var Tt = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
7131
7148
|
}();
|
|
7132
7149
|
te && te.isTypedArray;
|
|
7133
7150
|
K(Object, "create");
|
|
7134
|
-
var Ve = K(z, "Map"), De = K(z, "DataView"),
|
|
7135
|
-
(De && J(new De(new ArrayBuffer(1))) != ct || Ve && J(new Ve()) != st ||
|
|
7151
|
+
var Ve = K(z, "Map"), De = K(z, "DataView"), Me = K(z, "Promise"), Oe = K(z, "Set"), st = "[object Map]", rt = "[object Promise]", pt = "[object Set]", ut = "[object WeakMap]", ct = "[object DataView]", Io = U(De), $o = U(Ve), Fo = U(Me), Po = U(Oe), Vo = U(Pe), J = ge;
|
|
7152
|
+
(De && J(new De(new ArrayBuffer(1))) != ct || Ve && J(new Ve()) != st || Me && J(Me.resolve()) != rt || Oe && J(new Oe()) != pt || Pe && J(new Pe()) != ut) && (J = function(o) {
|
|
7136
7153
|
var e = ge(o), t = e == "[object Object]" ? o.constructor : void 0, n = t ? U(t) : "";
|
|
7137
7154
|
if (n)
|
|
7138
7155
|
switch (n) {
|
|
@@ -7166,8 +7183,8 @@ const Do = (o, e) => {
|
|
|
7166
7183
|
}
|
|
7167
7184
|
}
|
|
7168
7185
|
return !1;
|
|
7169
|
-
},
|
|
7170
|
-
const
|
|
7186
|
+
}, Mo = (o, e) => Object.prototype.hasOwnProperty.call(o, e);
|
|
7187
|
+
const Oo = {
|
|
7171
7188
|
name: "EcanSelect",
|
|
7172
7189
|
components: {
|
|
7173
7190
|
// ASelect: Select,
|
|
@@ -7212,9 +7229,9 @@ const Mo = {
|
|
|
7212
7229
|
if (this.graphic) {
|
|
7213
7230
|
const e = this.componentList.find((t) => t.type === o);
|
|
7214
7231
|
if (e) {
|
|
7215
|
-
const t =
|
|
7232
|
+
const t = M(this.selectedComponent), { events: n, dataType: a, dataFieldConfigType: l, id: i, keyName: m, top: u, left: c, width: v, height: h, zIndex: x } = t, S = {}, L = ["type", "graphicType", "data"];
|
|
7216
7233
|
for (const $ in t)
|
|
7217
|
-
!L.includes($) &&
|
|
7234
|
+
!L.includes($) && Mo(e, $) && (S[$] = M(t[$]));
|
|
7218
7235
|
let I = G(P(P({}, e), S), {
|
|
7219
7236
|
events: n,
|
|
7220
7237
|
dataType: a,
|
|
@@ -7240,7 +7257,7 @@ var No = function() {
|
|
|
7240
7257
|
return t("a-select-option", { key: n.value, attrs: { value: n.value, disabled: n.disabled } }, [e._v(" " + e._s(n.label) + " ")]);
|
|
7241
7258
|
}), 1);
|
|
7242
7259
|
}, zo = [], Ro = /* @__PURE__ */ w(
|
|
7243
|
-
|
|
7260
|
+
Oo,
|
|
7244
7261
|
No,
|
|
7245
7262
|
zo,
|
|
7246
7263
|
!1,
|
|
@@ -8039,7 +8056,7 @@ var Vn = function() {
|
|
|
8039
8056
|
return e.onDelete(a);
|
|
8040
8057
|
} } }, [e._v("-")])], 1);
|
|
8041
8058
|
}), 0)], 1);
|
|
8042
|
-
}, Dn = [],
|
|
8059
|
+
}, Dn = [], Mn = /* @__PURE__ */ w(
|
|
8043
8060
|
Pn,
|
|
8044
8061
|
Vn,
|
|
8045
8062
|
Dn,
|
|
@@ -8049,7 +8066,7 @@ var Vn = function() {
|
|
|
8049
8066
|
null,
|
|
8050
8067
|
null
|
|
8051
8068
|
);
|
|
8052
|
-
const
|
|
8069
|
+
const On = Mn.exports;
|
|
8053
8070
|
const Nn = {
|
|
8054
8071
|
name: "GraphicFieldSelect",
|
|
8055
8072
|
props: {
|
|
@@ -8142,7 +8159,7 @@ const Bn = [
|
|
|
8142
8159
|
watch: {
|
|
8143
8160
|
value: {
|
|
8144
8161
|
handler(o) {
|
|
8145
|
-
this.dataList =
|
|
8162
|
+
this.dataList = M(o || []);
|
|
8146
8163
|
},
|
|
8147
8164
|
immediate: !0,
|
|
8148
8165
|
deep: !0
|
|
@@ -8169,7 +8186,7 @@ const Bn = [
|
|
|
8169
8186
|
}
|
|
8170
8187
|
},
|
|
8171
8188
|
mounted() {
|
|
8172
|
-
this.dataList =
|
|
8189
|
+
this.dataList = M(this.value || []);
|
|
8173
8190
|
}
|
|
8174
8191
|
};
|
|
8175
8192
|
var Wn = function() {
|
|
@@ -8253,7 +8270,7 @@ const Kn = [
|
|
|
8253
8270
|
watch: {
|
|
8254
8271
|
value: {
|
|
8255
8272
|
handler(o) {
|
|
8256
|
-
this.dataList =
|
|
8273
|
+
this.dataList = M(o || []);
|
|
8257
8274
|
},
|
|
8258
8275
|
immediate: !0,
|
|
8259
8276
|
deep: !0
|
|
@@ -8277,7 +8294,7 @@ const Kn = [
|
|
|
8277
8294
|
}
|
|
8278
8295
|
},
|
|
8279
8296
|
mounted() {
|
|
8280
|
-
this.dataList =
|
|
8297
|
+
this.dataList = M(this.value || []);
|
|
8281
8298
|
}
|
|
8282
8299
|
};
|
|
8283
8300
|
var Xn = function() {
|
|
@@ -8521,7 +8538,7 @@ const kt = ll.exports, al = Dt({
|
|
|
8521
8538
|
},
|
|
8522
8539
|
emits: ["change"],
|
|
8523
8540
|
setup(o, { emit: e }) {
|
|
8524
|
-
const t =
|
|
8541
|
+
const t = Mt([]), n = () => {
|
|
8525
8542
|
t.value.push({
|
|
8526
8543
|
keyName: "",
|
|
8527
8544
|
fieldName: ""
|
|
@@ -8531,13 +8548,13 @@ const kt = ll.exports, al = Dt({
|
|
|
8531
8548
|
}, l = () => {
|
|
8532
8549
|
e("change", we(t));
|
|
8533
8550
|
};
|
|
8534
|
-
return
|
|
8535
|
-
t.value =
|
|
8551
|
+
return Ot(() => o.value, (i) => {
|
|
8552
|
+
t.value = M(i || []);
|
|
8536
8553
|
}, {
|
|
8537
8554
|
immediate: !0,
|
|
8538
8555
|
deep: !0
|
|
8539
8556
|
}), Nt(() => {
|
|
8540
|
-
t.value =
|
|
8557
|
+
t.value = M(o.value || []);
|
|
8541
8558
|
}), {
|
|
8542
8559
|
dataList: t,
|
|
8543
8560
|
onAdd: n,
|
|
@@ -8586,8 +8603,8 @@ const pl = `【参数名】是跳转链接上携带参数的key值;
|
|
|
8586
8603
|
transParams: []
|
|
8587
8604
|
}
|
|
8588
8605
|
}), mt = (o = {}) => {
|
|
8589
|
-
const e =
|
|
8590
|
-
return G(P({},
|
|
8606
|
+
const e = M(o.data) || {};
|
|
8607
|
+
return G(P({}, M(o)), {
|
|
8591
8608
|
rule: o.rule || "",
|
|
8592
8609
|
data: G(P({}, e), {
|
|
8593
8610
|
linkPage: e.linkPage || "",
|
|
@@ -8664,7 +8681,7 @@ const pl = `【参数名】是跳转链接上携带参数的key值;
|
|
|
8664
8681
|
this.dataList.splice(o, 1), this.onInputChange();
|
|
8665
8682
|
},
|
|
8666
8683
|
onInputChange() {
|
|
8667
|
-
this.$emit("change",
|
|
8684
|
+
this.$emit("change", M(this.dataList));
|
|
8668
8685
|
},
|
|
8669
8686
|
setDataValue(o, e, t) {
|
|
8670
8687
|
e === "linkPage" && t && typeof t == "object" ? (o.data.linkPage = t.pageId || "", o.data.linkProjectId = t.projectId || "") : o.data[e] = t, e === "linkPage" && o.data.linkPage && (o.data.href = ""), this.onInputChange();
|
|
@@ -8716,7 +8733,7 @@ const bl = {
|
|
|
8716
8733
|
EcanTextarea: gn,
|
|
8717
8734
|
EcanMarkAreaConfig: Tn,
|
|
8718
8735
|
EcanMarkLinkConfig: Fn,
|
|
8719
|
-
EcanFormGroup:
|
|
8736
|
+
EcanFormGroup: On,
|
|
8720
8737
|
EcanGraphicFieldSelect: qn,
|
|
8721
8738
|
EcanVisualColorConfig: Un,
|
|
8722
8739
|
EcanVisualSizeConfig: Qn,
|