uview-plus 3.4.106 → 3.5.0

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.
Files changed (45) hide show
  1. package/changelog.md +6 -0
  2. package/components/u-barcode/u-barcode.vue +2 -1
  3. package/components/u-calendar/calendar.js +8 -7
  4. package/components/u-calendar/header.vue +1 -1
  5. package/components/u-calendar/month.vue +2 -1
  6. package/components/u-checkbox/u-checkbox.vue +2 -2
  7. package/components/u-checkbox-group/u-checkbox-group.vue +1 -1
  8. package/components/u-city-locate/u-city-locate.vue +5 -3
  9. package/components/u-code/code.js +5 -5
  10. package/components/u-copy/u-copy.vue +7 -5
  11. package/components/u-cropper/u-cropper.vue +23 -8
  12. package/components/u-datetime-picker/datetimePicker.js +4 -3
  13. package/components/u-empty/u-empty.vue +16 -15
  14. package/components/u-input/input.js +5 -4
  15. package/components/u-input/props.js +5 -0
  16. package/components/u-input/u-input.vue +28 -3
  17. package/components/u-keyboard/keyboard.js +3 -2
  18. package/components/u-link/link.js +2 -1
  19. package/components/u-loading-page/loadingPage.js +2 -1
  20. package/components/u-loadmore/loadmore.js +4 -3
  21. package/components/u-modal/modal.js +4 -3
  22. package/components/u-no-network/noNetwork.js +2 -2
  23. package/components/u-no-network/u-no-network.vue +7 -5
  24. package/components/u-pagination/u-pagination.vue +3 -1
  25. package/components/u-picker/picker.js +4 -3
  26. package/components/u-pull-refresh/u-pull-refresh.vue +8 -6
  27. package/components/u-read-more/readMore.js +3 -2
  28. package/components/u-search/search.js +3 -2
  29. package/components/u-section/section.js +2 -1
  30. package/components/u-signature/u-signature.vue +3 -2
  31. package/components/u-toolbar/toolbar.js +3 -2
  32. package/components/u-tooltip/u-tooltip.vue +1 -2
  33. package/components/u-upload/u-upload.vue +7 -5
  34. package/index.js +5 -2
  35. package/libs/i18n/index.js +50 -0
  36. package/libs/i18n/locales/de.json +80 -0
  37. package/libs/i18n/locales/en.json +80 -0
  38. package/libs/i18n/locales/es.json +80 -0
  39. package/libs/i18n/locales/fr.json +80 -0
  40. package/libs/i18n/locales/ja.json +80 -0
  41. package/libs/i18n/locales/ko.json +80 -0
  42. package/libs/i18n/locales/ru.json +80 -0
  43. package/libs/i18n/locales/zh-Hans.json +80 -0
  44. package/libs/i18n/locales/zh-Hant.json +80 -0
  45. package/package.json +5 -5
package/changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.5.0(2025-08-20)
2
+ feat: 组件库新增多语言支持且无侵入无依赖内置八种语言
3
+
4
+ ## 3.4.107(2025-08-20)
5
+ feat: input组件支持密码显示切换
6
+
1
7
  ## 3.4.106(2025-08-20)
2
8
  feat: tooltip组件支持左右方向弹窗
3
9
 
@@ -24,6 +24,7 @@
24
24
 
25
25
  <script>
26
26
  import { nextTick } from 'vue'
27
+ import { t } from '../../libs/i18n'
27
28
 
28
29
  export default {
29
30
  name: 'u-barcode',
@@ -290,7 +291,7 @@ export default {
290
291
  })
291
292
  } catch (error) {
292
293
  console.error('生成条码失败:', error)
293
- this.error = error.message || '生成条码失败'
294
+ this.error = error.message || t('up.barcode.error')
294
295
  this.$emit('error', error)
295
296
  }
296
297
  },
@@ -7,15 +7,16 @@
7
7
  * @lastTime : 2021-08-20 16:52:43
8
8
  * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
9
9
  */
