ocpview-pro 0.1.27 → 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.
@@ -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.26";
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
- return this.resetText(
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.doSpecialSymbols(this.label);
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-b5b8c228"]]);
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",
@@ -40918,6 +40931,11 @@ const _sfc_main$J = {
40918
40931
  name: "filesize",
40919
40932
  render: this.sizeActionRender,
40920
40933
  width: 120
40934
+ }, {
40935
+ label: this.$t("\u64CD\u4F5C\u4EBA"),
40936
+ name: "inputer_name",
40937
+ type: "TextBox",
40938
+ width: 200
40921
40939
  }, {
40922
40940
  label: this.$t("\u4E0A\u4F20\u65E5\u671F"),
40923
40941
  name: "ph_timestamp",
@@ -56238,7 +56256,7 @@ const _sfc_main$f = {
56238
56256
  row,
56239
56257
  item
56240
56258
  );
56241
- return valueFormat;
56259
+ return this.translateComboBoxText(valueFormat);
56242
56260
  },
56243
56261
  ...item._colorMap && {
56244
56262
  type: "html",
@@ -57287,7 +57305,7 @@ const _sfc_main$b = {
57287
57305
  row,
57288
57306
  item
57289
57307
  );
57290
- return valueFormat;
57308
+ return this.translateComboBoxText(valueFormat);
57291
57309
  },
57292
57310
  editRender: {
57293
57311
  enabled: false,
@@ -57357,6 +57375,16 @@ const _sfc_main$b = {
57357
57375
  }
57358
57376
  },
57359
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
+ },
57360
57388
  enterKeyDown() {
57361
57389
  const $table = this.$refs.table;
57362
57390
  this.VG_keyCode13Event($table);