ocpview-pro 0.1.24 → 0.1.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocpview-pro",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "title": "ocpviewPlus",
5
5
  "description": "A high quality Service UI components Library with Vue.js",
6
6
  "homepage": "",
@@ -1,8 +1,8 @@
1
- <template>
1
+ <template>
2
2
  <div v-show="myConfig.visible" class="efuture-checkbox" :style="myConfig.divStyle">
3
3
  <Checkbox ref="myControl" v-model="value" :size="myConfig.size" :true-value="myConfig.trueValue" :false-value="myConfig.falseValue" :disabled="readOnly||myConfig.readOnly" @on-change="setFatherValue">
4
4
  <template v-if="showTextFlag" #default>
5
- <span style="margin-left: 10px;" v-text="myConfig.showText"/>
5
+ <span style="margin-left: 10px;" v-text="myConfig.showText?$t(myConfig.showText):myConfig.showText"/>
6
6
  </template>
7
7
  </Checkbox>
8
8
  </div>
@@ -70,7 +70,7 @@
70
70
  this.$refs.myControl.$el.blur();
71
71
  }
72
72
  }
73
-
73
+
74
74
  }
75
75
  };
76
- </script>
76
+ </script>
@@ -40,7 +40,7 @@
40
40
  <Tooltip placement="top">
41
41
  <template #content>
42
42
  <div>
43
- <span style="font-size: 12px"> 表头设计 </span>
43
+ <span style="font-size: 12px"> {{ $t("表头设计") }} </span>
44
44
  </div>
45
45
  </template>
46
46
  <p style="cursor: pointer" @click.stop="openColSet">
@@ -312,11 +312,12 @@ export default {
312
312
  type: "html",
313
313
  formatter: (params) => {
314
314
  const { row, cellValue } = params;
315
- const valueFormat = this.$Method.formatValue(
315
+ const valueData = this.$Method.formatValue(
316
316
  cellValue,
317
317
  row,
318
318
  item
319
319
  );
320
+ const valueFormat = this.$t(valueData);
320
321
  const colorGroup = item._colorMap[cellValue];
321
322
  if (colorGroup) {
322
323
  const styleStr = Object.entries({
@@ -41,7 +41,7 @@
41
41
  <Tooltip placement="top">
42
42
  <template #content>
43
43
  <div>
44
- <span style="font-size: 12px"> 表头设计 </span>
44
+ <span style="font-size: 12px"> {{ $t("表头设计") }} </span>
45
45
  </div>
46
46
  </template>
47
47
  <p style="cursor: pointer" @click.stop="openColSet">
@@ -41,7 +41,7 @@
41
41
  <Tooltip placement="top">
42
42
  <template #content>
43
43
  <div>
44
- <span style="font-size: 12px"> 表头设计 </span>
44
+ <span style="font-size: 12px"> {{ $t("表头设计") }} </span>
45
45
  </div>
46
46
  </template>
47
47
  <p style="cursor: pointer" @click.stop="openColSet">
@@ -102,7 +102,7 @@
102
102
  :icon="btnData[0].icon"
103
103
  :customIcon="btnData[0].customIcon"
104
104
  @click="action(btnData[0].name)"
105
- >{{ btnData[0].text }}</Button
105
+ >{{ $t(btnData[0].text) }}1</Button
106
106
  >
107
107
  <Button
108
108
  v-if="!btnFlag && moreBtnFlag"
@@ -129,7 +129,7 @@
129
129
  type="text"
130
130
  :customIcon="item.customIcon"
131
131
  @click="action(item.name)"
132
- >{{ item.text }}</Button
132
+ >{{ $t(item.text) }}</Button
133
133
  >
134
134
  </DropdownItem>
135
135
  </DropdownMenu>
@@ -235,6 +235,7 @@ export default {
235
235
  const code = params.row[fieldName];
236
236
  const colorGroup = colorMap[code];
237
237
  const text = this.$Method.formatComboBox(code, params.column);
238
+ const textF = this.$t(text);
238
239
  if (colorGroup) {
239
240
  const style = {
240
241
  color: colorGroup.text || "",
@@ -244,9 +245,9 @@ export default {
244
245
  borderRadius: "3px",
245
246
  padding: "0 5px",
246
247
  };
247
- return h("span", { style }, text);
248
+ return h("span", { style }, textF);
248
249
  }
249
- return h("span", text);
250
+ return h("span", textF);
250
251
  };
251
252
  el._colorMap = colorMap;
252
253
  },
@@ -23,7 +23,7 @@
23
23
  <template #btn>
24
24
  <Row type="flex" justify="center" align="middle" :style="btnStyle">
25
25
  <Icon :custom="myConfig.defaultIcon" :size="myConfig.iconSize" :color="iconColor"/>
26
- <span v-if="myConfig.text">{{myConfig.text}}</span>
26
+ <span v-if="myConfig.text">{{$t(myConfig.text)}}</span>
27
27
  </Row>
28
28
  </template>
29
29
  </UploadBox>
@@ -31,7 +31,7 @@
31
31
  </Row>
32
32
  <Row v-show="showMemo" type="flex" justify="start" align="middle" :gutter="16">
33
33
  <Col span='24'>
34
- <ShowText :label="myConfig.memo" contentAlign="left" :class="myConfig.memoClass"></ShowText>
34
+ <ShowText :label="$t(myConfig.memo)" contentAlign="left" :class="myConfig.memoClass"></ShowText>
35
35
  </Col>
36
36
  </Row>
37
37
  </div>