@ecan-bi/datav 1.0.58 → 1.0.61
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 -33
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +29 -33
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +9 -9
- 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,39 @@ 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-5a54b456] {\n overflow: hidden;\n}\n.ecan-text[data-v-5a54b456] {\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.ref(props2.data);
|
|
2719
|
+
const myData = vue.ref(props2.data || {});
|
|
2720
|
+
vue.watch(() => [props2.data, props2.dataType], ([data, dataType]) => {
|
|
2721
|
+
if (dataType !== "static")
|
|
2722
|
+
return;
|
|
2723
|
+
myData.value = data;
|
|
2724
|
+
});
|
|
2719
2725
|
const myText = vue.computed(() => {
|
|
2720
|
-
let text = props2.text;
|
|
2721
2726
|
const data = vue.unref(myData);
|
|
2727
|
+
let text = props2.text;
|
|
2728
|
+
text = text == null ? void 0 : text.replace(/\n|\\n/g, "<br />");
|
|
2722
2729
|
const variables = text.match(/\{\w*\}/g);
|
|
2723
2730
|
if (variables == null || variables.length === 0)
|
|
2724
2731
|
return text;
|
|
2725
2732
|
for (let i = 0; i < variables.length; i++) {
|
|
2726
2733
|
const variable = variables[i];
|
|
2727
2734
|
const v = variable.slice(1, variable.length - 1);
|
|
2728
|
-
const usedVariables = data[v]
|
|
2735
|
+
const usedVariables = data[v];
|
|
2729
2736
|
if (usedVariables != null) {
|
|
2730
2737
|
text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${usedVariables}</span>`);
|
|
2731
2738
|
} else {
|
|
2732
|
-
text = text.replace(variable,
|
|
2739
|
+
text = text.replace(variable, props2.variableDefaultValue);
|
|
2733
2740
|
}
|
|
2734
2741
|
}
|
|
2735
2742
|
return `<span>${text}</span>`;
|
|
@@ -2794,7 +2801,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2794
2801
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2795
2802
|
}, null, 12, _hoisted_1$7));
|
|
2796
2803
|
}
|
|
2797
|
-
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
2804
|
+
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-5a54b456"]]);
|
|
2798
2805
|
const EcanText = withInstall(Text);
|
|
2799
2806
|
var ScrollText_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".red[data-v-0bb717eb] {\n color: red;\n}\n")();
|
|
2800
2807
|
const _sfc_main$k = vue.defineComponent({
|
|
@@ -3692,15 +3699,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
3692
3699
|
}
|
|
3693
3700
|
});
|
|
3694
3701
|
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
|
-
});
|
|
3702
|
+
const myHref = vue.computed(() => useVariablesInText(props2.href));
|
|
3704
3703
|
const myTarget = vue.computed(() => {
|
|
3705
3704
|
const target = props2.target;
|
|
3706
3705
|
if (target === "event") {
|
|
@@ -6158,16 +6157,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6158
6157
|
});
|
|
6159
6158
|
const tableComponentProps = transformToComponentProps(tableProps);
|
|
6160
6159
|
const tableEvents = ["click", "refreshData"];
|
|
6161
|
-
var Table_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.table[data-v-
|
|
6160
|
+
var Table_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.table[data-v-227ea2a0] {
|
|
6162
6161
|
width: 100%;
|
|
6163
6162
|
}
|
|
6164
|
-
.goUp[data-v-
|
|
6163
|
+
.goUp[data-v-227ea2a0] {
|
|
6165
6164
|
color: #FF512E;
|
|
6166
6165
|
display: flex;
|
|
6167
6166
|
align-items: center;
|
|
6168
6167
|
justify-content: center;
|
|
6169
6168
|
}
|
|
6170
|
-
.goUp[data-v-
|
|
6169
|
+
.goUp[data-v-227ea2a0]:before {
|
|
6171
6170
|
content: '';
|
|
6172
6171
|
display: block;
|
|
6173
6172
|
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=");
|
|
@@ -6177,13 +6176,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6177
6176
|
background-size: cover;
|
|
6178
6177
|
margin-right: 2px;
|
|
6179
6178
|
}
|
|
6180
|
-
.goDown[data-v-
|
|
6179
|
+
.goDown[data-v-227ea2a0] {
|
|
6181
6180
|
color: #39cf93;
|
|
6182
6181
|
display: flex;
|
|
6183
6182
|
align-items: center;
|
|
6184
6183
|
justify-content: center;
|
|
6185
6184
|
}
|
|
6186
|
-
.goDown[data-v-
|
|
6185
|
+
.goDown[data-v-227ea2a0]:before {
|
|
6187
6186
|
content: '';
|
|
6188
6187
|
display: block;
|
|
6189
6188
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWR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|
6193
6192
|
background-size: cover;
|
|
6194
6193
|
margin-right: 2px;
|
|
6195
6194
|
}
|
|
6196
|
-
.action-list[data-v-
|
|
6195
|
+
.action-list[data-v-227ea2a0] {
|
|
6197
6196
|
display: flex;
|
|
6198
6197
|
width: 100%;
|
|
6199
6198
|
}
|
|
6200
|
-
.action[data-v-
|
|
6199
|
+
.action[data-v-227ea2a0] {
|
|
6201
6200
|
flex: 1;
|
|
6202
6201
|
}
|
|
6203
6202
|
`)();
|
|
@@ -6327,7 +6326,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6327
6326
|
position,
|
|
6328
6327
|
total: vue.unref(total),
|
|
6329
6328
|
current: vue.unref(pageNum),
|
|
6330
|
-
pageSize: vue.unref(pageSize)
|
|
6329
|
+
pageSize: vue.unref(pageSize),
|
|
6330
|
+
showSizeChanger: false
|
|
6331
6331
|
};
|
|
6332
6332
|
});
|
|
6333
6333
|
const formatBoolean = (value) => {
|
|
@@ -6452,12 +6452,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6452
6452
|
expose({
|
|
6453
6453
|
refreshData
|
|
6454
6454
|
});
|
|
6455
|
-
const handleHref = (
|
|
6456
|
-
|
|
6457
|
-
return void 0;
|
|
6458
|
-
} else {
|
|
6459
|
-
return useVariablesInText(href, data);
|
|
6460
|
-
}
|
|
6455
|
+
const handleHref = (href = "", data) => {
|
|
6456
|
+
return useVariablesInText(href, data);
|
|
6461
6457
|
};
|
|
6462
6458
|
const handleHrefTarget = (target) => {
|
|
6463
6459
|
if (target === "event") {
|
|
@@ -6543,14 +6539,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6543
6539
|
key: index22
|
|
6544
6540
|
}, [
|
|
6545
6541
|
vue.createElementVNode("a", {
|
|
6546
|
-
href: _ctx.handleHref(action.
|
|
6542
|
+
href: _ctx.handleHref(action.href, record),
|
|
6547
6543
|
target: _ctx.handleHrefTarget(action.target),
|
|
6548
6544
|
style: vue.normalizeStyle({
|
|
6549
6545
|
color: action.color,
|
|
6550
6546
|
fontSize: _ctx.fontSize,
|
|
6551
6547
|
fontWeight: _ctx.fontWeight
|
|
6552
6548
|
}),
|
|
6553
|
-
onClick: ($event) => _ctx.onTouchHrefEvent(action.target, _ctx.handleHref(action.
|
|
6549
|
+
onClick: ($event) => _ctx.onTouchHrefEvent(action.target, _ctx.handleHref(action.href, record))
|
|
6554
6550
|
}, vue.toDisplayString(action.title), 13, _hoisted_2)
|
|
6555
6551
|
]);
|
|
6556
6552
|
}), 128))
|
|
@@ -6601,7 +6597,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
6601
6597
|
}, 8, ["loading"])
|
|
6602
6598
|
], 4);
|
|
6603
6599
|
}
|
|
6604
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
6600
|
+
var Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-227ea2a0"]]);
|
|
6605
6601
|
const EcanTable = withInstall(Table);
|
|
6606
6602
|
const mapProps = __spreadProps(__spreadValues({}, props), {
|
|
6607
6603
|
mapJson: null,
|