10
+ import { t } from '../../libs/i18n'
10
11
  export default {
11
12
  // calendar 组件
12
13
  calendar: {
13
- title: '日期选择',
14
+ title: t("up.calendar.chooseDates"),
14
15
  showTitle: true,
15
16
  showSubtitle: true,
16
17
  mode: 'single',
17
- startText: '开始',
18
- endText: '结束',
18
+ startText: t("up.common.start"),
19
+ endText: t("up.common.end"),
19
20
  customList: [],
20
21
  color: '#3c9cff',
21
22
  minDate: 0,
@@ -26,8 +27,8 @@ export default {
26
27
  formatter: null,
27
28
  showLunar: false,
28
29
  showMark: true,
29
- confirmText: '确定',
30
- confirmDisabledText: '确定',
30
+ confirmText: t("up.common.confirm"),
31
+ confirmDisabledText: t("up.common.confirm"),
31
32
  show: false,
32
33
  closeOnClickOverlay: false,
33
34
  readonly: false,
@@ -38,8 +39,8 @@ export default {
38
39
  allowSameDay: false,
39
40
  round: 0,
40
41
  monthNum: 3,
41
- weekText: ['一', '二', '三', '四', '五', '六', '日'],
42
+ weekText: [t("up.week.one"), t("up.week.two"), t("up.week.three"), t("up.week.four"), t("up.week.five"), t("up.week.six"), t("up.week.seven")],
42
43
  forbidDays: [],
43
- forbidDaysToast: '该日期已禁用',
44
+ forbidDaysToast: t("up.calendar.disabled"),
44
45
  }
45
46
  }
@@ -51,7 +51,7 @@
51
51
  weekText: {
52
52
  type: Array,
53
53
  default: () => {
54
- return ['一', '二', '三', '四', '五', '六', '日']
54
+ return []
55
55
  }
56
56
  },
57
57
  },
@@ -38,6 +38,7 @@
38
38
  import test from '../../libs/function/test';
39
39
  import defProps from '../../libs/config/props';
40
40
  import dayjs from '../u-datetime-picker/dayjs.esm.min.js';
41
+ import { t } from '../../libs/i18n'
41
42
  export default {
42
43
  name: 'u-calendar-month',
43
44
  mixins: [mpMixin, mixin],
@@ -415,7 +416,7 @@
415
416
  if(this.rangePrompt) {
416
417
  toast(this.rangePrompt)
417
418
  } else {
418
- toast(`选择天数不能超过 ${this.maxRange} 天`)
419
+ toast(t("up.calendar.daysExceed", { days: this.maxRange }))
419
420
  }
420
421
  return
421
422
  }
@@ -177,7 +177,7 @@
177
177
  const style = {}
178
178
  if (!this.usedAlone) {
179
179
  if (this.parentData.borderBottom && this.parentData.placement === 'row') {
180
- error('检测到您将borderBottom设置为true,需要同时将u-checkbox-group的placement设置为column才有效')
180
+ error('检测到您将borderBottom设置为true,需要同时将up-checkbox-group的placement设置为column才有效')
181
181
  }
182
182
  // 当父组件设置了显示下边框并且排列形式为纵向时,给内容和边框之间加上一定间隔
183
183
  if (this.parentData.borderBottom && this.parentData.placement === 'column') {
@@ -197,7 +197,7 @@
197
197
  // 支付宝小程序不支持provide/inject,所以使用这个方法获取整个父组件,在created定义,避免循环引用
198
198
  this.updateParentData()
199
199
  if (!this.parent) {
200
- error('u-checkbox必须搭配u-checkbox-group组件使用')
200
+ error('up-checkbox必须搭配up-checkbox-group组件使用')
201
201
  }
202
202
  // #ifdef VUE2
203
203
  const value = this.parentData.value
@@ -108,7 +108,7 @@
108
108
  // #ifdef VUE2
109
109
  this.$emit("input", values);
110
110
  // #endif
111
- // 放在最后更新,否则change事件传出去的values不会更新
111
+ // 放在最后更新,否则change事件传出去的values不会更新
112
112
  this.$emit('change', values)
113
113
  },
114
114
  }
@@ -3,7 +3,7 @@
3
3
  <up-index-list :indexList="indexList">
4
4
  <template #header>
5
5
  <view class="u-current-city-wrap">
6
- <view class="u-current-city-title">定位城市</view>
6
+ <view class="u-current-city-title">{{ t("up.cityLocate.locateCity") }}</view>
7
7
  <view class="u-current-city-item" @tap="location">
8
8
  <view class="u-location-city">{{locationCity}}</view>
9
9
  </view>
@@ -40,6 +40,7 @@
40
40
  </template>
41
41
 
42
42
  <script>
43
+ import { t } from '../../libs/i18n'
43
44
  export default{
44
45
  name: 'u-city-locate',
45
46
  props:{
@@ -96,11 +97,12 @@
96
97
  },
97
98
  data(){
98
99
  return{
99
- locationCity: '定位中....'
100
+ locationCity: t("up.cityLocate.locating") + '....'
100
101
  }
101
102
  },
102
103
  emits: ['location-success', 'select-city'],
103
104
  methods:{
105
+ t,
104
106
  // 获取城市
105
107
  selectedCity(city){
106
108
  this.locationCity = city[this.nameKey];
@@ -123,7 +125,7 @@
123
125
  });
124
126
  },
125
127
  fail(){
126
- That.locationCity = "定位失败,请点击重试"
128
+ That.locationCity = t("up.cityLocate.fail");
127
129
  }
128
130
  });
