ocpview-pro 0.1.25 → 0.1.27
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/ocpviewplus.min.esm.js +28 -8
- package/dist/ocpviewplus.min.js +2 -2
- package/package.json +1 -1
- package/src/components/checkbox/checkbox.vue +4 -4
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelTable.vue +16 -1
- package/src/components/masterplate/RewriteListdetails/BillListPanelV3QueryBar.vue +2 -2
- package/src/components/masterplate/billquerygrid.vue +13 -1
- package/src/components/picturebox/picturebox.vue +2 -2
|
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
|
|
|
453
453
|
common.initAnchor(ViewUI2.Anchor);
|
|
454
454
|
};
|
|
455
455
|
const name = "ocpview-pro";
|
|
456
|
-
const version$2 = "0.1.
|
|
456
|
+
const version$2 = "0.1.26";
|
|
457
457
|
const title = "ocpviewPlus";
|
|
458
458
|
const description = "A high quality Service UI components Library with Vue.js";
|
|
459
459
|
const homepage = "";
|
|
@@ -30287,7 +30287,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30287
30287
|
size: $data.myConfig.iconSize,
|
|
30288
30288
|
color: $options.iconColor
|
|
30289
30289
|
}, null, 8, ["custom", "size", "color"]),
|
|
30290
|
-
$data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$j, toDisplayString$1($data.myConfig.text), 1)) : createCommentVNode("", true)
|
|
30290
|
+
$data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$j, toDisplayString$1(_ctx.$t($data.myConfig.text)), 1)) : createCommentVNode("", true)
|
|
30291
30291
|
]),
|
|
30292
30292
|
_: 1
|
|
30293
30293
|
}, 8, ["style"])
|
|
@@ -30312,7 +30312,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30312
30312
|
createVNode(_component_Col, { span: "24" }, {
|
|
30313
30313
|
default: withCtx(() => [
|
|
30314
30314
|
createVNode(_component_ShowText, {
|
|
30315
|
-
label: $data.myConfig.memo,
|
|
30315
|
+
label: _ctx.$t($data.myConfig.memo),
|
|
30316
30316
|
contentAlign: "left",
|
|
30317
30317
|
class: normalizeClass($data.myConfig.memoClass)
|
|
30318
30318
|
}, null, 8, ["label", "class"])
|
|
@@ -31604,7 +31604,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31604
31604
|
fn: withCtx(() => [
|
|
31605
31605
|
createElementVNode("span", {
|
|
31606
31606
|
style: { "margin-left": "10px" },
|
|
31607
|
-
textContent: toDisplayString$1($data.myConfig.showText)
|
|
31607
|
+
textContent: toDisplayString$1($data.myConfig.showText ? _ctx.$t($data.myConfig.showText) : $data.myConfig.showText)
|
|
31608
31608
|
}, null, 8, _hoisted_1$_)
|
|
31609
31609
|
]),
|
|
31610
31610
|
key: "0"
|
|
@@ -45087,7 +45087,7 @@ const _sfc_main$A = {
|
|
|
45087
45087
|
const code2 = params.row[fieldName];
|
|
45088
45088
|
const colorGroup = colorMap[code2];
|
|
45089
45089
|
const text = this.$Method.formatComboBox(code2, params.column);
|
|
45090
|
-
const textF = this
|
|
45090
|
+
const textF = this.translateComboBoxText(text);
|
|
45091
45091
|
if (colorGroup) {
|
|
45092
45092
|
const style2 = {
|
|
45093
45093
|
color: colorGroup.text || "",
|
|
@@ -45103,6 +45103,16 @@ const _sfc_main$A = {
|
|
|
45103
45103
|
};
|
|
45104
45104
|
el2._colorMap = colorMap;
|
|
45105
45105
|
},
|
|
45106
|
+
translateComboBoxText(text) {
|
|
45107
|
+
if (typeof text !== "string") {
|
|
45108
|
+
return text;
|
|
45109
|
+
}
|
|
45110
|
+
const match = text.match(/^(\[[^\]]*\])([\s\S]*)$/);
|
|
45111
|
+
if (match) {
|
|
45112
|
+
return match[1] + this.$t(match[2]);
|
|
45113
|
+
}
|
|
45114
|
+
return this.$t(text);
|
|
45115
|
+
},
|
|
45106
45116
|
initRowBtn() {
|
|
45107
45117
|
if (this.enablePermissions) {
|
|
45108
45118
|
let btns = [];
|
|
@@ -51818,7 +51828,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51818
51828
|
onClick: ($event) => _ctx.action(item.name)
|
|
51819
51829
|
}, {
|
|
51820
51830
|
default: withCtx(() => [
|
|
51821
|
-
createTextVNode(toDisplayString$1(item.text), 1)
|
|
51831
|
+
createTextVNode(toDisplayString$1(_ctx.$t(item.text)), 1)
|
|
51822
51832
|
]),
|
|
51823
51833
|
_: 2
|
|
51824
51834
|
}, 1032, ["icon", "customIcon", "onClick"])
|
|
@@ -51850,7 +51860,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51850
51860
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.action(_ctx.btnData[0].name))
|
|
51851
51861
|
}, {
|
|
51852
51862
|
default: withCtx(() => [
|
|
51853
|
-
createTextVNode(toDisplayString$1(_ctx.btnData[0].text), 1)
|
|
51863
|
+
createTextVNode(toDisplayString$1(_ctx.$t(_ctx.btnData[0].text)), 1)
|
|
51854
51864
|
]),
|
|
51855
51865
|
_: 1
|
|
51856
51866
|
}, 8, ["icon", "customIcon"])) : createCommentVNode("", true),
|
|
@@ -56239,7 +56249,7 @@ const _sfc_main$f = {
|
|
|
56239
56249
|
row,
|
|
56240
56250
|
item
|
|
56241
56251
|
);
|
|
56242
|
-
const valueFormat = this
|
|
56252
|
+
const valueFormat = this.translateComboBoxText(valueData);
|
|
56243
56253
|
const colorGroup = item._colorMap[cellValue];
|
|
56244
56254
|
if (colorGroup) {
|
|
56245
56255
|
const styleStr = Object.entries({
|
|
@@ -56372,6 +56382,16 @@ const _sfc_main$f = {
|
|
|
56372
56382
|
})
|
|
56373
56383
|
];
|
|
56374
56384
|
},
|
|
56385
|
+
translateComboBoxText(text) {
|
|
56386
|
+
if (typeof text !== "string") {
|
|
56387
|
+
return text;
|
|
56388
|
+
}
|
|
56389
|
+
const match = text.match(/^(\[[^\]]*\])([\s\S]*)$/);
|
|
56390
|
+
if (match) {
|
|
56391
|
+
return match[1] + this.$t(match[2]);
|
|
56392
|
+
}
|
|
56393
|
+
return this.$t(text);
|
|
56394
|
+
},
|
|
56375
56395
|
handleSumField(params) {
|
|
56376
56396
|
const { list, field } = params;
|
|
56377
56397
|
let count = 0;
|