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.
- package/changelog.md +6 -0
- package/components/u-barcode/u-barcode.vue +2 -1
- package/components/u-calendar/calendar.js +8 -7
- package/components/u-calendar/header.vue +1 -1
- package/components/u-calendar/month.vue +2 -1
- package/components/u-checkbox/u-checkbox.vue +2 -2
- package/components/u-checkbox-group/u-checkbox-group.vue +1 -1
- package/components/u-city-locate/u-city-locate.vue +5 -3
- package/components/u-code/code.js +5 -5
- package/components/u-copy/u-copy.vue +7 -5
- package/components/u-cropper/u-cropper.vue +23 -8
- package/components/u-datetime-picker/datetimePicker.js +4 -3
- package/components/u-empty/u-empty.vue +16 -15
- package/components/u-input/input.js +5 -4
- package/components/u-input/props.js +5 -0
- package/components/u-input/u-input.vue +28 -3
- package/components/u-keyboard/keyboard.js +3 -2
- package/components/u-link/link.js +2 -1
- package/components/u-loading-page/loadingPage.js +2 -1
- package/components/u-loadmore/loadmore.js +4 -3
- package/components/u-modal/modal.js +4 -3
- package/components/u-no-network/noNetwork.js +2 -2
- package/components/u-no-network/u-no-network.vue +7 -5
- package/components/u-pagination/u-pagination.vue +3 -1
- package/components/u-picker/picker.js +4 -3
- package/components/u-pull-refresh/u-pull-refresh.vue +8 -6
- package/components/u-read-more/readMore.js +3 -2
- package/components/u-search/search.js +3 -2
- package/components/u-section/section.js +2 -1
- package/components/u-signature/u-signature.vue +3 -2
- package/components/u-toolbar/toolbar.js +3 -2
- package/components/u-tooltip/u-tooltip.vue +1 -2
- package/components/u-upload/u-upload.vue +7 -5
- package/index.js +5 -2
- package/libs/i18n/index.js +50 -0
- package/libs/i18n/locales/de.json +80 -0
- package/libs/i18n/locales/en.json +80 -0
- package/libs/i18n/locales/es.json +80 -0
- package/libs/i18n/locales/fr.json +80 -0
- package/libs/i18n/locales/ja.json +80 -0
- package/libs/i18n/locales/ko.json +80 -0
- package/libs/i18n/locales/ru.json +80 -0
- package/libs/i18n/locales/zh-Hans.json +80 -0
- package/libs/i18n/locales/zh-Hant.json +80 -0
- package/package.json +5 -5
package/changelog.md
CHANGED
|
@@ -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
|
}
|
|
@@ -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(
|
|
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,需要同时将
|
|
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('
|
|
200
|
+
error('up-checkbox必须搭配up-checkbox-group组件使用')
|
|
201
201
|
}
|
|
202
202
|
// #ifdef VUE2
|
|
203
203
|
const value = this.parentData.value
|
|
@@ -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"
|
|
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 : /
|
|
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:
|
|
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
|
|
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}"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<view @click="
|
|
18
|
-
|
|
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"
|
|
23
|
-
|
|
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:
|
|
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 :
|
|
7
|
-
* @lastTime :
|
|
8
|
-
* @FilePath : /
|
|
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="
|
|
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
|
}
|