@ecan-bi/datav 1.4.53 → 1.4.55
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 +26 -21
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- 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.55 */
|
|
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";
|
|
@@ -9658,7 +9658,9 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
|
|
|
9658
9658
|
c.pageId || useHrefParamsToGlobalVariables();
|
|
9659
9659
|
const d = computed(() => !!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)), p = ref(), m = () => {
|
|
9660
9660
|
p.value.setAttribute("datav-theme", c.theme);
|
|
9661
|
-
}, v = ref({
|
|
9661
|
+
}, v = ref({
|
|
9662
|
+
$page: {}
|
|
9663
|
+
}), g = inject("usedComponentList", []), y = inject("componentList", []), b = computed(() => {
|
|
9662
9664
|
const vr = [];
|
|
9663
9665
|
for (const br of unref(g))
|
|
9664
9666
|
br.type === "ecanModal" ? vr.push(...br.componentList) : vr.push(br);
|
|
@@ -9743,7 +9745,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
|
|
|
9743
9745
|
projectRequestUrl: unref(w),
|
|
9744
9746
|
getModel: qn
|
|
9745
9747
|
})(), kr = ((Dr = Er == null ? void 0 : Er.data) == null ? void 0 : Dr.data) || {};
|
|
9746
|
-
vr.requestKeyName && (v.value[vr.requestKeyName] = kr);
|
|
9748
|
+
vr.requestKeyName && (v.value.$page[vr.requestKeyName] = kr);
|
|
9747
9749
|
const Ar = Jn.get(Sr);
|
|
9748
9750
|
if (Ar != null && Ar.length && (!br || Xn[Sr])) {
|
|
9749
9751
|
for (const Ir of Ar)
|
|
@@ -9916,7 +9918,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
|
|
|
9916
9918
|
configStyle: _
|
|
9917
9919
|
};
|
|
9918
9920
|
}
|
|
9919
|
-
}),
|
|
9921
|
+
}), ProviderConfig_vue_vue_type_style_index_0_scoped_bcf17302_lang = "";
|
|
9920
9922
|
function _sfc_render$y(c, u, f, d, p, m) {
|
|
9921
9923
|
return openBlock(), createElementBlock("div", {
|
|
9922
9924
|
id: "ProviderConfig",
|
|
@@ -9926,7 +9928,7 @@ function _sfc_render$y(c, u, f, d, p, m) {
|
|
|
9926
9928
|
renderSlot(c.$slots, "default", {}, void 0, !0)
|
|
9927
9929
|
], 4);
|
|
9928
9930
|
}
|
|
9929
|
-
const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$y], ["__scopeId", "data-v-
|
|
9931
|
+
const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$y], ["__scopeId", "data-v-bcf17302"]]), EcanProviderConfig = withInstall$1(ProviderConfig), textProps = {
|
|
9930
9932
|
...props,
|
|
9931
9933
|
name: "文本",
|
|
9932
9934
|
keyName: "文本",
|
|
@@ -9934,7 +9936,7 @@ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _s
|
|
|
9934
9936
|
width: "100px",
|
|
9935
9937
|
height: "40px",
|
|
9936
9938
|
text: "文字",
|
|
9937
|
-
lineHeight:
|
|
9939
|
+
lineHeight: "18px",
|
|
9938
9940
|
color: "#333",
|
|
9939
9941
|
variableColor: "#f00",
|
|
9940
9942
|
fontSize: "14px",
|
|
@@ -11488,7 +11490,9 @@ const __default__$4 = defineComponent({
|
|
|
11488
11490
|
setup(c, { expose: u }) {
|
|
11489
11491
|
const f = ref(!1), d = usePickComponentStyle(c), p = ref({}), m = computed(() => c.variableFontSize || "14px"), v = computed(() => "-" + unref(m)), g = ref(), { pageMode: y, globalVariable: b } = inject(GLOBAL_CONFIG, {
|
|
11490
11492
|
pageMode: "normal",
|
|
11491
|
-
globalVariable: {
|
|
11493
|
+
globalVariable: {
|
|
11494
|
+
$page: {}
|
|
11495
|
+
}
|
|
11492
11496
|
}), {
|
|
11493
11497
|
getGlobalModel: w,
|
|
11494
11498
|
setGlobalModel: Bn,
|
|
@@ -11543,7 +11547,7 @@ const __default__$4 = defineComponent({
|
|
|
11543
11547
|
let mr = "";
|
|
11544
11548
|
if (dr != null && dr.length) {
|
|
11545
11549
|
const gr = (fr = dr[0].slice(1, -1)) == null ? void 0 : fr.trim();
|
|
11546
|
-
gr.includes("
|
|
11550
|
+
gr.includes("$page") ? mr = vn(gr) : mr = ar && ar[gr] ? ar[gr] : c.titleContent;
|
|
11547
11551
|
} else
|
|
11548
11552
|
mr = c.titleContent;
|
|
11549
11553
|
g.value = c != null && c.isMarkDown ? esmEntry(mr) : mr;
|
|
@@ -11613,11 +11617,12 @@ const __default__$4 = defineComponent({
|
|
|
11613
11617
|
}), Un = computed(() => {
|
|
11614
11618
|
let ar = {};
|
|
11615
11619
|
return (c.isContentMarkDown || c.exceedConfig) && (ar = {
|
|
11620
|
+
display: "flex",
|
|
11616
11621
|
width: "100%",
|
|
11617
11622
|
height: "100%",
|
|
11618
11623
|
overflow: "auto",
|
|
11619
11624
|
whiteSpace: "normal"
|
|
11620
|
-
}), ar;
|
|
11625
|
+
}, c.isContentMarkDown || (ar.alignItems = c.alignItems, ar.justifyContent = c.justifyContent)), ar;
|
|
11621
11626
|
}), nr = ref(1), Jn = computed(() => {
|
|
11622
11627
|
var yr;
|
|
11623
11628
|
if (unref(f))
|
|
@@ -11629,7 +11634,7 @@ const __default__$4 = defineComponent({
|
|
|
11629
11634
|
ir = ir == null ? void 0 : ir.replace(/\n|\\n/g, "<br/>"), ir = ir == null ? void 0 : ir.replace(/\s(?!\{) | (?!\})\s/g, " ");
|
|
11630
11635
|
const dr = ir.match(/\{(.+?)\}/g) || [];
|
|
11631
11636
|
let mr = "", gr = "";
|
|
11632
|
-
if (c.isContentMarkDown || (c.exceedConfig === "wrap" ? gr = "show-wrap" : c.exceedConfig === "ellipsis" && (gr = "show-ellipsis")), dr == null || dr.length === 0) {
|
|
11637
|
+
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
11638
|
if (ir && c.format === "percentage" && !isNaN(+ir)) {
|
|
11634
11639
|
const pr = parseFloat(ir), xr = pr * 100, vr = Xn(xr.toFixed(2));
|
|
11635
11640
|
pr >= 0 ? ir = `<span class="${gr}" style="color: ${vr || fr || "#ED6643"};font-size:${unref(m)};display: inline-block;${unref(Vn)}">
|
|
@@ -11649,7 +11654,7 @@ const __default__$4 = defineComponent({
|
|
|
11649
11654
|
for (let pr = 0; pr < dr.length; pr++) {
|
|
11650
11655
|
const xr = dr[pr], vr = (yr = xr == null ? void 0 : xr.slice(1, xr.length - 1)) == null ? void 0 : yr.trim();
|
|
11651
11656
|
let br = vr;
|
|
11652
|
-
if (vr.includes("
|
|
11657
|
+
if (vr.includes("$page"))
|
|
11653
11658
|
br = vn(vr) || c.variableDefaultValue;
|
|
11654
11659
|
else {
|
|
11655
11660
|
const Er = vr.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
|
|
@@ -11799,9 +11804,9 @@ const __default__$4 = defineComponent({
|
|
|
11799
11804
|
break;
|
|
11800
11805
|
case "request": {
|
|
11801
11806
|
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
|
-
});
|
|
11807
|
+
ar || ar === void 0 ? tr() : (sr.value = !0, J(fr, (hr) => {
|
|
11808
|
+
hr && (hr.rowsToData ? Pn(hr.rowsToData) : Pn(hr)), sr.value = !1;
|
|
11809
|
+
}));
|
|
11805
11810
|
break;
|
|
11806
11811
|
}
|
|
11807
11812
|
}
|
|
@@ -11853,15 +11858,15 @@ const __default__$4 = defineComponent({
|
|
|
11853
11858
|
}
|
|
11854
11859
|
}), __injectCSSVars__$4 = () => {
|
|
11855
11860
|
useCssVars((c) => ({
|
|
11856
|
-
"
|
|
11857
|
-
"
|
|
11858
|
-
"
|
|
11859
|
-
|
|
11860
|
-
"
|
|
11861
|
+
"666e7ed3": c.vFontSize,
|
|
11862
|
+
"0f81668c": c.textIndent,
|
|
11863
|
+
"6db2c038": c.percentageSide,
|
|
11864
|
+
"2fe434a2": c.titleFontColor,
|
|
11865
|
+
"5c3109d8": c.variableColor
|
|
11861
11866
|
}));
|
|
11862
11867
|
}, __setup__$4 = __default__$4.setup;
|
|
11863
11868
|
__default__$4.setup = __setup__$4 ? (c, u) => (__injectCSSVars__$4(), __setup__$4(c, u)) : __injectCSSVars__$4;
|
|
11864
|
-
const
|
|
11869
|
+
const Text_vue_vue_type_style_index_0_scoped_a7769bba_lang = "", Text_vue_vue_type_style_index_1_lang = "", _hoisted_1$f = ["innerHTML"], _hoisted_2$7 = ["innerHTML"], _hoisted_3$3 = ["innerHTML"];
|
|
11865
11870
|
function _sfc_render$x(c, u, f, d, p, m) {
|
|
11866
11871
|
const v = resolveComponent("skeleton"), g = resolveComponent("a-tooltip");
|
|
11867
11872
|
return c.loading ? (openBlock(), createElementBlock("div", {
|
|
@@ -11916,7 +11921,7 @@ function _sfc_render$x(c, u, f, d, p, m) {
|
|
|
11916
11921
|
}, null, 14, _hoisted_3$3))
|
|
11917
11922
|
], 4));
|
|
11918
11923
|
}
|
|
11919
|
-
const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-
|
|
11924
|
+
const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-a7769bba"]]), EcanText = withInstall$1(Text), _sfc_main$s = defineComponent({
|
|
11920
11925
|
name: "EcanScrollText",
|
|
11921
11926
|
setup() {
|
|
11922
11927
|
return {
|