ocpview-pro 0.1.28 → 0.1.29
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 +30 -7
- package/dist/ocpviewplus.min.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/label/showtext.vue +29 -3
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTable.vue +11 -1
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelTable.vue +1 -1
|
@@ -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.28";
|
|
457
457
|
const title = "ocpviewPlus";
|
|
458
458
|
const description = "A high quality Service UI components Library with Vue.js";
|
|
459
459
|
const homepage = "";
|
|
@@ -34337,19 +34337,22 @@ const _sfc_main$19 = {
|
|
|
34337
34337
|
},
|
|
34338
34338
|
computed: {
|
|
34339
34339
|
labeltext() {
|
|
34340
|
-
return this.label;
|
|
34340
|
+
return this.translateComboBoxText(this.label);
|
|
34341
34341
|
},
|
|
34342
34342
|
textLink() {
|
|
34343
34343
|
return !!(this.config && this.config.textLink);
|
|
34344
34344
|
},
|
|
34345
34345
|
displayText() {
|
|
34346
|
+
let text = "";
|
|
34346
34347
|
if (this.resetText) {
|
|
34347
|
-
|
|
34348
|
+
text = this.resetText(
|
|
34348
34349
|
this.doSpecialSymbols(this.label),
|
|
34349
34350
|
this.label
|
|
34350
34351
|
);
|
|
34352
|
+
} else {
|
|
34353
|
+
text = this.doSpecialSymbols(this.label);
|
|
34351
34354
|
}
|
|
34352
|
-
return this.
|
|
34355
|
+
return this.translateComboBoxText(text);
|
|
34353
34356
|
}
|
|
34354
34357
|
},
|
|
34355
34358
|
mounted() {
|
|
@@ -34373,6 +34376,16 @@ const _sfc_main$19 = {
|
|
|
34373
34376
|
}
|
|
34374
34377
|
},
|
|
34375
34378
|
methods: {
|
|
34379
|
+
translateComboBoxText(text) {
|
|
34380
|
+
if (typeof text !== "string") {
|
|
34381
|
+
return text;
|
|
34382
|
+
}
|
|
34383
|
+
const match = text.match(/^(\[[^\]]*\])([\s\S]*)$/);
|
|
34384
|
+
if (match) {
|
|
34385
|
+
return match[1] + this.$t(match[2]);
|
|
34386
|
+
}
|
|
34387
|
+
return this.$t(text);
|
|
34388
|
+
},
|
|
34376
34389
|
checkOverflow() {
|
|
34377
34390
|
const content2 = this.$refs.content;
|
|
34378
34391
|
this.hasOverflow = !!(content2 && content2.scrollWidth > content2.offsetWidth);
|
|
@@ -34455,7 +34468,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34455
34468
|
} : void 0
|
|
34456
34469
|
]), 1040);
|
|
34457
34470
|
}
|
|
34458
|
-
var ShowText = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render", _sfc_render$12], ["__scopeId", "data-v-
|
|
34471
|
+
var ShowText = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render", _sfc_render$12], ["__scopeId", "data-v-1935660b"]]);
|
|
34459
34472
|
var billimport_vue_vue_type_style_index_0_lang = "";
|
|
34460
34473
|
const _sfc_main$18 = {
|
|
34461
34474
|
name: "billimport",
|
|
@@ -56243,7 +56256,7 @@ const _sfc_main$f = {
|
|
|
56243
56256
|
row,
|
|
56244
56257
|
item
|
|
56245
56258
|
);
|
|
56246
|
-
return valueFormat;
|
|
56259
|
+
return this.translateComboBoxText(valueFormat);
|
|
56247
56260
|
},
|
|
56248
56261
|
...item._colorMap && {
|
|
56249
56262
|
type: "html",
|
|
@@ -57292,7 +57305,7 @@ const _sfc_main$b = {
|
|
|
57292
57305
|
row,
|
|
57293
57306
|
item
|
|
57294
57307
|
);
|
|
57295
|
-
return valueFormat;
|
|
57308
|
+
return this.translateComboBoxText(valueFormat);
|
|
57296
57309
|
},
|
|
57297
57310
|
editRender: {
|
|
57298
57311
|
enabled: false,
|
|
@@ -57362,6 +57375,16 @@ const _sfc_main$b = {
|
|
|
57362
57375
|
}
|
|
57363
57376
|
},
|
|
57364
57377
|
methods: {
|
|
57378
|
+
translateComboBoxText(text) {
|
|
57379
|
+
if (typeof text !== "string") {
|
|
57380
|
+
return text;
|
|
57381
|
+
}
|
|
57382
|
+
const match = text.match(/^(\[[^\]]*\])([\s\S]*)$/);
|
|
57383
|
+
if (match) {
|
|
57384
|
+
return match[1] + this.$t(match[2]);
|
|
57385
|
+
}
|
|
57386
|
+
return this.$t(text);
|
|
57387
|
+
},
|
|
57365
57388
|
enterKeyDown() {
|
|
57366
57389
|
const $table = this.$refs.table;
|
|
57367
57390
|
this.VG_keyCode13Event($table);
|