@ecan-bi/datav 1.4.28 → 1.4.29
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 +95 -95
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
1
|
+
/*! @ecan-bi/datav@1.4.29 */
|
|
2
2
|
import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, onBeforeUnmount, normalizeClass as normalizeClass$1, normalizeStyle as normalizeStyle$1, createElementVNode, createCommentVNode, Fragment, renderList, provide, useCssVars, toDisplayString, pushScopeId, popScopeId, createSlots, withModifiers, createTextVNode, Teleport, resolveDynamicComponent, mergeProps, normalizeProps, toHandlers, withDirectives, vShow, reactive, vModelText, getCurrentInstance, onDeactivated, isRef, onActivated, isVNode, Transition, onBeforeUpdate, Comment } from "vue";
|
|
3
3
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
4
4
|
import { addListener, removeListener } from "resize-detector";
|
|
@@ -9990,9 +9990,45 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
9990
9990
|
...textComponentProps
|
|
9991
9991
|
},
|
|
9992
9992
|
setup(c, { expose: u }) {
|
|
9993
|
-
const f = ref(!1), d = usePickComponentStyle(c), p = ref({}), m = computed(() => c.variableFontSize || "14px"), v = computed(() => "-" + unref(m)),
|
|
9993
|
+
const f = ref(!1), d = usePickComponentStyle(c), p = ref({}), m = computed(() => c.variableFontSize || "14px"), v = computed(() => "-" + unref(m)), {
|
|
9994
|
+
getGlobalModel: g,
|
|
9995
|
+
setGlobalModel: y,
|
|
9996
|
+
getRecordValueByKeyName: b,
|
|
9997
|
+
hanldePageRequestData: w
|
|
9998
|
+
} = inject(GLOBAL_MODEL, {
|
|
9999
|
+
// @ts-ignore
|
|
10000
|
+
// eslint-disable-next-line no-void
|
|
10001
|
+
getGlobalModel: (Fn) => {
|
|
10002
|
+
},
|
|
10003
|
+
// @ts-ignore
|
|
10004
|
+
// eslint-disable-next-line no-void
|
|
10005
|
+
setGlobalModel: (Fn, Zn) => {
|
|
10006
|
+
},
|
|
10007
|
+
// @ts-ignore
|
|
10008
|
+
// eslint-disable-next-line no-void
|
|
10009
|
+
getRecordValueByKeyName: (Fn) => {
|
|
10010
|
+
},
|
|
10011
|
+
// @ts-ignore
|
|
10012
|
+
// eslint-disable-next-line no-void
|
|
10013
|
+
hanldePageRequestData: (Fn, Zn) => {
|
|
10014
|
+
}
|
|
10015
|
+
}), { setLoadedData: gn, loadedData: x } = inject(LOADED_DATA, {
|
|
10016
|
+
// @ts-ignore
|
|
10017
|
+
// eslint-disable-next-line no-void
|
|
10018
|
+
setLoadedData: (Fn, Zn) => {
|
|
10019
|
+
},
|
|
10020
|
+
loadedData: {}
|
|
10021
|
+
}), { setTemplateData: hn } = inject("templateOperate", {
|
|
10022
|
+
// @ts-ignore
|
|
10023
|
+
// eslint-disable-next-line no-void
|
|
10024
|
+
setTemplateData: (Fn) => {
|
|
10025
|
+
}
|
|
10026
|
+
}), J = (Fn) => {
|
|
10027
|
+
const Zn = c.id, Qn = g(Zn);
|
|
10028
|
+
y(Zn, { ...Qn, value: Fn || "", RECORD: Fn || "" });
|
|
10029
|
+
}, re = (Fn) => {
|
|
9994
10030
|
var Zn, Qn;
|
|
9995
|
-
if (hasOwn(Fn, "value") &&
|
|
10031
|
+
if (hasOwn(Fn, "value") && J(Fn.value), c.showAnimation) {
|
|
9996
10032
|
const Kn = c.text.match(/\{(.+?)\}/g) || [];
|
|
9997
10033
|
if (Kn != null && Kn.length) {
|
|
9998
10034
|
const ir = (Zn = Kn[0].slice(1, -1)) == null ? void 0 : Zn.trim();
|
|
@@ -10033,65 +10069,32 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
10033
10069
|
p.value = Fn;
|
|
10034
10070
|
};
|
|
10035
10071
|
watch(() => [c.data, c.dataType], ([Fn, Zn]) => {
|
|
10036
|
-
Zn === "static" &&
|
|
10072
|
+
Zn === "static" && re(Fn);
|
|
10037
10073
|
}, {
|
|
10038
10074
|
immediate: !0
|
|
10039
10075
|
});
|
|
10040
|
-
const {
|
|
10041
|
-
getGlobalModel: y,
|
|
10042
|
-
setGlobalModel: b,
|
|
10043
|
-
getRecordValueByKeyName: w,
|
|
10044
|
-
hanldePageRequestData: gn
|
|
10045
|
-
} = inject(GLOBAL_MODEL, {
|
|
10046
|
-
// @ts-ignore
|
|
10047
|
-
// eslint-disable-next-line no-void
|
|
10048
|
-
getGlobalModel: (Fn) => {
|
|
10049
|
-
},
|
|
10050
|
-
// @ts-ignore
|
|
10051
|
-
// eslint-disable-next-line no-void
|
|
10052
|
-
setGlobalModel: (Fn, Zn) => {
|
|
10053
|
-
},
|
|
10054
|
-
// @ts-ignore
|
|
10055
|
-
// eslint-disable-next-line no-void
|
|
10056
|
-
getRecordValueByKeyName: (Fn) => {
|
|
10057
|
-
},
|
|
10058
|
-
// @ts-ignore
|
|
10059
|
-
// eslint-disable-next-line no-void
|
|
10060
|
-
hanldePageRequestData: (Fn, Zn) => {
|
|
10061
|
-
}
|
|
10062
|
-
}), { setLoadedData: x, loadedData: hn } = inject(LOADED_DATA, {
|
|
10063
|
-
// @ts-ignore
|
|
10064
|
-
// eslint-disable-next-line no-void
|
|
10065
|
-
setLoadedData: (Fn, Zn) => {
|
|
10066
|
-
},
|
|
10067
|
-
loadedData: {}
|
|
10068
|
-
}), { setTemplateData: J } = inject("templateOperate", {
|
|
10069
|
-
// @ts-ignore
|
|
10070
|
-
// eslint-disable-next-line no-void
|
|
10071
|
-
setTemplateData: (Fn) => {
|
|
10072
|
-
}
|
|
10073
|
-
}), re = computed(() => {
|
|
10076
|
+
const Pn = computed(() => {
|
|
10074
10077
|
let Fn = "";
|
|
10075
10078
|
if (c.gradientShow) {
|
|
10076
10079
|
const { gradientColor: Zn, gradientOffset: Qn, gradientAngle: Kn, color: ir } = c;
|
|
10077
10080
|
Fn += `background: linear-gradient(${Kn}, ${ir}, ${Zn || "transparent"} ${Qn * 100}%);-webkit-background-clip: text;color: transparent;`;
|
|
10078
10081
|
}
|
|
10079
10082
|
return Fn;
|
|
10080
|
-
}),
|
|
10083
|
+
}), En = computed(() => {
|
|
10081
10084
|
const Fn = {};
|
|
10082
10085
|
if (c.gradientShow) {
|
|
10083
10086
|
const { gradientColor: Zn, gradientOffset: Qn, gradientAngle: Kn, color: ir } = c, ar = Zn || "transparent";
|
|
10084
10087
|
Fn.background = `linear-gradient(${Kn}, ${ir}, ${ar} ${Qn * 100}%)`, Fn["-webkit-background-clip"] = "text", Fn.color = "transparent";
|
|
10085
10088
|
}
|
|
10086
10089
|
return Fn;
|
|
10087
|
-
}),
|
|
10090
|
+
}), _ = computed(() => {
|
|
10088
10091
|
const Fn = {};
|
|
10089
10092
|
return c.linkPage && (Fn.cursor = "pointer", Fn.userSelect = "none"), Fn;
|
|
10090
|
-
}),
|
|
10093
|
+
}), pn = ref(1), vn = computed(() => {
|
|
10091
10094
|
var sr;
|
|
10092
10095
|
if (unref(f))
|
|
10093
10096
|
return "NaN";
|
|
10094
|
-
if (!
|
|
10097
|
+
if (!pn.value)
|
|
10095
10098
|
return;
|
|
10096
10099
|
const Fn = unref(p), Zn = c.increaseColor || c.color, Qn = c.declineColor || c.color;
|
|
10097
10100
|
let Kn = c.text;
|
|
@@ -10100,17 +10103,17 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
10100
10103
|
let ar = "", or = "";
|
|
10101
10104
|
if (c.exceedConfig === "wrap" ? or = "show-wrap" : c.exceedConfig === "ellipsis" && (or = "show-ellipsis"), ir == null || ir.length === 0) {
|
|
10102
10105
|
if (Kn && c.format === "percentage" && !isNaN(+Kn)) {
|
|
10103
|
-
const nr = parseFloat(Kn), lr = nr * 100, ur =
|
|
10104
|
-
nr >= 0 ? Kn = `<span class="${or}" style="color: ${ur || Zn || "#ED6643"};font-size:${unref(m)};display: inline-block;${unref(
|
|
10106
|
+
const nr = parseFloat(Kn), lr = nr * 100, ur = In(lr.toFixed(2));
|
|
10107
|
+
nr >= 0 ? Kn = `<span class="${or}" style="color: ${ur || Zn || "#ED6643"};font-size:${unref(m)};display: inline-block;${unref(Pn)}">
|
|
10105
10108
|
<div class="percentage-img-box">
|
|
10106
10109
|
<img style="width: ${unref(m)};filter: ${`drop-shadow(${ur || Zn || "#ED6643"} ${unref(m)} 0px)`};" src="${goUp}"/>
|
|
10107
10110
|
</div>
|
|
10108
|
-
<span style="color: ${ur || c.color};${unref(
|
|
10109
|
-
</span>` : Kn = `<span class="${or}" style="color: ${ur || Qn || "#6ACB97"};font-size:${unref(m)};display: inline-block;${unref(
|
|
10111
|
+
<span style="color: ${ur || c.color};${unref(Pn)}">${Math.abs(+lr).toFixed(2)}%</span>
|
|
10112
|
+
</span>` : Kn = `<span class="${or}" style="color: ${ur || Qn || "#6ACB97"};font-size:${unref(m)};display: inline-block;${unref(Pn)}">
|
|
10110
10113
|
<div class="percentage-img-box">
|
|
10111
10114
|
<img style="width: ${unref(m)};filter: ${`drop-shadow(${ur || Qn || "#6ACB97"} ${unref(m)} 0px)`};" src="${goDown}"/>
|
|
10112
10115
|
</div>
|
|
10113
|
-
<span style="color: ${ur || c.color};${unref(
|
|
10116
|
+
<span style="color: ${ur || c.color};${unref(Pn)}">${c.minusSignShow ? "-" : ""}${Math.abs(+lr).toFixed(2)}%</span>
|
|
10114
10117
|
</span>`;
|
|
10115
10118
|
}
|
|
10116
10119
|
ar = Kn;
|
|
@@ -10122,9 +10125,9 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
10122
10125
|
for (let fr = 0; fr < pr.length; fr++) {
|
|
10123
10126
|
const hr = pr[fr], gr = Fn[hr];
|
|
10124
10127
|
if (gr)
|
|
10125
|
-
mr = ur.replace(hr,
|
|
10128
|
+
mr = ur.replace(hr, b(String(gr)) || gr);
|
|
10126
10129
|
else {
|
|
10127
|
-
const br = getPageUrlParams(
|
|
10130
|
+
const br = getPageUrlParams(qn);
|
|
10128
10131
|
br[hr] && (mr = decodeURIComponent(br[hr]));
|
|
10129
10132
|
}
|
|
10130
10133
|
}
|
|
@@ -10137,44 +10140,44 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
10137
10140
|
const fr = c.format;
|
|
10138
10141
|
if (fr === "percentage")
|
|
10139
10142
|
if (cr = +cr, isNaN(cr))
|
|
10140
|
-
c.variableDefaultValue ? Kn = Kn.replace(lr, `<span class="${or}" style="color:${
|
|
10143
|
+
c.variableDefaultValue ? Kn = Kn.replace(lr, `<span class="${or}" style="color:${In("0.00") || c.variableColor};font-size:${unref(m)};${unref(Pn)}">${c.variableDefaultValue}</span>`) : Kn = Kn.replace(lr, `<span class="${or}" style="color:${In("0.00") || c.variableColor};font-size:${unref(m)};${unref(Pn)}">0%</span>`);
|
|
10141
10144
|
else if (cr >= 0) {
|
|
10142
10145
|
cr = cr * 100;
|
|
10143
|
-
const hr =
|
|
10146
|
+
const hr = In(cr.toFixed(2));
|
|
10144
10147
|
Kn = Kn.replace(
|
|
10145
10148
|
lr,
|
|
10146
|
-
`<span class="${or}" style="color: ${hr || Zn || "#ED6643"};font-size:${unref(m)};display: inline-block;${unref(
|
|
10149
|
+
`<span class="${or}" style="color: ${hr || Zn || "#ED6643"};font-size:${unref(m)};display: inline-block;${unref(Pn)}">
|
|
10147
10150
|
<div class="percentage-img-box">
|
|
10148
10151
|
<img style="width: ${unref(m)};filter: ${`drop-shadow(${hr || Zn || "#ED6643"} ${unref(m)} 0px)`};" src="${goUp}"/>
|
|
10149
10152
|
</div>
|
|
10150
|
-
<span style="color: ${hr || c.color};${unref(
|
|
10153
|
+
<span style="color: ${hr || c.color};${unref(Pn)}">${Math.abs(+cr).toFixed(2)}%</span>
|
|
10151
10154
|
</span>`
|
|
10152
10155
|
);
|
|
10153
10156
|
} else {
|
|
10154
10157
|
cr = cr * 100;
|
|
10155
|
-
const hr =
|
|
10158
|
+
const hr = In(cr.toFixed(2));
|
|
10156
10159
|
Kn = Kn.replace(
|
|
10157
10160
|
lr,
|
|
10158
|
-
`<span class="${or}" style="color: ${hr || Qn || "#6ACB97"};font-size:${unref(m)};display: inline-block;${unref(
|
|
10161
|
+
`<span class="${or}" style="color: ${hr || Qn || "#6ACB97"};font-size:${unref(m)};display: inline-block;${unref(Pn)}">
|
|
10159
10162
|
<div class="percentage-img-box">
|
|
10160
10163
|
<img style="width: ${unref(m)};filter: ${`drop-shadow(${hr || Qn || "#6ACB97"} ${unref(m)} 0px)`};" src="${goDown}"/>
|
|
10161
10164
|
</div>
|
|
10162
|
-
<span style="color: ${hr || c.color};${unref(
|
|
10165
|
+
<span style="color: ${hr || c.color};${unref(Pn)}">${c.minusSignShow ? "-" : ""}${Math.abs(+cr).toFixed(2)}%</span>
|
|
10163
10166
|
</span>`
|
|
10164
10167
|
);
|
|
10165
10168
|
}
|
|
10166
10169
|
else
|
|
10167
|
-
c.format === "percent" ? (cr = +cr, isNaN(cr) || (cr = (cr * 100).toFixed(2), Kn = Kn.replace(lr, `<span class="${or}" style="color:${
|
|
10170
|
+
c.format === "percent" ? (cr = +cr, isNaN(cr) || (cr = (cr * 100).toFixed(2), Kn = Kn.replace(lr, `<span class="${or}" style="color:${In(cr) || c.variableColor};font-size:${unref(m)};${unref(Pn)}">${cr}%</span>`))) : c.format === "money" ? (cr = +cr, isNaN(cr) || (cr = formatMoney(cr), Kn = Kn.replace(lr, `<span class="${or}" style="color:${In(cr) || c.variableColor};font-size:${unref(m)};${unref(Pn)}">${cr}</span>`))) : fr === "thousands" ? (cr = +cr, isNaN(cr) || (cr = formatThousands(cr), Kn = Kn.replace(lr, `<span class="${or}" style="color:${In(cr) || c.variableColor};font-size:${unref(m)};${unref(Pn)}">${cr}</span>`))) : Kn = Kn.replace(lr, `<span class="${or}" style="color:${In(cr) || c.variableColor};font-size:${unref(m)};${unref(Pn)}">${cr}</span>`);
|
|
10168
10171
|
}
|
|
10169
10172
|
}
|
|
10170
|
-
if (ar || (ar = `<span class="${or}" style="color: ${
|
|
10173
|
+
if (ar || (ar = `<span class="${or}" style="color: ${In(Kn)};${unref(Pn)}">${Kn}</span>`), c.unitShow && c.unitText) {
|
|
10171
10174
|
const { unitTop: nr, unitLeft: lr } = c;
|
|
10172
10175
|
let ur = "position:relative;";
|
|
10173
|
-
nr && (ur += `top:${nr};`), lr && (ur += `margin-left:${lr};`), ar += `<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${ur};${unref(
|
|
10176
|
+
nr && (ur += `top:${nr};`), lr && (ur += `margin-left:${lr};`), ar += `<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${ur};${unref(Pn)}'>${c.unitText}</span>`;
|
|
10174
10177
|
}
|
|
10175
|
-
return c.exceedConfig && (ar = `<span class="${or}" style="display: inline-block;color: ${
|
|
10178
|
+
return c.exceedConfig && (ar = `<span class="${or}" style="display: inline-block;color: ${In(ar)};">${ar}</span>`), ar.includes("span") || (ar = `<span class="${or}" style="color: ${In(ar)};">${ar}</span>`), ar;
|
|
10176
10179
|
});
|
|
10177
|
-
function
|
|
10180
|
+
function In(Fn) {
|
|
10178
10181
|
let Zn = "", Qn = !1;
|
|
10179
10182
|
const { targetValue: Kn, targetShow: ir, notExpectColor: ar } = c;
|
|
10180
10183
|
if (ir) {
|
|
@@ -10199,27 +10202,24 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
10199
10202
|
}
|
|
10200
10203
|
return Zn;
|
|
10201
10204
|
}
|
|
10202
|
-
const { pageMode:
|
|
10205
|
+
const { pageMode: Rn } = inject(GLOBAL_CONFIG, {
|
|
10203
10206
|
pageMode: "normal",
|
|
10204
10207
|
requestList: []
|
|
10205
|
-
}), { pageId:
|
|
10208
|
+
}), { pageId: qn } = inject("templateOperate", {
|
|
10206
10209
|
pageId: ""
|
|
10207
|
-
}) || {},
|
|
10210
|
+
}) || {}, zn = useRequestData(c), Jn = ref(!1), Hn = async () => {
|
|
10208
10211
|
var Fn, Zn, Qn;
|
|
10209
10212
|
try {
|
|
10210
|
-
|
|
10211
|
-
const Kn = await
|
|
10212
|
-
(Fn = Kn == null ? void 0 : Kn.data) != null && Fn.data.rowsToData ?
|
|
10213
|
+
Jn.value = !0;
|
|
10214
|
+
const Kn = await zn();
|
|
10215
|
+
(Fn = Kn == null ? void 0 : Kn.data) != null && Fn.data.rowsToData ? re(((Zn = Kn == null ? void 0 : Kn.data) == null ? void 0 : Zn.data.rowsToData) || {}) : re(((Qn = Kn == null ? void 0 : Kn.data) == null ? void 0 : Qn.data) || {});
|
|
10213
10216
|
} catch (Kn) {
|
|
10214
10217
|
console.error(Kn);
|
|
10215
10218
|
} finally {
|
|
10216
|
-
|
|
10219
|
+
Jn.value = !1;
|
|
10217
10220
|
}
|
|
10218
|
-
}, Hn = (Fn) => {
|
|
10219
|
-
const Zn = c.id, Qn = y(Zn);
|
|
10220
|
-
b(Zn, { ...Qn, value: Fn || "", RECORD: Fn || "" });
|
|
10221
10221
|
}, Wn = () => {
|
|
10222
|
-
|
|
10222
|
+
J("");
|
|
10223
10223
|
}, Yn = (Fn) => {
|
|
10224
10224
|
var Qn, Kn;
|
|
10225
10225
|
const { data: Zn } = (Fn == null ? void 0 : Fn.data) || {};
|
|
@@ -10239,23 +10239,23 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
10239
10239
|
value: isNaN(ar[nr]) ? 0 : ar[nr] || 0
|
|
10240
10240
|
});
|
|
10241
10241
|
}
|
|
10242
|
-
|
|
10242
|
+
J(sr == null ? void 0 : sr.value), re(sr);
|
|
10243
10243
|
} else
|
|
10244
|
-
f.value = !0,
|
|
10244
|
+
f.value = !0, J("NaN"), re({
|
|
10245
10245
|
value: "NaN"
|
|
10246
10246
|
});
|
|
10247
10247
|
}, Un = useIndicatorData(c, Yn), er = async () => {
|
|
10248
10248
|
try {
|
|
10249
|
-
|
|
10249
|
+
Jn.value = !0;
|
|
10250
10250
|
const Fn = await Un();
|
|
10251
10251
|
Yn(Fn);
|
|
10252
10252
|
} catch (Fn) {
|
|
10253
10253
|
console.error(Fn);
|
|
10254
10254
|
} finally {
|
|
10255
|
-
|
|
10255
|
+
Jn.value = !1, gn(c.id, !0);
|
|
10256
10256
|
}
|
|
10257
10257
|
}, Xn = ref(!1);
|
|
10258
|
-
watch(
|
|
10258
|
+
watch(x, (Fn) => {
|
|
10259
10259
|
if (c.dataType === "indicator") {
|
|
10260
10260
|
const Zn = getFixedValueDatas(c.graphicConfig);
|
|
10261
10261
|
Zn != null && Zn.length && (!unref(Xn) && canRequestIndicator(c.graphicConfig, Fn) ? (Xn.value = !0, Vn()) : canRequestIndicator(c.graphicConfig, Fn) || (Xn.value = !1));
|
|
@@ -10270,8 +10270,8 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
10270
10270
|
break;
|
|
10271
10271
|
case "request": {
|
|
10272
10272
|
const { openCustomRequestData: Fn, customRequestName: Zn } = c;
|
|
10273
|
-
Fn || Fn === void 0 ?
|
|
10274
|
-
Qn && (Qn.rowsToData ?
|
|
10273
|
+
Fn || Fn === void 0 ? Hn() : w(Zn, (Qn) => {
|
|
10274
|
+
Qn && (Qn.rowsToData ? re(Qn.rowsToData) : re(Qn));
|
|
10275
10275
|
});
|
|
10276
10276
|
break;
|
|
10277
10277
|
}
|
|
@@ -10291,44 +10291,44 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
10291
10291
|
});
|
|
10292
10292
|
const Dn = useEmitEvent(c), Bn = Dn("click", () => {
|
|
10293
10293
|
const Fn = document.getElementsByClassName(`ecan-text_${c.id}`);
|
|
10294
|
-
Fn != null && Fn.length &&
|
|
10295
|
-
|
|
10294
|
+
Fn != null && Fn.length && J(Fn[0].innerText), setTimeout(() => {
|
|
10295
|
+
J("");
|
|
10296
10296
|
}, 0), !(!c.linkPage && !c.href) && handleJumpLink(c, {
|
|
10297
|
-
pageMode: unref(
|
|
10297
|
+
pageMode: unref(Rn),
|
|
10298
10298
|
targetTemplate: c.targetTemplate,
|
|
10299
|
-
getRecordValueByKeyName:
|
|
10300
|
-
setTemplateData:
|
|
10299
|
+
getRecordValueByKeyName: b,
|
|
10300
|
+
setTemplateData: hn
|
|
10301
10301
|
});
|
|
10302
10302
|
}), tr = Dn("valueChange", () => {
|
|
10303
|
-
|
|
10303
|
+
pn.value++;
|
|
10304
10304
|
});
|
|
10305
10305
|
return useOnEvent(c, {
|
|
10306
10306
|
refreshData: Vn,
|
|
10307
10307
|
resetRecord: Wn,
|
|
10308
10308
|
click: Bn,
|
|
10309
10309
|
valueChange: tr
|
|
10310
|
-
}), watch(() =>
|
|
10310
|
+
}), watch(() => vn.value, (Fn, Zn) => {
|
|
10311
10311
|
Fn !== Zn && tr();
|
|
10312
10312
|
}), {
|
|
10313
10313
|
style: d,
|
|
10314
|
-
myText:
|
|
10315
|
-
loading:
|
|
10314
|
+
myText: vn,
|
|
10315
|
+
loading: Jn,
|
|
10316
10316
|
click: Bn,
|
|
10317
10317
|
textIndent: v,
|
|
10318
10318
|
vFontSize: m,
|
|
10319
|
-
gradientStyle:
|
|
10320
|
-
cursorStyle:
|
|
10319
|
+
gradientStyle: En,
|
|
10320
|
+
cursorStyle: _
|
|
10321
10321
|
};
|
|
10322
10322
|
}
|
|
10323
10323
|
}), __injectCSSVars__$4 = () => {
|
|
10324
10324
|
useCssVars((c) => ({
|
|
10325
|
-
"
|
|
10326
|
-
"
|
|
10327
|
-
|
|
10325
|
+
"2c3aec33": c.vFontSize,
|
|
10326
|
+
"0342a52c": c.textIndent,
|
|
10327
|
+
"66e78e84": c.percentageSide
|
|
10328
10328
|
}));
|
|
10329
10329
|
}, __setup__$4 = __default__$4.setup;
|
|
10330
10330
|
__default__$4.setup = __setup__$4 ? (c, u) => (__injectCSSVars__$4(), __setup__$4(c, u)) : __injectCSSVars__$4;
|
|
10331
|
-
const
|
|
10331
|
+
const Text_vue_vue_type_style_index_0_scoped_aa787de4_lang = "", Text_vue_vue_type_style_index_1_lang = "", _hoisted_1$f = ["innerHTML"];
|
|
10332
10332
|
function _sfc_render$x(c, u, f, d, p, m) {
|
|
10333
10333
|
const v = resolveComponent("skeleton");
|
|
10334
10334
|
return c.loading ? (openBlock(), createElementBlock("div", {
|
|
@@ -10349,7 +10349,7 @@ function _sfc_render$x(c, u, f, d, p, m) {
|
|
|
10349
10349
|
onClick: u[0] || (u[0] = (...g) => c.click && c.click(...g))
|
|
10350
10350
|
}, null, 14, _hoisted_1$f));
|
|
10351
10351
|
}
|
|
10352
|
-
const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-
|
|
10352
|
+
const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-aa787de4"]]), EcanText = withInstall$1(Text), _sfc_main$s = defineComponent({
|
|
10353
10353
|
name: "EcanScrollText",
|
|
10354
10354
|
setup() {
|
|
10355
10355
|
return {
|