uview-plus 3.4.39 → 3.4.41
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 +10 -0
- package/components/u-action-sheet/u-action-sheet.vue +0 -1
- package/components/u-album/u-album.vue +0 -2
- package/components/u-alert/u-alert.vue +0 -1
- package/components/u-avatar/u-avatar.vue +0 -1
- package/components/u-avatar-group/u-avatar-group.vue +0 -1
- package/components/u-back-top/u-back-top.vue +0 -1
- package/components/u-badge/u-badge.vue +0 -1
- package/components/u-box/u-box.vue +0 -1
- package/components/u-button/u-button.vue +0 -2
- package/components/u-calendar/header.vue +0 -1
- package/components/u-calendar/month.vue +0 -1
- package/components/u-calendar/u-calendar.vue +0 -2
- package/components/u-car-keyboard/u-car-keyboard.vue +0 -1
- package/components/u-card/u-card.vue +0 -2
- package/components/u-cell/u-cell.vue +0 -1
- package/components/u-cell-group/u-cell-group.vue +0 -1
- package/components/u-checkbox/u-checkbox.vue +0 -1
- package/components/u-checkbox-group/u-checkbox-group.vue +0 -1
- package/components/u-circle-progress/u-circle-progress.vue +0 -1
- package/components/u-code/u-code.vue +0 -1
- package/components/u-code-input/u-code-input.vue +0 -1
- package/components/u-col/u-col.vue +0 -1
- package/components/u-collapse/u-collapse.vue +0 -1
- package/components/u-collapse-item/u-collapse-item.vue +0 -1
- package/components/u-column-notice/u-column-notice.vue +0 -1
- package/components/u-count-down/u-count-down.vue +0 -1
- package/components/u-count-to/u-count-to.vue +0 -2
- package/components/u-datetime-picker/u-datetime-picker.vue +0 -1
- package/components/u-divider/u-divider.vue +0 -1
- package/components/u-dropdown/u-dropdown.vue +0 -1
- package/components/u-dropdown-item/u-dropdown-item.vue +0 -1
- package/components/u-empty/u-empty.vue +0 -1
- package/components/u-float-button/u-float-button.vue +0 -2
- package/components/u-form-item/u-form-item.vue +0 -1
- package/components/u-gap/u-gap.vue +0 -1
- package/components/u-grid/u-grid.vue +0 -1
- package/components/u-grid-item/u-grid-item.vue +0 -1
- package/components/u-icon/u-icon.vue +0 -1
- package/components/u-image/u-image.vue +0 -2
- package/components/u-index-anchor/u-index-anchor.vue +0 -1
- package/components/u-index-item/u-index-item.vue +0 -1
- package/components/u-index-list/u-index-list.vue +0 -1
- package/components/u-input/u-input.vue +0 -2
- package/components/u-keyboard/u-keyboard.vue +0 -1
- package/components/u-lazy-load/u-lazy-load.vue +0 -2
- package/components/u-line/u-line.vue +0 -1
- package/components/u-line-progress/u-line-progress.vue +0 -1
- package/components/u-link/u-link.vue +0 -1
- package/components/u-list/u-list.vue +0 -1
- package/components/u-list-item/u-list-item.vue +0 -1
- package/components/u-loading-icon/u-loading-icon.vue +0 -1
- package/components/u-loading-page/u-loading-page.vue +0 -2
- package/components/u-loadmore/u-loadmore.vue +0 -1
- package/components/u-modal/u-modal.vue +0 -1
- package/components/u-navbar/u-navbar.vue +0 -1
- package/components/u-navbar-mini/u-navbar-mini.vue +0 -1
- package/components/u-no-network/u-no-network.vue +0 -1
- package/components/u-notice-bar/u-notice-bar.vue +0 -1
- package/components/u-notify/u-notify.vue +0 -1
- package/components/u-number-box/u-number-box.vue +0 -2
- package/components/u-number-keyboard/u-number-keyboard.vue +0 -1
- package/components/u-overlay/u-overlay.vue +0 -1
- package/components/u-picker/u-picker.vue +0 -1
- package/components/u-picker-column/u-picker-column.vue +0 -1
- package/components/u-popup/u-popup.vue +0 -1
- package/components/u-qrcode/qrcode.js +120 -57
- package/components/u-qrcode/u-qrcode.vue +121 -17
- package/components/u-radio/u-radio.vue +0 -1
- package/components/u-radio-group/u-radio-group.vue +0 -1
- package/components/u-rate/u-rate.vue +0 -1
- package/components/u-read-more/u-read-more.vue +0 -2
- package/components/u-row/u-row.vue +0 -1
- package/components/u-row-notice/u-row-notice.vue +0 -1
- package/components/u-scroll-list/u-scroll-list.vue +0 -2
- package/components/u-search/u-search.vue +0 -1
- package/components/u-skeleton/u-skeleton.vue +0 -1
- package/components/u-slider/u-slider.vue +0 -1
- package/components/u-steps/u-steps.vue +0 -1
- package/components/u-steps-item/u-steps-item.vue +0 -1
- package/components/u-subsection/u-subsection.vue +0 -2
- package/components/u-swipe-action-item/u-swipe-action-item.vue +0 -1
- package/components/u-swiper/u-swiper.vue +0 -1
- package/components/u-swiper-indicator/u-swiper-indicator.vue +0 -1
- package/components/u-switch/u-switch.vue +0 -1
- package/components/u-tabbar/u-tabbar.vue +0 -1
- package/components/u-tabbar-item/u-tabbar-item.vue +0 -1
- package/components/u-table/u-table.vue +0 -1
- package/components/u-tabs/u-tabs.vue +0 -1
- package/components/u-tag/u-tag.vue +0 -1
- package/components/u-td/u-td.vue +0 -1
- package/components/u-text/u-text.vue +4 -6
- package/components/u-textarea/u-textarea.vue +9 -11
- package/components/u-th/u-th.vue +0 -1
- package/components/u-toast/u-toast.vue +2 -2
- package/components/u-toolbar/u-toolbar.vue +0 -1
- package/components/u-tooltip/u-tooltip.vue +0 -1
- package/components/u-tr/u-tr.vue +0 -1
- package/components/u-transition/u-transition.vue +114 -3
- package/components/u-upload/u-upload.vue +0 -1
- package/components/u-view/u-view.vue +0 -2
- package/components/u-waterfall/u-waterfall.vue +0 -2
- package/index.scss +2 -1
- 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 +1 -1
- package/types/comps/qrcode.d.ts +77 -0
- package/types/comps.d.ts +1 -0
|
@@ -145,15 +145,15 @@ export default {
|
|
|
145
145
|
}
|
|
146
146
|
// #endif
|
|
147
147
|
},
|
|
148
|
-
computed: {
|
|
149
|
-
fieldStyle() {
|
|
150
|
-
let style = {};
|
|
151
|
-
style['height'] = addUnit(this.height);
|
|
152
|
-
if (this.autoHeight) {
|
|
153
|
-
style['height'] = 'auto';
|
|
154
|
-
style['minHeight'] = addUnit(this.height);
|
|
155
|
-
}
|
|
156
|
-
return style;
|
|
148
|
+
computed: {
|
|
149
|
+
fieldStyle() {
|
|
150
|
+
let style = {};
|
|
151
|
+
style['height'] = addUnit(this.height);
|
|
152
|
+
if (this.autoHeight) {
|
|
153
|
+
style['height'] = 'auto';
|
|
154
|
+
style['minHeight'] = addUnit(this.height);
|
|
155
|
+
}
|
|
156
|
+
return style;
|
|
157
157
|
},
|
|
158
158
|
// 组件的类名
|
|
159
159
|
textareaClass() {
|
|
@@ -245,8 +245,6 @@ export default {
|
|
|
245
245
|
</script>
|
|
246
246
|
|
|
247
247
|
<style lang="scss" scoped>
|
|
248
|
-
@import "../../libs/css/components.scss";
|
|
249
|
-
|
|
250
248
|
.u-textarea {
|
|
251
249
|
border-radius: 4px;
|
|
252
250
|
background-color: #fff;
|
package/components/u-th/u-th.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view class="u-toast">
|
|
3
3
|
<u-overlay
|
|
4
4
|
:show="isShow"
|
|
5
|
-
:zIndex="tmpConfig.overlay ?
|
|
5
|
+
:zIndex="tmpConfig.overlay ? tmpConfig.zIndex : -1"
|
|
6
6
|
:custom-style="overlayStyle"
|
|
7
7
|
>
|
|
8
8
|
<view
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
config: {
|
|
78
78
|
message: '', // 显示文本
|
|
79
79
|
type: '', // 主题类型,primary,success,error,warning,black
|
|
80
|
+
zIndex: 10090, // 层级
|
|
80
81
|
duration: 2000, // 显示的时间,毫秒
|
|
81
82
|
icon: true, // 显示的图标
|
|
82
83
|
position: 'center', // toast出现的位置
|
|
@@ -193,7 +194,6 @@
|
|
|
193
194
|
</script>
|
|
194
195
|
|
|
195
196
|
<style lang="scss" scoped>
|
|
196
|
-
@import "../../libs/css/components.scss";
|
|
197
197
|
|
|
198
198
|
$u-toast-color:#fff !default;
|
|
199
199
|
$u-toast-border-radius:4px !default;
|
package/components/u-tr/u-tr.vue
CHANGED
|
@@ -85,11 +85,122 @@ export default {
|
|
|
85
85
|
</script>
|
|
86
86
|
|
|
87
87
|
<style lang="scss" scoped>
|
|
88
|
-
@import '../../libs/css/components.scss';
|
|
89
|
-
|
|
90
88
|
/* #ifndef APP-NVUE */
|
|
91
89
|
// vue版本动画相关的样式抽离在外部文件
|
|
92
|
-
@
|
|
90
|
+
// @use './vue.ani-style.scss' as *;
|
|
91
|
+
/**
|
|
92
|
+
* vue版本动画内置的动画模式有如下:
|
|
93
|
+
* fade:淡入
|
|
94
|
+
* zoom:缩放
|
|
95
|
+
* fade-zoom:缩放淡入
|
|
96
|
+
* fade-up:上滑淡入
|
|
97
|
+
* fade-down:下滑淡入
|
|
98
|
+
* fade-left:左滑淡入
|
|
99
|
+
* fade-right:右滑淡入
|
|
100
|
+
* slide-up:上滑进入
|
|
101
|
+
* slide-down:下滑进入
|
|
102
|
+
* slide-left:左滑进入
|
|
103
|
+
* slide-right:右滑进入
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
$u-zoom-scale: scale(0.95);
|
|
107
|
+
|
|
108
|
+
.u-fade-enter-active,
|
|
109
|
+
.u-fade-leave-active {
|
|
110
|
+
transition-property: opacity;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.u-fade-enter,
|
|
114
|
+
.u-fade-leave-to {
|
|
115
|
+
opacity: 0
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.u-fade-zoom-enter,
|
|
119
|
+
.u-fade-zoom-leave-to {
|
|
120
|
+
transform: $u-zoom-scale;
|
|
121
|
+
opacity: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.u-fade-zoom-enter-active,
|
|
125
|
+
.u-fade-zoom-leave-active {
|
|
126
|
+
transition-property: transform, opacity;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.u-fade-down-enter-active,
|
|
130
|
+
.u-fade-down-leave-active,
|
|
131
|
+
.u-fade-left-enter-active,
|
|
132
|
+
.u-fade-left-leave-active,
|
|
133
|
+
.u-fade-right-enter-active,
|
|
134
|
+
.u-fade-right-leave-active,
|
|
135
|
+
.u-fade-up-enter-active,
|
|
136
|
+
.u-fade-up-leave-active {
|
|
137
|
+
transition-property: opacity, transform;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.u-fade-up-enter,
|
|
141
|
+
.u-fade-up-leave-to {
|
|
142
|
+
transform: translate3d(0, 100%, 0);
|
|
143
|
+
opacity: 0
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.u-fade-down-enter,
|
|
147
|
+
.u-fade-down-leave-to {
|
|
148
|
+
transform: translate3d(0, -100%, 0);
|
|
149
|
+
opacity: 0
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.u-fade-left-enter,
|
|
153
|
+
.u-fade-left-leave-to {
|
|
154
|
+
transform: translate3d(-100%, 0, 0);
|
|
155
|
+
opacity: 0
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.u-fade-right-enter,
|
|
159
|
+
.u-fade-right-leave-to {
|
|
160
|
+
transform: translate3d(100%, 0, 0);
|
|
161
|
+
opacity: 0
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.u-slide-down-enter-active,
|
|
165
|
+
.u-slide-down-leave-active,
|
|
166
|
+
.u-slide-left-enter-active,
|
|
167
|
+
.u-slide-left-leave-active,
|
|
168
|
+
.u-slide-right-enter-active,
|
|
169
|
+
.u-slide-right-leave-active,
|
|
170
|
+
.u-slide-up-enter-active,
|
|
171
|
+
.u-slide-up-leave-active {
|
|
172
|
+
transition-property: transform;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.u-slide-up-enter,
|
|
176
|
+
.u-slide-up-leave-to {
|
|
177
|
+
transform: translate3d(0, 100%, 0)
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.u-slide-down-enter,
|
|
181
|
+
.u-slide-down-leave-to {
|
|
182
|
+
transform: translate3d(0, -100%, 0)
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.u-slide-left-enter,
|
|
186
|
+
.u-slide-left-leave-to {
|
|
187
|
+
transform: translate3d(-100%, 0, 0)
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.u-slide-right-enter,
|
|
191
|
+
.u-slide-right-leave-to {
|
|
192
|
+
transform: translate3d(100%, 0, 0)
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.u-zoom-enter-active,
|
|
196
|
+
.u-zoom-leave-active {
|
|
197
|
+
transition-property: transform
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.u-zoom-enter,
|
|
201
|
+
.u-zoom-leave-to {
|
|
202
|
+
transform: $u-zoom-scale
|
|
203
|
+
}
|
|
93
204
|
/* #endif */
|
|
94
205
|
|
|
95
206
|
.u-transition {}
|
package/index.scss
CHANGED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import {AllowedComponentProps, VNodeProps} from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface QrcodeProps {
|
|
4
|
+
/**
|
|
5
|
+
* 实例ID字符串(必须)
|
|
6
|
+
*/
|
|
7
|
+
cid: string
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 二维码大小
|
|
11
|
+
* @default 200
|
|
12
|
+
*/
|
|
13
|
+
size?: number
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 二维码内容
|
|
17
|
+
*/
|
|
18
|
+
val: string
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 背景色
|
|
22
|
+
* @default "#ffffff"
|
|
23
|
+
*/
|
|
24
|
+
background?: string
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 前景色
|
|
28
|
+
* @default "#000000"
|
|
29
|
+
*/
|
|
30
|
+
foreground?: string
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 二维码中间图标
|
|
34
|
+
* @default "#000000"
|
|
35
|
+
*/
|
|
36
|
+
icon?: string
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 显示加载状态
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
showLoading?: boolean
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 加载中提示语
|
|
46
|
+
* @default "二维码生成中"
|
|
47
|
+
*/
|
|
48
|
+
loadingText?: string
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 使用根节点的宽高 设置为true会导致size失效
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
useRootHeightAndWidth: boolean
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 二维码生成成功回调事件
|
|
58
|
+
*/
|
|
59
|
+
result?: () => any
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 长按触发事件
|
|
63
|
+
* @param url 二维码本地生成url
|
|
64
|
+
*/
|
|
65
|
+
longpressCallback?: (url: string) => any
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare interface _Qrcode {
|
|
70
|
+
new(): {
|
|
71
|
+
$props: AllowedComponentProps &
|
|
72
|
+
VNodeProps &
|
|
73
|
+
QrcodeProps
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export declare const Qrcode: _Qrcode
|
package/types/comps.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ declare module 'vue' {
|
|
|
95
95
|
['up-transition']: typeof import('./comps/transition')['Transition']
|
|
96
96
|
['up-status-bar']: typeof import('./comps/statusBar')['StatusBar']
|
|
97
97
|
['up-safe-bottom']: typeof import('./comps/safeBottom')['SafeBottom']
|
|
98
|
+
['up-qrcode']: typeof import('./comps/qrcode')['Qrcode']
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|