ocpview-pro 0.1.26 → 0.1.28

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.25";
456
+ const version$2 = "0.1.27";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -40918,6 +40918,11 @@ const _sfc_main$J = {
40918
40918
  name: "filesize",
40919
40919
  render: this.sizeActionRender,
40920
40920
  width: 120
40921
+ }, {
40922
+ label: this.$t("\u64CD\u4F5C\u4EBA"),
40923
+ name: "inputer_name",
40924
+ type: "TextBox",
40925
+ width: 200
40921
40926
  }, {
40922
40927
  label: this.$t("\u4E0A\u4F20\u65E5\u671F"),
40923
40928
  name: "ph_timestamp",
@@ -45087,7 +45092,7 @@ const _sfc_main$A = {
45087
45092
  const code2 = params.row[fieldName];
45088
45093
  const colorGroup = colorMap[code2];
45089
45094
  const text = this.$Method.formatComboBox(code2, params.column);
45090
- const textF = this.$t(text);
45095
+ const textF = this.translateComboBoxText(text);
45091
45096
  if (colorGroup) {
45092
45097
  const style2 = {
45093
45098
  color: colorGroup.text || "",
@@ -45103,6 +45108,16 @@ const _sfc_main$A = {
45103
45108
  };
45104
45109
  el2._colorMap = colorMap;
45105
45110
  },
45111
+ translateComboBoxText(text) {
45112
+ if (typeof text !== "string") {
45113
+ return text;
45114
+ }
45115
+ const match = text.match(/^(\[[^\]]*\])([\s\S]*)$/);
45116
+ if (match) {
45117
+ return match[1] + this.$t(match[2]);
45118
+ }
45119
+ return this.$t(text);
45120
+ },
45106
45121
  initRowBtn() {
45107
45122
  if (this.enablePermissions) {
45108
45123
  let btns = [];
@@ -51850,7 +51865,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
51850
51865
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.action(_ctx.btnData[0].name))
51851
51866
  }, {
51852
51867
  default: withCtx(() => [
51853
- createTextVNode(toDisplayString$1(_ctx.$t(_ctx.btnData[0].text)) + "1", 1)
51868
+ createTextVNode(toDisplayString$1(_ctx.$t(_ctx.btnData[0].text)), 1)
51854
51869
  ]),
51855
51870
  _: 1
51856
51871
  }, 8, ["icon", "customIcon"])) : createCommentVNode("", true),
@@ -56239,7 +56254,7 @@ const _sfc_main$f = {
56239
56254
  row,
56240
56255
  item
56241
56256
  );
56242
- const valueFormat = this.$t(valueData);
56257
+ const valueFormat = this.translateComboBoxText(valueData);
56243
56258
  const colorGroup = item._colorMap[cellValue];
56244
56259
  if (colorGroup) {
56245
56260
  const styleStr = Object.entries({
@@ -56372,6 +56387,16 @@ const _sfc_main$f = {
56372
56387
  })
56373
56388
  ];
56374
56389
  },
56390
+ translateComboBoxText(text) {
56391
+ if (typeof text !== "string") {
56392
+ return text;
56393
+ }
56394
+ const match = text.match(/^(\[[^\]]*\])([\s\S]*)$/);
56395
+ if (match) {
56396
+ return match[1] + this.$t(match[2]);
56397
+ }
56398
+ return this.$t(text);
56399
+ },
56375
56400
  handleSumField(params) {
56376
56401
  const { list, field } = params;
56377
56402
  let count = 0;