uview-pro 0.5.0 → 0.5.2
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 +68 -24
- package/components/u-action-sheet/types.ts +1 -1
- package/components/u-alert-tips/u-alert-tips.vue +15 -15
- package/components/u-calendar/types.ts +3 -3
- package/components/u-calendar/u-calendar.vue +11 -11
- package/components/u-checkbox/types.ts +5 -1
- package/components/u-checkbox/u-checkbox.vue +41 -18
- package/components/u-checkbox-group/types.ts +2 -0
- package/components/u-checkbox-group/u-checkbox-group.vue +56 -15
- package/components/u-count-down/u-count-down.vue +4 -4
- package/components/u-empty/u-empty.vue +14 -14
- package/components/u-field/u-field.vue +18 -2
- package/components/u-form/u-form.vue +1 -1
- package/components/u-form-item/u-form-item.vue +12 -5
- package/components/u-full-screen/u-full-screen.vue +2 -2
- package/components/u-gap/u-gap.vue +3 -3
- package/components/u-input/types.ts +1 -1
- package/components/u-keyboard/types.ts +2 -2
- package/components/u-keyboard/u-keyboard.vue +3 -3
- package/components/u-link/types.ts +1 -1
- package/components/u-loadmore/types.ts +3 -3
- package/components/u-modal/types.ts +4 -4
- package/components/u-navbar/u-navbar.vue +8 -2
- package/components/u-no-network/types.ts +1 -1
- package/components/u-no-network/u-no-network.vue +5 -5
- package/components/u-pagination/types.ts +2 -2
- package/components/u-picker/types.ts +2 -2
- package/components/u-radio/types.ts +2 -0
- package/components/u-radio/u-radio.vue +16 -7
- package/components/u-radio-group/u-radio-group.vue +1 -1
- package/components/u-read-more/types.ts +2 -2
- package/components/u-search/types.ts +5 -3
- package/components/u-search/u-search.vue +1 -0
- package/components/u-section/types.ts +1 -1
- package/components/u-select/types.ts +2 -2
- package/components/u-tabbar/u-tabbar.vue +1 -1
- package/components/u-text/u-text.vue +7 -2
- package/components/u-toast/u-toast.vue +14 -11
- package/components/u-transition/types.ts +35 -0
- package/components/u-transition/u-transition.vue +437 -0
- package/components/u-upload/types.ts +1 -1
- package/components/u-upload/u-upload.vue +12 -12
- package/components/u-verification-code/types.ts +3 -3
- package/index.ts +2 -0
- package/libs/hooks/index.ts +2 -0
- package/libs/hooks/useDebounce.ts +15 -0
- package/libs/hooks/useThrottle.ts +16 -0
- package/locale/lang/en-US.ts +19 -19
- package/locale/lang/zh-CN.ts +19 -19
- package/package.json +9 -9
- package/types/components.d.ts +1 -0
- package/types/global.d.ts +14 -0
package/locale/lang/en-US.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
name: 'en-US',
|
|
3
|
-
|
|
3
|
+
uActionSheet: {
|
|
4
4
|
cancelText: 'Cancel'
|
|
5
5
|
},
|
|
6
|
-
|
|
6
|
+
uUpload: {
|
|
7
7
|
uploadText: 'Select Image',
|
|
8
8
|
retry: 'Retry',
|
|
9
9
|
overSize: 'File size exceeds allowed limit',
|
|
@@ -18,23 +18,23 @@ export default {
|
|
|
18
18
|
notAllowedExt: 'Files with {ext} format are not allowed',
|
|
19
19
|
noAction: 'Please configure upload address'
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
uVerificationCode: {
|
|
22
22
|
startText: 'Get Code',
|
|
23
23
|
changeText: 'Retry in Xs',
|
|
24
24
|
endText: 'Retry'
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
uSection: {
|
|
27
27
|
subTitle: 'More'
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
uSelect: {
|
|
30
30
|
cancelText: 'Cancel',
|
|
31
31
|
confirmText: 'Confirm'
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
uSearch: {
|
|
34
34
|
placeholder: 'Please enter keywords',
|
|
35
35
|
actionText: 'Search'
|
|
36
36
|
},
|
|
37
|
-
|
|
37
|
+
uNoNetwork: {
|
|
38
38
|
tips: 'Ooops, network disconnected',
|
|
39
39
|
checkNetwork: 'Please check network or go to',
|
|
40
40
|
setting: 'Settings',
|
|
@@ -42,43 +42,43 @@ export default {
|
|
|
42
42
|
noConnection: 'No network connection',
|
|
43
43
|
connected: 'Network connected'
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
uReadMore: {
|
|
46
46
|
closeText: 'Read More',
|
|
47
47
|
openText: 'Collapse'
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
uPagination: {
|
|
50
50
|
prevText: 'Prev',
|
|
51
51
|
nextText: 'Next'
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
uPicker: {
|
|
54
54
|
cancelText: 'Cancel',
|
|
55
55
|
confirmText: 'Confirm'
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
uModal: {
|
|
58
58
|
title: 'Notice',
|
|
59
59
|
content: 'Content',
|
|
60
60
|
confirmText: 'Confirm',
|
|
61
61
|
cancelText: 'Cancel'
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
uLoadmore: {
|
|
64
64
|
loadmore: 'Load more',
|
|
65
65
|
loading: 'Loading...',
|
|
66
66
|
nomore: 'No more'
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
uLink: {
|
|
69
69
|
mpTips: 'Link copied, please open it in browser'
|
|
70
70
|
},
|
|
71
|
-
|
|
71
|
+
uKeyboard: {
|
|
72
72
|
cancelText: 'Cancel',
|
|
73
73
|
confirmText: 'Confirm',
|
|
74
74
|
number: 'Number Keyboard',
|
|
75
75
|
idCard: 'ID Card Keyboard',
|
|
76
76
|
plate: 'Plate Keyboard'
|
|
77
77
|
},
|
|
78
|
-
|
|
78
|
+
uInput: {
|
|
79
79
|
placeholder: 'Please enter'
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
uCalendar: {
|
|
82
82
|
startText: 'Start',
|
|
83
83
|
endText: 'End',
|
|
84
84
|
toolTip: 'Select date',
|
|
@@ -95,7 +95,7 @@ export default {
|
|
|
95
95
|
confirmText: 'Confirm',
|
|
96
96
|
to: ' to '
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
uEmpty: {
|
|
99
99
|
car: 'Shopping cart is empty',
|
|
100
100
|
page: 'Page not found',
|
|
101
101
|
search: 'No search results',
|
|
@@ -111,13 +111,13 @@ export default {
|
|
|
111
111
|
list: 'No list',
|
|
112
112
|
data: 'No data'
|
|
113
113
|
},
|
|
114
|
-
|
|
114
|
+
uCountDown: {
|
|
115
115
|
day: 'days',
|
|
116
116
|
hour: 'hours',
|
|
117
117
|
minute: 'minutes',
|
|
118
118
|
second: 'Second'
|
|
119
119
|
},
|
|
120
|
-
|
|
120
|
+
uFullScreen: {
|
|
121
121
|
title: 'New Version Available',
|
|
122
122
|
upgrade: 'Upgrade'
|
|
123
123
|
}
|
package/locale/lang/zh-CN.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
name: 'zh-CN',
|
|
3
|
-
|
|
3
|
+
uActionSheet: {
|
|
4
4
|
cancelText: '取消'
|
|
5
5
|
},
|
|
6
|
-
|
|
6
|
+
uUpload: {
|
|
7
7
|
uploadText: '选择图片',
|
|
8
8
|
retry: '点击重试',
|
|
9
9
|
overSize: '超出允许的文件大小',
|
|
@@ -18,23 +18,23 @@ export default {
|
|
|
18
18
|
notAllowedExt: '不允许选择{ext}格式的文件',
|
|
19
19
|
noAction: '请配置上传地址'
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
uVerificationCode: {
|
|
22
22
|
startText: '获取验证码',
|
|
23
23
|
changeText: 'X秒重新获取',
|
|
24
24
|
endText: '重新获取'
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
uSection: {
|
|
27
27
|
subTitle: '更多'
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
uSelect: {
|
|
30
30
|
cancelText: '取消',
|
|
31
31
|
confirmText: '确认'
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
uSearch: {
|
|
34
34
|
placeholder: '请输入关键字',
|
|
35
35
|
actionText: '搜索'
|
|
36
36
|
},
|
|
37
|
-
|
|
37
|
+
uNoNetwork: {
|
|
38
38
|
tips: '哎呀,网络信号丢失',
|
|
39
39
|
checkNetwork: '请检查网络,或前往',
|
|
40
40
|
setting: '设置',
|
|
@@ -42,43 +42,43 @@ export default {
|
|
|
42
42
|
noConnection: '无网络连接',
|
|
43
43
|
connected: '网络已连接'
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
uReadMore: {
|
|
46
46
|
closeText: '展开阅读全文',
|
|
47
47
|
openText: '收起'
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
uPagination: {
|
|
50
50
|
prevText: '上一页',
|
|
51
51
|
nextText: '下一页'
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
uPicker: {
|
|
54
54
|
cancelText: '取消',
|
|
55
55
|
confirmText: '确认'
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
uModal: {
|
|
58
58
|
title: '提示',
|
|
59
59
|
content: '内容',
|
|
60
60
|
confirmText: '确认',
|
|
61
61
|
cancelText: '取消'
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
uLoadmore: {
|
|
64
64
|
loadmore: '加载更多',
|
|
65
65
|
loading: '正在加载...',
|
|
66
66
|
nomore: '没有更多了'
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
uLink: {
|
|
69
69
|
mpTips: '链接已复制,请在浏览器打开'
|
|
70
70
|
},
|
|
71
|
-
|
|
71
|
+
uKeyboard: {
|
|
72
72
|
cancelText: '取消',
|
|
73
73
|
confirmText: '确认',
|
|
74
74
|
number: '数字键盘',
|
|
75
75
|
idCard: '身份证键盘',
|
|
76
76
|
plate: '车牌号键盘'
|
|
77
77
|
},
|
|
78
|
-
|
|
78
|
+
uInput: {
|
|
79
79
|
placeholder: '请输入内容'
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
uCalendar: {
|
|
82
82
|
startText: '开始',
|
|
83
83
|
endText: '结束',
|
|
84
84
|
toolTip: '选择日期',
|
|
@@ -95,7 +95,7 @@ export default {
|
|
|
95
95
|
confirmText: '确定',
|
|
96
96
|
to: '至'
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
uEmpty: {
|
|
99
99
|
car: '购物车为空',
|
|
100
100
|
page: '页面不存在',
|
|
101
101
|
search: '没有搜索结果',
|
|
@@ -111,13 +111,13 @@ export default {
|
|
|
111
111
|
list: '列表为空',
|
|
112
112
|
data: '数据为空'
|
|
113
113
|
},
|
|
114
|
-
|
|
114
|
+
uCountDown: {
|
|
115
115
|
day: '天',
|
|
116
116
|
hour: '时',
|
|
117
117
|
minute: '分',
|
|
118
118
|
second: '秒'
|
|
119
119
|
},
|
|
120
|
-
|
|
120
|
+
uFullScreen: {
|
|
121
121
|
title: '发现新版本',
|
|
122
122
|
upgrade: '升级'
|
|
123
123
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "uview-pro",
|
|
3
3
|
"name": "uview-pro",
|
|
4
|
-
"displayName": "【支持鸿蒙】uView Pro|基于Vue3+TS的高质量UI
|
|
5
|
-
"version": "0.5.
|
|
6
|
-
"description": "uView Pro是基于Vue3+TS的多平台UI框架,提供80
|
|
4
|
+
"displayName": "【支持鸿蒙】uView Pro|基于Vue3+TS的高质量UI组件库,支持多主题、暗黑模式、多语言",
|
|
5
|
+
"version": "0.5.2",
|
|
6
|
+
"description": "uView Pro是基于Vue3+TS的多平台UI框架,提供80+高质量组件、便捷工具和常用模板,支持多主题、暗黑模式、多语言,支持H5/APP/鸿蒙/小程序多端开发。已在鸿蒙应用商店上架,欢迎体验!",
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"module": "index.ts",
|
|
9
9
|
"browser": "index.ts",
|
|
10
10
|
"keywords": [
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
11
|
+
"ui",
|
|
12
|
+
"uview",
|
|
13
|
+
"uview-pro",
|
|
14
|
+
"vue3",
|
|
15
|
+
"typescript"
|
|
16
16
|
],
|
|
17
17
|
"author": "anyup",
|
|
18
18
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"npmurl": "https://www.npmjs.com/package/uview-pro",
|
|
44
44
|
"darkmode": "√",
|
|
45
|
-
"i18n": "
|
|
45
|
+
"i18n": "√",
|
|
46
46
|
"widescreen": "√"
|
|
47
47
|
},
|
|
48
48
|
"uni_modules": {
|
package/types/components.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ declare module 'vue' {
|
|
|
86
86
|
uTimeLineItem: (typeof import('../components/u-time-line-item/u-time-line-item.vue'))['default'];
|
|
87
87
|
uToast: (typeof import('../components/u-toast/u-toast.vue'))['default'];
|
|
88
88
|
uTopTips: (typeof import('../components/u-top-tips/u-top-tips.vue'))['default'];
|
|
89
|
+
uTransition: (typeof import('../components/u-transition/u-transition.vue'))['default'];
|
|
89
90
|
uTr: (typeof import('../components/u-tr/u-tr.vue'))['default'];
|
|
90
91
|
uUpload: (typeof import('../components/u-upload/u-upload.vue'))['default'];
|
|
91
92
|
uVerificationCode: (typeof import('../components/u-verification-code/u-verification-code.vue'))['default'];
|
package/types/global.d.ts
CHANGED
|
@@ -309,6 +309,20 @@ export type FabPosition =
|
|
|
309
309
|
export type FabDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
310
310
|
// fab 组件 gap
|
|
311
311
|
export type FabGap = Partial<Record<'top' | 'left' | 'right' | 'bottom', number>>;
|
|
312
|
+
// Transition 组件
|
|
313
|
+
export type TransitionPreset =
|
|
314
|
+
| 'fade'
|
|
315
|
+
| 'slide-up'
|
|
316
|
+
| 'slide-down'
|
|
317
|
+
| 'slide-left'
|
|
318
|
+
| 'slide-right'
|
|
319
|
+
| 'zoom-in'
|
|
320
|
+
| 'zoom-out';
|
|
321
|
+
// Transition 组件 duration
|
|
322
|
+
export type TransitionDuration = {
|
|
323
|
+
enter?: number;
|
|
324
|
+
leave?: number;
|
|
325
|
+
};
|
|
312
326
|
|
|
313
327
|
export type ColorType =
|
|
314
328
|
| 'primary'
|