@ecan-bi/datav 1.0.57 → 1.0.60
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 +29 -37
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +29 -37
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +10 -10
- package/package.json +1 -1
- package/types/table/table/Table.vue.d.ts +2 -1
- package/types/table/table/index.d.ts +2 -1
- package/types/text/text/Text.vue.d.ts +22 -0
- package/types/text/text/index.d.ts +22 -0
- package/types/text/text/props.d.ts +12 -0
package/dist/index.umd.js
CHANGED
|
@@ -2704,32 +2704,34 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2704
2704
|
justifyContent: "center",
|
|
2705
2705
|
alignItems: "center",
|
|
2706
2706
|
variableFontSize: "14px",
|
|
2707
|
-
data: {}
|
|
2707
|
+
data: {},
|
|
2708
|
+
variableDefaultValue: ""
|
|
2708
2709
|
});
|
|
2709
2710
|
const textComponentProps = transformToComponentProps(textProps);
|
|
2710
2711
|
const textEvents = ["refreshData", "click"];
|
|
2711
|
-
var Text_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".skeleton-wrapper[data-v-
|
|
2712
|
+
var Text_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".skeleton-wrapper[data-v-05da96f2] {\n overflow: hidden;\n}\n.ecan-text[data-v-05da96f2] {\n overflow: hidden;\n display: flex;\n}\n")();
|
|
2712
2713
|
const _sfc_main$l = vue.defineComponent({
|
|
2713
2714
|
name: "EcanText",
|
|
2714
2715
|
components: { Skeleton },
|
|
2715
2716
|
props: __spreadValues({}, textComponentProps),
|
|
2716
2717
|
setup(props2) {
|
|
2717
2718
|
const style2 = usePickComponentStyle(props2);
|
|
2718
|
-
const myData = vue.
|
|
2719
|
+
const myData = vue.computed(() => props2.data || {});
|
|
2719
2720
|
const myText = vue.computed(() => {
|
|
2720
|
-
let text = props2.text;
|
|
2721
2721
|
const data = vue.unref(myData);
|
|
2722
|
+
let text = props2.text;
|
|
2723
|
+
text = text == null ? void 0 : text.replace(/\n|\\n/g, "<br />");
|
|
2722
2724
|
const variables = text.match(/\{\w*\}/g);
|
|
2723
2725
|
if (variables == null || variables.length === 0)
|
|
2724
2726
|
return text;
|
|
2725
2727
|
for (let i = 0; i < variables.length; i++) {
|
|
2726
2728
|
const variable = variables[i];
|
|
2727
2729
|
const v = variable.slice(1, variable.length - 1);
|
|
2728
|
-
const usedVariables = data[v]
|
|
2730
|
+
const usedVariables = data[v];
|
|
2729
2731
|
if (usedVariables != null) {
|
|
2730
2732
|
text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${usedVariables}</span>`);
|
|
2731
2733
|
} else {
|
|
2732
|
-
text = text.replace(variable,
|
|
2734
|
+
text = text.replace(variable, props2.variableDefaultValue);
|
|
2733
2735
|
}
|
|
2734
2736
|
}
|
|
2735
2737
|
return `<span>${text}</span>`;
|
|
@@ -2794,7 +2796,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2794
2796
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2795
2797
|
}, null, 12, _hoisted_1$7));
|
|
2796
2798
|
}
|
|
2797
|
-
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
2799
|
+
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-05da96f2"]]);
|
|
2798
2800
|
const EcanText = withInstall(Text);
|
|
2799
2801
|
var ScrollText_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".red[data-v-0bb717eb] {\n color: red;\n}\n")();
|
|
2800
2802
|
const _sfc_main$k = vue.defineComponent({
|
|
@@ -3687,20 +3689,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
3687
3689
|
if (props2.target === "event") {
|
|
3688
3690
|
window.parent.postMessage({
|
|
3689
3691
|
type: "openPage",
|
|
3690
|
-
url:
|
|
3692
|
+
url: vue.unref(myHref)
|
|
3691
3693
|
}, "*");
|
|
3692
3694
|
}
|
|
3693
3695
|
});
|
|
3694
3696
|
const myText = vue.computed(() => useVariablesInText(props2.text));
|
|
3695
|
-
const myHref = vue.computed(() =>
|
|
3696
|
-
if (props2.target === "event")
|
|
3697
|
-
return void 0;
|
|
3698
|
-
const href = props2.href;
|
|
3699
|
-
if (href) {
|
|
3700
|
-
return useVariablesInText(href);
|
|
3701
|
-
}
|
|
3702
|
-
return void 0;
|
|
3703
|
-
});
|
|
3697
|
+
const myHref = vue.computed(() => useVariablesInText(props2.href));
|
|
3704
3698
|
const myTarget = vue.computed(() => {
|
|
3705
3699
|
const target = props2.target;
|
|
3706
3700
|
if (target === "event") {
|
|
@@ -6045,7 +6039,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6045
6039
|
linkPage: ""
|
|
6046
6040
|
});
|
|
6047
6041
|
const imageComponentProps = transformToComponentProps(imageProps);
|
|
6048
|
-
var Image_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-placeholder[data-v-
|
|
6042
|
+
var Image_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-placeholder[data-v-e8534084] {\n display: grid;\n place-content: center;\n border: 1px solid #d9d9d9;\n font-size: 16px;\n color: #333;\n width: 100%;\n}\n")();
|
|
6049
6043
|
const _sfc_main$2 = vue.defineComponent({
|
|
6050
6044
|
name: "EcanImage",
|
|
6051
6045
|
props: __spreadValues({}, imageComponentProps),
|
|
@@ -6059,7 +6053,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6059
6053
|
const linkPage = props2.linkPage || "";
|
|
6060
6054
|
const pageUrl = usePageUrl(vue.unref(pageMode), linkPage);
|
|
6061
6055
|
const href = props2.href;
|
|
6062
|
-
|
|
6056
|
+
let url = href || pageUrl;
|
|
6057
|
+
url = useVariablesInText(url);
|
|
6063
6058
|
const target = props2.target;
|
|
6064
6059
|
if (target == null || target === "")
|
|
6065
6060
|
return;
|
|
@@ -6092,7 +6087,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6092
6087
|
style: vue.normalizeStyle(_ctx.style)
|
|
6093
6088
|
}, " \u8BF7\u4E0A\u4F20\u56FE\u7247 ", 4));
|
|
6094
6089
|
}
|
|
6095
|
-
var Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
6090
|
+
var Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-e8534084"]]);
|
|
6096
6091
|
const EcanImage = withInstall(Image);
|
|
6097
6092
|
const tableProps = __spreadProps(__spreadValues({}, props), {
|
|
6098
6093
|
zIndex: 2,
|
|
@@ -6157,16 +6152,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6157
6152
|
});
|
|
6158
6153
|
const tableComponentProps = transformToComponentProps(tableProps);
|
|
6159
6154
|
const tableEvents = ["click", "refreshData"];
|
|
6160
|
-
var Table_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.table[data-v-
|
|
6155
|
+
var Table_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.table[data-v-ec4475ea] {
|
|
6161
6156
|
width: 100%;
|
|
6162
6157
|
}
|
|
6163
|
-
.goUp[data-v-
|
|
6158
|
+
.goUp[data-v-ec4475ea] {
|
|
6164
6159
|
color: #FF512E;
|
|
6165
6160
|
display: flex;
|
|
6166
6161
|
align-items: center;
|
|
6167
6162
|
justify-content: center;
|
|
6168
6163
|
}
|
|
6169
|
-
.goUp[data-v-
|
|
6164
|
+
.goUp[data-v-ec4475ea]:before {
|
|
6170
6165
|
content: '';
|
|
6171
6166
|
display: block;
|
|
6172
6167
|
background-image: url("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=");
|
|
@@ -6176,13 +6171,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6176
6171
|
background-size: cover;
|
|
6177
6172
|
margin-right: 2px;
|
|
6178
6173
|
}
|
|
6179
|
-
.goDown[data-v-
|
|
6174
|
+
.goDown[data-v-ec4475ea] {
|
|
6180
6175
|
color: #39cf93;
|
|
6181
6176
|
display: flex;
|
|
6182
6177
|
align-items: center;
|
|
6183
6178
|
justify-content: center;
|
|
6184
6179
|
}
|
|
6185
|
-
.goDown[data-v-
|
|
6180
|
+
.goDown[data-v-ec4475ea]:before {
|
|
6186
6181
|
content: '';
|
|
6187
6182
|
display: block;
|
|
6188
6183
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6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 -6192,11 +6187,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6192
6187
|
background-size: cover;
|
|
6193
6188
|
margin-right: 2px;
|
|
6194
6189
|
}
|
|
6195
|
-
.action-list[data-v-
|
|
6190
|
+
.action-list[data-v-ec4475ea] {
|
|
6196
6191
|
display: flex;
|
|
6197
6192
|
width: 100%;
|
|
6198
6193
|
}
|
|
6199
|
-
.action[data-v-
|
|
6194
|
+
.action[data-v-ec4475ea] {
|
|
6200
6195
|
flex: 1;
|
|
6201
6196
|
}
|
|
6202
6197
|
`)();
|
|
@@ -6326,7 +6321,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6326
6321
|
position,
|
|
6327
6322
|
total: vue.unref(total),
|
|
6328
6323
|
current: vue.unref(pageNum),
|
|
6329
|
-
pageSize: vue.unref(pageSize)
|
|
6324
|
+
pageSize: vue.unref(pageSize),
|
|
6325
|
+
showSizeChanger: false
|
|
6330
6326
|
};
|
|
6331
6327
|
});
|
|
6332
6328
|
const formatBoolean = (value) => {
|
|
@@ -6451,12 +6447,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6451
6447
|
expose({
|
|
6452
6448
|
refreshData
|
|
6453
6449
|
});
|
|
6454
|
-
const handleHref = (
|
|
6455
|
-
|
|
6456
|
-
return void 0;
|
|
6457
|
-
} else {
|
|
6458
|
-
return useVariablesInText(href, data);
|
|
6459
|
-
}
|
|
6450
|
+
const handleHref = (href = "", data) => {
|
|
6451
|
+
return useVariablesInText(href, data);
|
|
6460
6452
|
};
|
|
6461
6453
|
const handleHrefTarget = (target) => {
|
|
6462
6454
|
if (target === "event") {
|
|
@@ -6542,14 +6534,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6542
6534
|
key: index22
|
|
6543
6535
|
}, [
|
|
6544
6536
|
vue.createElementVNode("a", {
|
|
6545
|
-
href: _ctx.handleHref(action.
|
|
6537
|
+
href: _ctx.handleHref(action.href, record),
|
|
6546
6538
|
target: _ctx.handleHrefTarget(action.target),
|
|
6547
6539
|
style: vue.normalizeStyle({
|
|
6548
6540
|
color: action.color,
|
|
6549
6541
|
fontSize: _ctx.fontSize,
|
|
6550
6542
|
fontWeight: _ctx.fontWeight
|
|
6551
6543
|
}),
|
|
6552
|
-
onClick: ($event) => _ctx.onTouchHrefEvent(action.target, action.href)
|
|
6544
|
+
onClick: ($event) => _ctx.onTouchHrefEvent(action.target, _ctx.handleHref(action.href, record))
|
|
6553
6545
|
}, vue.toDisplayString(action.title), 13, _hoisted_2)
|
|
6554
6546
|
]);
|
|
6555
6547
|
}), 128))
|
|
@@ -6600,7 +6592,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6600
6592
|
}, 8, ["loading"])
|
|
6601
6593
|
], 4);
|
|
6602
6594
|
}
|
|
6603
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
6595
|
+
var Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-ec4475ea"]]);
|
|
6604
6596
|
const EcanTable = withInstall(Table);
|
|
6605
6597
|
const mapProps = __spreadProps(__spreadValues({}, props), {
|
|
6606
6598
|
mapJson: null,
|