129
131
  },
@@ -5,16 +5,16 @@
5
5
  * @Date : 2021-08-20 16:44:21
6
6
  * @LastAuthor : LQ
7
7
  * @lastTime : 2021-08-20 16:55:27
8
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
8
+ * @FilePath : /uview-plus/libs/config/props/code.js
9
9
  */
10
-
10
+ import { t } from '../../libs/i18n'
11
11
  export default {
12
12
  // code 组件
13
13
  code: {
14
14
  seconds: 60,
15
- startText: '获取验证码',
16
- changeText: 'X秒重新获取',
17
- endText: '重新获取',
15
+ startText: t("up.code.send"),
16
+ changeText: t("up.code.resendAfter"),
17
+ endText: t("up.code.resend"),
18
18
  keepRunning: false,
19
19
  uniqueKey: ''
20
20
  }
@@ -1,9 +1,10 @@
1
1
  <template>
2
2
  <view @click="handleClick">
3
- <slot>复制</slot>
3
+ <slot>{{ t("up.common.copy") }}</slot>
4
4
  </view>
5
5
  </template>
6
6
  <script>
7
+ import { t } from '../../libs/i18n'
7
8
  export default {
8
9
  name: "up-copy",
9
10
  props: {
@@ -17,16 +18,17 @@ export default {
17
18
  },
18
19
  notice: {
19
20
  type: String,
20
- default: '复制成功'
21
+ default: t("up.common.copy") + t("up.common.success")
21
22
  }
22
23
  },
23
24
  emits: ['success'],
24
25
  methods: {
26
+ t,
25
27
  handleClick() {
26
28
  let content = this.content;
27
29
  if (!content) {
28
30
  uni.showToast({
29
- title: '暂无',
31
+ title: t("up.common.none"),
30
32
  icon: 'none',
31
33
  duration: 2000,
32
34
  });
@@ -42,7 +44,7 @@ export default {
42
44
  success: function() {
43
45
  if (that.alertStyle == 'modal') {
44
46
  uni.showModal({
45
- title: '提示',
47
+ title: "up.common.tip",
46
48
  content: that.notice
47
49
  });
48
50
  } else {
@@ -55,7 +57,7 @@ export default {
55
57
  },
56
58
  fail:function(){
57
59
  uni.showToast({
58
- title: '复制失败',
60
+ title: t("up.common.copy") + t("up.common.fail"),
59
61
  icon: 'none',
60
62
  duration:3000,
61
63
  });
@@ -11,16 +11,29 @@
11
11
  <view class="oper-wrapper" :style="{display: styleDisplay}">
12
12
  <view class="oper">
13
13
  <view class="btn-wrapper" v-if="showOper">
14
- <view @click="select" hover-class="hover" :style="{width: btnWidth}"><text>重选</text></view>
15
- <view @click="close" hover-class="hover" :style="{width: btnWidth}"><text>关闭</text></view>
16
- <view @click="rotate" hover-class="hover" :style="{width: btnWidth, display: btnDsp}"><text>旋转</text></view>
17
- <view @click="preview" hover-class="hover" :style="{width: btnWidth}"><text>预览</text></view>
18
- <view @click="confirm" hover-class="hover" :style="{width: btnWidth}"><text>确认</text></view>
14
+ <view @click="select" hover-class="hover" :style="{width: btnWidth}">
15
+ <text>{{ t("up.common.re-select") }}</text>
16
+ </view>
17
+ <view @click="close" hover-class="hover" :style="{width: btnWidth}">
18
+ <text>{{ t("up.common.close") }}</text>
19
+ </view>
20
+ <view @click="rotate" hover-class="hover" :style="{width: btnWidth, display: btnDsp}">
21
+ <text>{{ t("up.common.rotate") }}</text>
22
+ </view>
23
+ <view @click="preview" hover-class="hover" :style="{width: btnWidth}">
24
+ <text>{{ t("up.common.preview") }}</text>
25
+ </view>
26
+ <view @click="confirm" hover-class="hover" :style="{width: btnWidth}">
27
+ <text>{{ t("up.common.confirm") }}</text>
28
+ </view>
19
29
  </view>
20
30
  <view class="clr-wrapper" v-else>
21
31
  <slider class="my-slider" @change="colorChange"
22
- block-size="25" value="0" min="-100" max="100" activeColor="red" backgroundColor="green" block-color="grey" show-value></slider>
23
- <view @click="prvUpload" hover-class="hover" :style="{width: btnWidth}"><text>确认</text></view>
32
+ block-size="25" value="0" min="-100" max="100" activeColor="red"
33
+ backgroundColor="green" block-color="grey" show-value></slider>
34
+ <view @click="prvUpload" hover-class="hover" :style="{width: btnWidth}">
35
+ <text>{{ t("up.common.confirm") }}</text>
36
+ </view>
24
37
  </view>
25
38
  </view>
26
39
  </view>
@@ -33,6 +46,7 @@
33
46
  </template>
34
47
 
35
48
  <script>
49
+ import { t } from '../../libs/i18n'
36
50
  const tabHeight = 50;
37
51
  export default {
38
52
  name: "u-cropper",
@@ -131,6 +145,7 @@
131
145
  }
132
146
  },
133
147
  methods: {
148
+ t,
134
149
  windowResize() {
135
150
  let sysInfo = uni.getSystemInfoSync();
136
151
  this.platform = sysInfo.platform;
@@ -215,7 +230,7 @@
215
230
  style.left = (this.windowWidth - areaWidth)/2 + 'px';
216
231
  } else {
217
232
  uni.showModal({
218
- title: '裁剪框的宽或高没有设置',
233
+ title: t("up.cropper.emptyWidhtOrHeight"),
219
234
  showCancel: false
220
235
  })
221
236
  return;
@@ -7,6 +7,7 @@
7
7
  * @lastTime : 2021-08-20 16:57:48
8
8
  * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
9
9
  */
10
+ import { t } from '../../libs/i18n'
10
11
  export default {
11
12
  // datetimePicker 组件
12
13
  datetimePicker: {
@@ -26,8 +27,8 @@ export default {
26
27
  formatter: null,
27
28
  loading: false,
28
29
  itemHeight: 44,
29
- cancelText: '取消',
30
- confirmText: '确认',
30
+ cancelText: t("up.common.cancel"),
31
+ confirmText: t("up.common.confirm"),
31
32
  cancelColor: '#909193',
32
33
  confirmColor: '#3c9cff',
33
34
  visibleItemCount: 5,
@@ -36,7 +37,7 @@ export default {
36
37
  inputBorder: 'surround',
37
38
  disabled: false,
38
39
  disabledColor: '',
39
- placeholder: '请选择',
40
+ placeholder: t("up.common.pleaseChoose"),
40
41
  inputProps: {},
41
42
  }
42
43
  }
@@ -35,6 +35,7 @@
35
35
  import { mpMixin } from '../../libs/mixin/mpMixin';
36
36
  import { mixin } from '../../libs/mixin/mixin';
37
37
  import { addUnit, addStyle, deepMerge } from '../../libs/function/index';
38
+ import { t } from '../../libs/i18n'
38
39
  /**
39
40
  * empty 内容为空
40
41
  * @description 该组件用于需要加载内容,但是加载的第一页数据就为空,提示一个"没有内容"的场景, 我们精心挑选了十几个场景的图标,方便您使用。
@@ -62,21 +63,21 @@
62
63
  data() {
63
64
  return {
64
65
  icons: {
65
- car: '购物车为空',
66
- page: '页面不存在',
67
- search: '没有搜索结果',
68
- address: '没有收货地址',
69
- wifi: '没有WiFi',
70
- order: '订单为空',
71
- coupon: '没有优惠券',
72
- favor: '暂无收藏',
73
- permission: '无权限',
74
- history: '无历史记录',
75
- news: '无新闻列表',
76
- message: '消息列表为空',
77
- list: '列表为空',
78
- data: '数据为空',
79
- comment: '暂无评论',
66
+ car: t("up.empty.car"),
67
+ page: t("up.empty.page"),
68
+ search: t("up.empty.search"),
69
+ address: t("up.empty.address"),
70
+ wifi: t("up.empty.wifi"),
71
+ order: t("up.empty.order"),
72
+ coupon: t("up.empty.coupon"),
73
+ favor: t("up.empty.favor"),
74
+ permission: t("up.empty.permission"),
75
+ history: t("up.empty.history"),
76
+ news: t("up.empty.news"),
77
+ message: t("up.empty.message"),
78
+ list: t("up.empty.list"),
79
+ data: t("up.empty.data"),
80
+ comment: t("up.empty.comment"),
80
81
  }
81
82
  }
82
83
  },
@@ -3,9 +3,9 @@
3
3
  * @Description :
4
4
  * @version : 1.0
5
5
  * @Date : 2021-08-20 16:44:21
6
- * @LastAuthor : LQ
7
- * @lastTime : 2021-08-20 17:13:55
8
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
6
+ * @LastAuthor : jry
7
+ * @lastTime : 2025-08-20 10:21:55
8
+ * @FilePath : /uview-plus/libs/config/props/input.js
9
9
  */
10
10
  export default {
11
11
  // index 组件
@@ -44,6 +44,7 @@ export default {
44
44
  readonly: false,
45
45
  shape: 'square',
46
46
  formatter: null,
47
- cursorColor: ''
47
+ cursorColor: '',
48
+ passwordVisibilityToggle: true
48
49
  }
49
50
  }
@@ -199,5 +199,10 @@ export const props = defineMixin({
199
199
  type: String,
200
200
  default: () => defProps.input.cursorColor
201
201
  },
202
+ // 密码类型可见性切换
203
+ passwordVisibilityToggle: {
204
+ type: Boolean,
205
+ default: () => defProps.input.passwordVisibilityToggle
206
+ }
202
207
  }
203
208
  })
@@ -21,7 +21,7 @@
21
21
  ref="input-native"
22
22
  class="u-input__content__field-wrapper__field"
23
23
  :style="[inputStyle]"
24
- :type="type"
24
+ :type="showPassword && 'password' == type ? 'text' : type"
25
25
  :focus="focus"
26
26
  :cursor="cursor"
27
27
  :value="innerValue"
@@ -39,7 +39,7 @@
39
39
  :adjust-position="adjustPosition"
40
40
  :selection-end="selectionEnd"
41
41
  :selection-start="selectionStart"
42
- :password="password || type === 'password' || false"
42
+ :password="isPassword"
43
43
  :ignoreCompositionEvent="ignoreCompositionEvent"
44
44
  @input="onInput"
45
45
  @blur="onBlur"
@@ -61,6 +61,15 @@
61
61
  customStyle="line-height: 12px"
62
62
  ></up-icon>
63
63
  </view>
64
+ <view
65
+ class="u-input__content__subfix-password-shower"
66
+ v-if="(type == 'password' || password) && passwordVisibilityToggle"
67
+ >
68
+ <up-icon @click="showPassword = !showPassword"
69
+ :name="showPassword ? 'eye-off' : 'eye-fill'"
70
+ size="18"
71
+ ></up-icon>
72
+ </view>
64
73
  <view
65
74
  class="u-input__content__subfix-icon"
66
75
  v-if="suffixIcon || $slots.suffix"
@@ -142,7 +151,8 @@ export default {
142
151
  // value绑定值的变化是由内部还是外部引起的
143
152
  changeFromInner: false,
144
153
  // 过滤处理方法
145
- innerFormatter: value => value
154
+ innerFormatter: value => value,
155
+ showPassword: false
146
156
  };
147
157
  },
148
158
  created() {
@@ -178,6 +188,21 @@ export default {
178
188
  }
179
189
  },
180
190
  computed: {
191
+ // 是否密码
192
+ isPassword() {
193
+ let ret = false;
194
+ if(this.password) {
195
+ ret = true;
196
+ } else if (this.type == 'password') {
197
+ ret = true;
198
+ } else {
199
+ ret = false;
200
+ }
201
+ if (this.showPassword) {
202
+ ret = false;
203
+ }
204
+ return ret;
205
+ },
181
206
  // 是否显示清除控件
182
207
  isShowClear() {
183
208
  const { clearable, readonly, focused, innerValue } = this;
@@ -7,6 +7,7 @@
7
7
  * @lastTime : 2021-08-20 17:07:49
8
8
  * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
9
9
  */
10
+ import { t } from '../../libs/i18n'
10
11
  export default {
11
12
  // 键盘组件
12
13
  keyboard: {
@@ -23,8 +24,8 @@ export default {
23
24
  show: false,
24
25
  overlay: true,
25
26
  zIndex: 10075,
26
- cancelText: '取消',
27
- confirmText: '确定',
27
+ cancelText: t("up.common.cancel"),
28
+ confirmText: t("up.common.confirm"),
28
29
  autoChange: false
29
30
  }
30
31
  }
@@ -8,6 +8,7 @@
8
8
  * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
9
9
  */
10
10
  import config from '../../libs/config/config'
11
+ import { t } from '../../libs/i18n'
11
12
 
12
13
  const {
13
14
  color
@@ -19,7 +20,7 @@ export default {
19
20
  fontSize: 15,
20
21
  underLine: false,
21
22
  href: '',
22
- mpTips: '链接已复制,请在浏览器打开',
23
+ mpTips: t("up.link.copyed"),
23
24
  lineColor: '',
24
25
  text: ''
25
26
  }
@@ -7,10 +7,11 @@
7
7
  * @lastTime : 2021-08-20 17:00:23
8
8
  * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
9
9
  */
10
+ import { t } from '../../libs/i18n'
10
11
  export default {
11
12
  // loading-page组件
12
13
  loadingPage: {
13
- loadingText: '正在加载',
14
+ loadingText: t("up.common.loading2"),
14
15
  image: '',
15
16
  loadingMode: 'circle',
16
17
  loading: false,
@@ -7,6 +7,7 @@
7
7
  * @lastTime : 2021-08-20 17:15:26
8
8
  * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
9
9
  */
10
+ import { t } from '../../libs/i18n'
10
11
  export default {
11
12
  // loadmore 组件
12
13
  loadmore: {
@@ -17,9 +18,9 @@ export default {
17
18
  iconSize: 17,
18
19
  color: '#606266',
19
20
  loadingIcon: 'spinner',
20
- loadmoreText: '加载更多',
21
- loadingText: '正在加载...',
22
- nomoreText: '没有更多了',
21
+ loadmoreText: t("up.loadmoe.loadmore"),
22
+ loadingText: t("up.common.loading2") + '...',
23
+ nomoreText: t("up.loadmoe.nomore"),
23
24
  isDot: false,
24
25
  iconColor: '#b7b7b7',
25
26
  marginTop: 10,
@@ -7,14 +7,15 @@
7
7
  * @lastTime : 2021-08-20 17:15:59
8
8
  * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
9
9
  */
10
+ import { t } from '../../libs/i18n'
10
11
  export default {
11
12
  // modal 组件
12
13
  modal: {
13
14
  show: false,
14
15
  title: '',
15
16
  content: '',
16
- confirmText: '确认',
17
- cancelText: '取消',
17
+ confirmText: t("up.common.confirm"),
18
+ cancelText: t("up.common.cancel"),
18
19
  showConfirmButton: true,
19
20
  showCancelButton: false,
20
21
  confirmColor: '#2979ff',
@@ -28,7 +29,7 @@ export default {
28
29
  confirmButtonShape: '',
29
30
  duration: 400,
30
31
  contentTextAlign: 'left',
31
- asyncCloseTip: '操作中...',
32
+ asyncCloseTip: t("up.common.inOperatio") + '...',
32
33
  asyncCancelClose: false,
33
34
  contentStyle: {}
34
35
  }