uview-plus 3.7.36 → 3.8.32
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/README.md +0 -1
- package/changelog.md +2047 -1782
- package/components/u-action-sheet/u-action-sheet.vue +54 -16
- package/components/u-agreement/u-agreement.vue +2 -1
- package/components/u-alert/u-alert.vue +8 -10
- package/components/u-button/u-button.vue +35 -5
- package/components/u-calendar/calendar.js +1 -0
- package/components/u-calendar/header.vue +98 -9
- package/components/u-calendar/month.vue +10 -7
- package/components/u-calendar/props.js +5 -0
- package/components/u-calendar/u-calendar.vue +109 -2
- package/components/u-car-keyboard/u-car-keyboard.vue +7 -7
- package/components/u-card/u-card.vue +6 -6
- package/components/u-cascader/u-cascader.vue +32 -12
- package/components/u-cate-tab/u-cate-tab.vue +49 -48
- package/components/u-cell/u-cell.vue +24 -4
- package/components/u-cell-group/u-cell-group.vue +10 -3
- package/components/u-checkbox/u-checkbox.vue +6 -6
- package/components/u-choose/u-choose.vue +9 -4
- package/components/u-city-locate/u-city-locate.vue +28 -22
- package/components/u-color-picker/u-color-picker.vue +15 -15
- package/components/u-cropper/u-cropper.vue +409 -387
- package/components/u-datetime-picker/u-datetime-picker.vue +79 -10
- package/components/u-dragsort/u-dragsort.vue +3 -0
- package/components/u-dropdown/u-dropdown.vue +15 -2
- package/components/u-dropdown-item/u-dropdown-item.vue +3 -3
- package/components/u-form-item/u-form-item.vue +6 -1
- package/components/u-gap/u-gap.vue +5 -1
- package/components/u-goods-sku/u-goods-sku.vue +16 -15
- package/components/u-index-anchor/u-index-anchor.vue +13 -2
- package/components/u-index-list/u-index-list.vue +18 -5
- package/components/u-input/input.js +3 -3
- package/components/u-input/u-input.vue +27 -5
- package/components/u-keyboard/u-keyboard.vue +11 -6
- package/components/u-loading-page/loadingPage.js +1 -1
- package/components/u-loading-page/u-loading-page.vue +18 -12
- package/components/u-navbar/navbar.js +2 -3
- package/components/u-navbar/theme-vars.scss +21 -0
- package/components/u-navbar/u-navbar.vue +30 -6
- package/components/u-notice-bar/theme-vars.scss +25 -0
- package/components/u-notice-bar/u-notice-bar.vue +24 -5
- package/components/u-number-box/numberBox.js +4 -4
- package/components/u-number-box/u-number-box.vue +27 -13
- package/components/u-number-keyboard/u-number-keyboard.vue +6 -6
- package/components/u-picker/picker.js +43 -43
- package/components/u-picker/u-picker.vue +14 -2
- package/components/u-popup/popup.js +1 -1
- package/components/u-popup/u-popup.vue +14 -6
- package/components/u-poster/u-poster.vue +12 -10
- package/components/u-pull-refresh/u-pull-refresh.vue +6 -6
- package/components/u-qrcode/qrcode.js +35 -29
- package/components/u-qrcode/u-qrcode.vue +17 -12
- package/components/u-radio/u-radio.vue +6 -6
- package/components/u-rate/rate.js +2 -2
- package/components/u-rate/u-rate.vue +98 -21
- package/components/u-search/search.js +3 -3
- package/components/u-search/u-search.vue +29 -6
- package/components/u-select/u-select.vue +141 -73
- package/components/u-signature/u-signature.vue +35 -16
- package/components/u-skeleton/u-skeleton.vue +7 -2
- package/components/u-slider/u-slider.vue +30 -31
- package/components/u-steps-item/u-steps-item.vue +20 -17
- package/components/u-subsection/theme-vars.scss +41 -0
- package/components/u-subsection/u-subsection.vue +69 -16
- package/components/u-swipe-action-item/u-swipe-action-item.vue +11 -5
- package/components/u-switch/theme-vars.scss +41 -0
- package/components/u-switch/u-switch.vue +44 -15
- package/components/u-tabbar/u-tabbar.vue +5 -5
- package/components/u-tabbar-item/u-tabbar-item.vue +16 -5
- package/components/u-table/u-table.vue +18 -3
- package/components/u-table2/tableRow.vue +43 -41
- package/components/u-table2/u-table2.vue +56 -50
- package/components/u-tabs/u-tabs.vue +14 -1
- package/components/u-tag/theme-vars.scss +21 -0
- package/components/u-tag/u-tag.vue +17 -7
- package/components/u-td/u-td.vue +5 -3
- package/components/u-text/text.js +1 -1
- package/components/u-text/u-text.vue +15 -13
- package/components/u-textarea/props.js +2 -2
- package/components/u-textarea/textarea.js +1 -1
- package/components/u-textarea/u-textarea.vue +115 -61
- package/components/u-th/u-th.vue +5 -4
- package/components/u-title/u-title.vue +1 -0
- package/components/u-toast/u-toast.vue +13 -9
- package/components/u-tooltip/u-tooltip.vue +1 -0
- package/components/u-tree/u-tree.vue +491 -51
- package/components/u-upload/u-upload.vue +34 -6
- package/index.js +178 -27
- package/index.scss +5 -1
- package/libs/config/color.js +1 -2
- package/libs/config/config.js +2 -0
- package/libs/config/props.js +1 -1
- package/libs/css/theme-vars-core.scss +201 -0
- package/libs/css/theme-vars.scss +1 -0
- package/libs/function/index.js +7 -7
- package/libs/mixin/mixin.js +111 -4
- package/libs/root/index.js +151 -0
- package/libs/root/nvue-root.vue +72 -0
- package/libs/root/page.js +269 -0
- package/libs/root/root-toast-host.vue +31 -0
- package/libs/root/root.js +44 -0
- package/libs/root/runtime.js +11 -0
- package/libs/root/utils.js +115 -0
- package/libs/theme/runtime.js +392 -0
- package/libs/theme/theme.js +682 -0
- package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
- package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
- package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
- package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
- package/libs/util/gcanvas/context-webgl/Program.js +0 -0
- package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
- package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
- package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
- package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
- package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
- package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
- package/libs/util/gcanvas/env/canvas.js +0 -0
- package/libs/util/gcanvas/env/image.js +0 -0
- package/libs/util/gcanvas/env/tool.js +0 -0
- package/libs/util/gcanvas/index.js +0 -0
- package/package.json +3 -2
- package/theme.scss +113 -32
- package/types/comps/qrcode.d.ts +6 -0
- package/types/index.d.ts +47 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "uview-plus",
|
|
3
3
|
"name": "uview-plus",
|
|
4
4
|
"displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙跨端移动组件库,组件丰富维护更新稳定。",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.8.32",
|
|
6
6
|
"description": "零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"jd": "-",
|
|
78
78
|
"harmony": "√",
|
|
79
79
|
"qq": "√",
|
|
80
|
-
"lark": "-"
|
|
80
|
+
"lark": "-",
|
|
81
|
+
"xhs": "-"
|
|
81
82
|
},
|
|
82
83
|
"quickapp": {
|
|
83
84
|
"huawei": "-",
|
package/theme.scss
CHANGED
|
@@ -2,38 +2,119 @@
|
|
|
2
2
|
// uni.scss中引入的样式会同时混入到全局样式文件和单独每一个页面的样式中,造成微信程序包太大,
|
|
3
3
|
// 故uni.scss只建议放scss变量名相关样式,其他的样式可以通过main.js或者App.vue引入
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
$u-
|
|
7
|
-
$u-
|
|
8
|
-
$u-
|
|
9
|
-
$u-
|
|
10
|
-
$u-
|
|
11
|
-
$u-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
$u-primary
|
|
15
|
-
$u-primary-
|
|
16
|
-
$u-primary-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
$u-warning
|
|
20
|
-
$u-warning-
|
|
21
|
-
$u-warning-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$u-success
|
|
25
|
-
$u-success-
|
|
26
|
-
$u-success-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
$u-error
|
|
30
|
-
$u-error-
|
|
31
|
-
$u-error-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
$u-info
|
|
35
|
-
$u-info-
|
|
36
|
-
$u-info-
|
|
5
|
+
/* #ifdef APP-NVUE */
|
|
6
|
+
$u-main-color: var(--up-main-color, var(--u-main-color, #303133)) !default;
|
|
7
|
+
$u-content-color: var(--up-content-color, var(--u-content-color, #606266)) !default;
|
|
8
|
+
$u-tips-color: var(--up-tips-color, var(--u-tips-color, #909193)) !default;
|
|
9
|
+
$u-light-color: var(--up-light-color, var(--u-light-color, #c0c4cc)) !default;
|
|
10
|
+
$u-border-color: var(--up-border-color, var(--u-border-color, #dadbde)) !default;
|
|
11
|
+
$u-bg-color: var(--up-bg-color, var(--u-bg-color, #f3f4f6)) !default;
|
|
12
|
+
$u-disabled-color: var(--up-disabled-color, var(--u-disabled-color, #c8c9cc)) !default;
|
|
13
|
+
|
|
14
|
+
$u-primary: var(--up-primary, var(--u-primary, #3c9cff)) !default;
|
|
15
|
+
$u-primary-dark: var(--up-primary-dark, var(--u-primary-dark, #398ade)) !default;
|
|
16
|
+
$u-primary-disabled: var(--up-primary-disabled, var(--u-primary-disabled, #9acafc)) !default;
|
|
17
|
+
$u-primary-light: var(--up-primary-light, var(--u-primary-light, #ecf5ff)) !default;
|
|
18
|
+
|
|
19
|
+
$u-warning: var(--up-warning, var(--u-warning, #f9ae3d)) !default;
|
|
20
|
+
$u-warning-dark: var(--up-warning-dark, var(--u-warning-dark, #f1a532)) !default;
|
|
21
|
+
$u-warning-disabled: var(--up-warning-disabled, var(--u-warning-disabled, #f9d39b)) !default;
|
|
22
|
+
$u-warning-light: var(--up-warning-light, var(--u-warning-light, #fdf6ec)) !default;
|
|
23
|
+
|
|
24
|
+
$u-success: var(--up-success, var(--u-success, #5ac725)) !default;
|
|
25
|
+
$u-success-dark: var(--up-success-dark, var(--u-success-dark, #53c21d)) !default;
|
|
26
|
+
$u-success-disabled: var(--up-success-disabled, var(--u-success-disabled, #a9e08f)) !default;
|
|
27
|
+
$u-success-light: var(--up-success-light, var(--u-success-light, #f5fff0)) !default;
|
|
28
|
+
|
|
29
|
+
$u-error: var(--up-error, var(--u-error, #f56c6c)) !default;
|
|
30
|
+
$u-error-dark: var(--up-error-dark, var(--u-error-dark, #e45656)) !default;
|
|
31
|
+
$u-error-disabled: var(--up-error-disabled, var(--u-error-disabled, #f7b2b2)) !default;
|
|
32
|
+
$u-error-light: var(--up-error-light, var(--u-error-light, #fef0f0)) !default;
|
|
33
|
+
|
|
34
|
+
$u-info: var(--up-info, var(--u-info, #909399)) !default;
|
|
35
|
+
$u-info-dark: var(--up-info-dark, var(--u-info-dark, #767a82)) !default;
|
|
36
|
+
$u-info-disabled: var(--up-info-disabled, var(--u-info-disabled, #c4c6c9)) !default;
|
|
37
|
+
$u-info-light: var(--up-info-light, var(--u-info-light, #f4f4f5)) !default;
|
|
38
|
+
/* #endif */
|
|
39
|
+
|
|
40
|
+
/* #ifndef APP-NVUE */
|
|
41
|
+
$u-main-color: var(--up-main-color, var(--u-main-color, #303133)) !default;
|
|
42
|
+
$u-content-color: var(--up-content-color, var(--u-content-color, #606266)) !default;
|
|
43
|
+
$u-tips-color: var(--up-tips-color, var(--u-tips-color, #909193)) !default;
|
|
44
|
+
$u-light-color: var(--up-light-color, var(--u-light-color, #c0c4cc)) !default;
|
|
45
|
+
$u-border-color: var(--up-border-color, var(--u-border-color, #dadbde)) !default;
|
|
46
|
+
$u-bg-color: var(--up-bg-color, var(--u-bg-color, #f3f4f6)) !default;
|
|
47
|
+
$u-disabled-color: var(--up-disabled-color, var(--u-disabled-color, #c8c9cc)) !default;
|
|
48
|
+
|
|
49
|
+
$u-primary: var(--up-primary, var(--u-primary, #3c9cff)) !default;
|
|
50
|
+
$u-primary-dark: var(--up-primary-dark, var(--u-primary-dark, #398ade)) !default;
|
|
51
|
+
$u-primary-disabled: var(--up-primary-disabled, var(--u-primary-disabled, #9acafc)) !default;
|
|
52
|
+
$u-primary-light: var(--up-primary-light, var(--u-primary-light, #ecf5ff)) !default;
|
|
53
|
+
|
|
54
|
+
$u-warning: var(--up-warning, var(--u-warning, #f9ae3d)) !default;
|
|
55
|
+
$u-warning-dark: var(--up-warning-dark, var(--u-warning-dark, #f1a532)) !default;
|
|
56
|
+
$u-warning-disabled: var(--up-warning-disabled, var(--u-warning-disabled, #f9d39b)) !default;
|
|
57
|
+
$u-warning-light: var(--up-warning-light, var(--u-warning-light, #fdf6ec)) !default;
|
|
58
|
+
|
|
59
|
+
$u-success: var(--up-success, var(--u-success, #5ac725)) !default;
|
|
60
|
+
$u-success-dark: var(--up-success-dark, var(--u-success-dark, #53c21d)) !default;
|
|
61
|
+
$u-success-disabled: var(--up-success-disabled, var(--u-success-disabled, #a9e08f)) !default;
|
|
62
|
+
$u-success-light: var(--up-success-light, var(--u-success-light, #f5fff0)) !default;
|
|
63
|
+
|
|
64
|
+
$u-error: var(--up-error, var(--u-error, #f56c6c)) !default;
|
|
65
|
+
$u-error-dark: var(--up-error-dark, var(--u-error-dark, #e45656)) !default;
|
|
66
|
+
$u-error-disabled: var(--up-error-disabled, var(--u-error-disabled, #f7b2b2)) !default;
|
|
67
|
+
$u-error-light: var(--up-error-light, var(--u-error-light, #fef0f0)) !default;
|
|
68
|
+
|
|
69
|
+
$u-info: var(--up-info, var(--u-info, #909399)) !default;
|
|
70
|
+
$u-info-dark: var(--up-info-dark, var(--u-info-dark, #767a82)) !default;
|
|
71
|
+
$u-info-disabled: var(--up-info-disabled, var(--u-info-disabled, #c4c6c9)) !default;
|
|
72
|
+
$u-info-light: var(--up-info-light, var(--u-info-light, #f4f4f5)) !default;
|
|
73
|
+
/* #endif */
|
|
74
|
+
|
|
75
|
+
$up-legacy-light-theme-map: (
|
|
76
|
+
'main-color': $u-main-color,
|
|
77
|
+
'content-color': $u-content-color,
|
|
78
|
+
'tips-color': $u-tips-color,
|
|
79
|
+
'light-color': $u-light-color,
|
|
80
|
+
'border-color': $u-border-color,
|
|
81
|
+
'bg-color': $u-bg-color,
|
|
82
|
+
'disabled-color': $u-disabled-color,
|
|
83
|
+
'primary': $u-primary,
|
|
84
|
+
'primary-dark': $u-primary-dark,
|
|
85
|
+
'primary-disabled': $u-primary-disabled,
|
|
86
|
+
'primary-light': $u-primary-light,
|
|
87
|
+
'warning': $u-warning,
|
|
88
|
+
'warning-dark': $u-warning-dark,
|
|
89
|
+
'warning-disabled': $u-warning-disabled,
|
|
90
|
+
'warning-light': $u-warning-light,
|
|
91
|
+
'success': $u-success,
|
|
92
|
+
'success-dark': $u-success-dark,
|
|
93
|
+
'success-disabled': $u-success-disabled,
|
|
94
|
+
'success-light': $u-success-light,
|
|
95
|
+
'error': $u-error,
|
|
96
|
+
'error-dark': $u-error-dark,
|
|
97
|
+
'error-disabled': $u-error-disabled,
|
|
98
|
+
'error-light': $u-error-light,
|
|
99
|
+
'info': $u-info,
|
|
100
|
+
'info-dark': $u-info-dark,
|
|
101
|
+
'info-disabled': $u-info-disabled,
|
|
102
|
+
'info-light': $u-info-light
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
@mixin up-export-legacy-light-vars($selector) {
|
|
106
|
+
#{$selector} {
|
|
107
|
+
@each $name, $value in $up-legacy-light-theme-map {
|
|
108
|
+
--up-light-#{$name}: #{$value};
|
|
109
|
+
--u-light-#{$name}: #{$value};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@include up-export-legacy-light-vars(':root');
|
|
115
|
+
@include up-export-legacy-light-vars('page');
|
|
116
|
+
@include up-export-legacy-light-vars('body');
|
|
117
|
+
@include up-export-legacy-light-vars("[data-up-theme='light']");
|
|
37
118
|
|
|
38
119
|
// scss混入,为了少写几行#ifndef
|
|
39
120
|
@mixin flex($direction: row) {
|
package/types/comps/qrcode.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -23,6 +23,12 @@ declare module 'uview-plus' {
|
|
|
23
23
|
* @default 'px'
|
|
24
24
|
*/
|
|
25
25
|
unit: 'px' | 'rpx';
|
|
26
|
+
/**
|
|
27
|
+
* 是否由运行时主题同步原生导航栏、页面背景、tabBar等全局UI。
|
|
28
|
+
* 默认关闭,避免升级后覆盖项目已有 pages.json/theme.json 全局样式。
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
nativeThemeSync: boolean;
|
|
26
32
|
/**
|
|
27
33
|
* 只加载一次字体图标
|
|
28
34
|
* @default false
|
|
@@ -45,7 +51,8 @@ declare module 'uview-plus' {
|
|
|
45
51
|
*/
|
|
46
52
|
customIcons: {
|
|
47
53
|
[key: string]: string
|
|
48
|
-
}
|
|
54
|
+
},
|
|
55
|
+
themeMode?: 'light' | 'dark'
|
|
49
56
|
}
|
|
50
57
|
interface Color {
|
|
51
58
|
primary: string,
|
|
@@ -58,7 +65,9 @@ declare module 'uview-plus' {
|
|
|
58
65
|
contentColor: string,
|
|
59
66
|
tipsColor: string,
|
|
60
67
|
lightColor: string,
|
|
61
|
-
borderColor: string
|
|
68
|
+
borderColor: string,
|
|
69
|
+
bgColor?: string,
|
|
70
|
+
disabledColor?: string
|
|
62
71
|
}
|
|
63
72
|
interface GlobalConfig {
|
|
64
73
|
config: Partial<Config>;
|
|
@@ -85,6 +94,42 @@ declare module 'uview-plus' {
|
|
|
85
94
|
props: {},
|
|
86
95
|
color: Color;
|
|
87
96
|
platform: string;
|
|
97
|
+
theme: {
|
|
98
|
+
preference: 'system' | 'light' | 'dark';
|
|
99
|
+
mode: 'light' | 'dark';
|
|
100
|
+
version: number;
|
|
101
|
+
vars: Record<string, string>;
|
|
102
|
+
};
|
|
103
|
+
setTheme: (mode?: 'light' | 'dark') => void;
|
|
104
|
+
setThemePreference: (mode?: 'system' | 'light' | 'dark') => void;
|
|
105
|
+
getThemePreference: () => 'system' | 'light' | 'dark';
|
|
106
|
+
getSystemTheme: () => 'light' | 'dark';
|
|
107
|
+
getThemeVars: (mode?: 'light' | 'dark') => Record<string, string>;
|
|
108
|
+
/**
|
|
109
|
+
* 调用Root根组件中的全局Toast(内部封装了up-toast)
|
|
110
|
+
* - 传字符串时等价于 { message: 'xxx' }
|
|
111
|
+
*/
|
|
112
|
+
rootToast: (options: string | {
|
|
113
|
+
message?: string;
|
|
114
|
+
title?: string;
|
|
115
|
+
duration?: number;
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
}) => void;
|
|
118
|
+
/** @internal Root根组件用于注册全局Toast引用 */
|
|
119
|
+
setRootToastRef: (ref?: any) => void;
|
|
120
|
+
/**
|
|
121
|
+
* 调用Root根组件中的全局Notify(内部封装了up-notify)
|
|
122
|
+
* - 传字符串时等价于 { message: 'xxx' }
|
|
123
|
+
*/
|
|
124
|
+
rootNotify: (options: string | {
|
|
125
|
+
message?: string;
|
|
126
|
+
title?: string;
|
|
127
|
+
duration?: number;
|
|
128
|
+
type?: 'primary' | 'success' | 'warning' | 'error';
|
|
129
|
+
[key: string]: any;
|
|
130
|
+
}) => void;
|
|
131
|
+
/** @internal Root根组件用于注册全局Notify引用 */
|
|
132
|
+
setRootNotifyRef: (ref?: any) => void;
|
|
88
133
|
}
|
|
89
134
|
|
|
90
135
|
export function setConfig(config: Partial<GlobalConfig>): void;
|