@ecan-bi/datav 1.4.52 → 1.4.54
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 +15 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/text/text/Text.vue.d.ts +4 -4
- package/types/text/text/index.d.ts +4 -4
- package/types/text/text/props.d.ts +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
1
|
+
/*! @ecan-bi/datav@1.4.54 */
|
|
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";
|
|
@@ -9934,7 +9934,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
9934
9934
|
width: "100px",
|
|
9935
9935
|
height: "40px",
|
|
9936
9936
|
text: "文字",
|
|
9937
|
-
lineHeight:
|
|
9937
|
+
lineHeight: "18px",
|
|
9938
9938
|
color: "#333",
|
|
9939
9939
|
variableColor: "#f00",
|
|
9940
9940
|
fontSize: "14px",
|
|
@@ -11613,11 +11613,12 @@ const __default__$4 = defineComponent({
|
|
|
11613
11613
|
}), Un = computed(() => {
|
|
11614
11614
|
let ar = {};
|
|
11615
11615
|
return (c.isContentMarkDown || c.exceedConfig) && (ar = {
|
|
11616
|
+
display: "flex",
|
|
11616
11617
|
width: "100%",
|
|
11617
11618
|
height: "100%",
|
|
11618
11619
|
overflow: "auto",
|
|
11619
11620
|
whiteSpace: "normal"
|
|
11620
|
-
}), ar;
|
|
11621
|
+
}, c.isContentMarkDown || (ar.alignItems = c.alignItems, ar.justifyContent = c.justifyContent)), ar;
|
|
11621
11622
|
}), nr = ref(1), Jn = computed(() => {
|
|
11622
11623
|
var yr;
|
|
11623
11624
|
if (unref(f))
|
|
@@ -11629,7 +11630,7 @@ const __default__$4 = defineComponent({
|
|
|
11629
11630
|
ir = ir == null ? void 0 : ir.replace(/\n|\\n/g, "<br/>"), ir = ir == null ? void 0 : ir.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
11630
11631
|
const dr = ir.match(/\{(.+?)\}/g) || [];
|
|
11631
11632
|
let mr = "", gr = "";
|
|
11632
|
-
if (c.isContentMarkDown || (c.exceedConfig === "wrap" ? gr = "show-wrap" : c.exceedConfig === "ellipsis" && (gr = "show-ellipsis")), dr == null || dr.length === 0) {
|
|
11633
|
+
if (c.isContentMarkDown || (c.exceedConfig === "wrap" ? gr = "show-wrap " + c.justifyContent : c.exceedConfig === "ellipsis" && (gr = "show-ellipsis " + c.justifyContent)), dr == null || dr.length === 0) {
|
|
11633
11634
|
if (ir && c.format === "percentage" && !isNaN(+ir)) {
|
|
11634
11635
|
const pr = parseFloat(ir), xr = pr * 100, vr = Xn(xr.toFixed(2));
|
|
11635
11636
|
pr >= 0 ? ir = `<span class="${gr}" style="color: ${vr || fr || "#ED6643"};font-size:${unref(m)};display: inline-block;${unref(Vn)}">
|
|
@@ -11799,9 +11800,9 @@ const __default__$4 = defineComponent({
|
|
|
11799
11800
|
break;
|
|
11800
11801
|
case "request": {
|
|
11801
11802
|
const { openCustomRequestData: ar, customRequestName: fr } = c;
|
|
11802
|
-
ar || ar === void 0 ? tr() : J(fr, (hr) => {
|
|
11803
|
-
hr && (hr.rowsToData ? Pn(hr.rowsToData) : Pn(hr));
|
|
11804
|
-
});
|
|
11803
|
+
ar || ar === void 0 ? tr() : (sr.value = !0, J(fr, (hr) => {
|
|
11804
|
+
hr && (hr.rowsToData ? Pn(hr.rowsToData) : Pn(hr)), sr.value = !1;
|
|
11805
|
+
}));
|
|
11805
11806
|
break;
|
|
11806
11807
|
}
|
|
11807
11808
|
}
|
|
@@ -11853,15 +11854,15 @@ const __default__$4 = defineComponent({
|
|
|
11853
11854
|
}
|
|
11854
11855
|
}), __injectCSSVars__$4 = () => {
|
|
11855
11856
|
useCssVars((c) => ({
|
|
11856
|
-
"
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11857
|
+
"44f1a360": c.vFontSize,
|
|
11858
|
+
"7b7ea6af": c.textIndent,
|
|
11859
|
+
76711687: c.percentageSide,
|
|
11860
|
+
d54f475c: c.titleFontColor,
|
|
11861
|
+
b41bb7de: c.variableColor
|
|
11861
11862
|
}));
|
|
11862
11863
|
}, __setup__$4 = __default__$4.setup;
|
|
11863
11864
|
__default__$4.setup = __setup__$4 ? (c, u) => (__injectCSSVars__$4(), __setup__$4(c, u)) : __injectCSSVars__$4;
|
|
11864
|
-
const
|
|
11865
|
+
const Text_vue_vue_type_style_index_0_scoped_6409c309_lang = "", Text_vue_vue_type_style_index_1_lang = "", _hoisted_1$f = ["innerHTML"], _hoisted_2$7 = ["innerHTML"], _hoisted_3$3 = ["innerHTML"];
|
|
11865
11866
|
function _sfc_render$x(c, u, f, d, p, m) {
|
|
11866
11867
|
const v = resolveComponent("skeleton"), g = resolveComponent("a-tooltip");
|
|
11867
11868
|
return c.loading ? (openBlock(), createElementBlock("div", {
|
|
@@ -11916,7 +11917,7 @@ function _sfc_render$x(c, u, f, d, p, m) {
|
|
|
11916
11917
|
}, null, 14, _hoisted_3$3))
|
|
11917
11918
|
], 4));
|
|
11918
11919
|
}
|
|
11919
|
-
const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-
|
|
11920
|
+
const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-6409c309"]]), EcanText = withInstall$1(Text), _sfc_main$s = defineComponent({
|
|
11920
11921
|
name: "EcanScrollText",
|
|
11921
11922
|
setup() {
|
|
11922
11923
|
return {
|