ocpview-pro 0.1.25 → 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.25",
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>
@@ -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>
@@ -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>