uview-plus 3.4.40 → 3.4.42

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 (129) hide show
  1. package/changelog.md +10 -0
  2. package/components/u-action-sheet/u-action-sheet.vue +0 -1
  3. package/components/u-album/u-album.vue +0 -2
  4. package/components/u-alert/u-alert.vue +0 -1
  5. package/components/u-avatar/u-avatar.vue +0 -1
  6. package/components/u-avatar-group/u-avatar-group.vue +0 -1
  7. package/components/u-back-top/u-back-top.vue +0 -1
  8. package/components/u-badge/u-badge.vue +0 -1
  9. package/components/u-box/u-box.vue +0 -1
  10. package/components/u-button/u-button.vue +0 -2
  11. package/components/u-calendar/header.vue +0 -1
  12. package/components/u-calendar/month.vue +0 -1
  13. package/components/u-calendar/u-calendar.vue +0 -2
  14. package/components/u-car-keyboard/u-car-keyboard.vue +0 -1
  15. package/components/u-card/u-card.vue +0 -2
  16. package/components/u-cell/u-cell.vue +0 -1
  17. package/components/u-cell-group/u-cell-group.vue +0 -1
  18. package/components/u-checkbox/u-checkbox.vue +0 -1
  19. package/components/u-checkbox-group/u-checkbox-group.vue +0 -1
  20. package/components/u-circle-progress/u-circle-progress.vue +0 -1
  21. package/components/u-code/u-code.vue +0 -1
  22. package/components/u-code-input/u-code-input.vue +0 -1
  23. package/components/u-col/u-col.vue +0 -1
  24. package/components/u-collapse/u-collapse.vue +0 -1
  25. package/components/u-collapse-item/u-collapse-item.vue +0 -1
  26. package/components/u-column-notice/u-column-notice.vue +0 -1
  27. package/components/u-count-down/u-count-down.vue +0 -1
  28. package/components/u-count-to/u-count-to.vue +0 -2
  29. package/components/u-datetime-picker/u-datetime-picker.vue +0 -1
  30. package/components/u-divider/u-divider.vue +0 -1
  31. package/components/u-dropdown/u-dropdown.vue +0 -1
  32. package/components/u-dropdown-item/u-dropdown-item.vue +0 -1
  33. package/components/u-empty/u-empty.vue +0 -1
  34. package/components/u-float-button/u-float-button.vue +0 -2
  35. package/components/u-form-item/u-form-item.vue +0 -1
  36. package/components/u-gap/u-gap.vue +0 -1
  37. package/components/u-grid/u-grid.vue +0 -1
  38. package/components/u-grid-item/u-grid-item.vue +0 -1
  39. package/components/u-icon/u-icon.vue +0 -1
  40. package/components/u-image/u-image.vue +0 -2
  41. package/components/u-index-anchor/u-index-anchor.vue +0 -1
  42. package/components/u-index-item/u-index-item.vue +0 -1
  43. package/components/u-index-list/u-index-list.vue +0 -1
  44. package/components/u-input/u-input.vue +0 -2
  45. package/components/u-keyboard/u-keyboard.vue +0 -1
  46. package/components/u-lazy-load/u-lazy-load.vue +0 -2
  47. package/components/u-line/u-line.vue +0 -1
  48. package/components/u-line-progress/u-line-progress.vue +0 -1
  49. package/components/u-link/u-link.vue +0 -1
  50. package/components/u-list/u-list.vue +0 -1
  51. package/components/u-list-item/u-list-item.vue +0 -1
  52. package/components/u-loading-icon/u-loading-icon.vue +0 -1
  53. package/components/u-loading-page/u-loading-page.vue +0 -2
  54. package/components/u-loadmore/u-loadmore.vue +0 -1
  55. package/components/u-modal/u-modal.vue +0 -1
  56. package/components/u-navbar/u-navbar.vue +0 -1
  57. package/components/u-navbar-mini/u-navbar-mini.vue +0 -1
  58. package/components/u-no-network/u-no-network.vue +0 -1
  59. package/components/u-notice-bar/u-notice-bar.vue +0 -1
  60. package/components/u-notify/u-notify.vue +0 -1
  61. package/components/u-number-box/u-number-box.vue +0 -2
  62. package/components/u-number-keyboard/u-number-keyboard.vue +0 -1
  63. package/components/u-overlay/u-overlay.vue +0 -1
  64. package/components/u-picker/u-picker.vue +0 -1
  65. package/components/u-picker-column/u-picker-column.vue +0 -1
  66. package/components/u-popup/u-popup.vue +0 -1
  67. package/components/u-qrcode/qrcode.js +24 -10
  68. package/components/u-qrcode/u-qrcode.vue +412 -281
  69. package/components/u-radio/u-radio.vue +0 -1
  70. package/components/u-radio-group/u-radio-group.vue +0 -1
  71. package/components/u-rate/u-rate.vue +0 -1
  72. package/components/u-read-more/u-read-more.vue +0 -2
  73. package/components/u-row/u-row.vue +0 -1
  74. package/components/u-row-notice/u-row-notice.vue +0 -1
  75. package/components/u-scroll-list/u-scroll-list.vue +0 -2
  76. package/components/u-search/u-search.vue +0 -1
  77. package/components/u-skeleton/u-skeleton.vue +0 -1
  78. package/components/u-slider/u-slider.vue +0 -1
  79. package/components/u-steps/u-steps.vue +0 -1
  80. package/components/u-steps-item/u-steps-item.vue +0 -1
  81. package/components/u-subsection/u-subsection.vue +0 -2
  82. package/components/u-swipe-action-item/u-swipe-action-item.vue +0 -1
  83. package/components/u-swiper/u-swiper.vue +0 -1
  84. package/components/u-swiper-indicator/u-swiper-indicator.vue +0 -1
  85. package/components/u-switch/u-switch.vue +0 -1
  86. package/components/u-tabbar/u-tabbar.vue +0 -1
  87. package/components/u-tabbar-item/u-tabbar-item.vue +0 -1
  88. package/components/u-table/u-table.vue +0 -1
  89. package/components/u-tabs/u-tabs.vue +0 -1
  90. package/components/u-tag/u-tag.vue +0 -1
  91. package/components/u-td/u-td.vue +0 -1
  92. package/components/u-text/u-text.vue +4 -6
  93. package/components/u-textarea/u-textarea.vue +9 -11
  94. package/components/u-th/u-th.vue +0 -1
  95. package/components/u-toast/u-toast.vue +2 -2
  96. package/components/u-toolbar/u-toolbar.vue +0 -1
  97. package/components/u-tooltip/u-tooltip.vue +0 -1
  98. package/components/u-tr/u-tr.vue +0 -1
  99. package/components/u-transition/u-transition.vue +114 -3
  100. package/components/u-upload/u-upload.vue +0 -1
  101. package/components/u-view/u-view.vue +0 -2
  102. package/components/u-waterfall/u-waterfall.vue +0 -2
  103. package/index.scss +2 -1
  104. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
  105. package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
  106. package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
  107. package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
  108. package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
  109. package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
  110. package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
  111. package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
  112. package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
  113. package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
  114. package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
  115. package/libs/util/gcanvas/context-webgl/Program.js +0 -0
  116. package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
  117. package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
  118. package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
  119. package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
  120. package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
  121. package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
  122. package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
  123. package/libs/util/gcanvas/env/canvas.js +0 -0
  124. package/libs/util/gcanvas/env/image.js +0 -0
  125. package/libs/util/gcanvas/env/tool.js +0 -0
  126. package/libs/util/gcanvas/index.js +0 -0
  127. package/package.json +1 -1
  128. package/types/comps/qrcode.d.ts +77 -0
  129. package/types/comps.d.ts +1 -0
@@ -246,7 +246,6 @@
246
246
  </script>
247
247
 
248
248
  <style lang="scss" scoped>
249
- @import "../../libs/css/components.scss";
250
249
  $u-radio-wrap-margin-right:6px !default;
251
250
  $u-radio-wrap-font-size:20px !default;
252
251
  $u-radio-wrap-border-width:1px !default;
@@ -118,7 +118,6 @@
118
118
  </script>
119
119
 
120
120
  <style lang="scss" scoped>
121
- @import "../../libs/css/components.scss";
122
121
 
123
122
  .u-radio-group {
124
123
  flex: 1;
@@ -287,7 +287,6 @@
287
287
  </script>
288
288
 
289
289
  <style lang="scss" scoped>
290
- @import "../../libs/css/components.scss";
291
290
  $u-rate-margin: 0 !default;
292
291
  $u-rate-padding: 0 !default;
293
292
  $u-rate-item-icon-wrap-half-top: 0 !default;
@@ -140,8 +140,6 @@
140
140
  </script>
141
141
 
142
142
  <style lang="scss" scoped>
143
- @import "../../libs/css/components.scss";
144
-
145
143
  .u-read-more {
146
144
 
147
145
  &__content {
@@ -89,7 +89,6 @@
89
89
  </script>
90
90
 
91
91
  <style lang="scss" scoped>
92
- @import "../../libs/css/components.scss";
93
92
 
94
93
  .u-row {
95
94
  @include flex;
@@ -282,7 +282,6 @@
282
282
  </script>
283
283
 
284
284
  <style lang="scss" scoped>
285
- @import "../../libs/css/components.scss";
286
285
 
287
286
  .u-notice {
288
287
  @include flex;
@@ -198,8 +198,6 @@ export default {
198
198
  </script>
199
199
 
200
200
  <style lang="scss" scoped>
201
- @import "../../libs/css/components.scss";
202
-
203
201
  .u-scroll-list {
204
202
  padding-bottom: 10px;
205
203
 
@@ -233,7 +233,6 @@
233
233
  </script>
234
234
 
235
235
  <style lang="scss" scoped>
236
- @import "../../libs/css/components.scss";
237
236
  $u-search-content-padding: 0 10px !default;
238
237
  $u-search-label-color: $u-main-color !default;
239
238
  $u-search-label-font-size: 14px !default;
@@ -187,7 +187,6 @@
187
187
  </script>
188
188
 
189
189
  <style lang="scss" scoped>
190
- @import "../../libs/css/components.scss";
191
190
 
192
191
  @mixin background {
193
192
  /* #ifdef APP-NVUE */
@@ -420,7 +420,6 @@
420
420
  </script>
421
421
 
422
422
  <style lang="scss" scoped>
423
- @import "../../libs/css/components.scss";
424
423
  .u-slider {
425
424
  position: relative;
426
425
  display: flex;
@@ -69,7 +69,6 @@
69
69
  </script>
70
70
 
71
71
  <style lang="scss" scoped>
72
- @import "../../libs/css/components.scss";
73
72
 
74
73
  .u-steps {
75
74
  @include flex;
@@ -228,7 +228,6 @@
228
228
  </script>
229
229
 
230
230
  <style lang="scss" scoped>
231
- @import "../../libs/css/components.scss";
232
231
 
233
232
  .u-steps-item {
234
233
  flex: 1;
@@ -226,8 +226,6 @@ export default {
226
226
  </script>
227
227
 
228
228
  <style lang="scss" scoped>
229
- @import "../../libs/css/components.scss";
230
-
231
229
  .u-subsection {
232
230
  @include flex;
233
231
  position: relative;
@@ -201,7 +201,6 @@
201
201
  </script>
202
202
 
203
203
  <style lang="scss" scoped>
204
- @import "../../libs/css/components.scss";
205
204
 
206
205
  .u-swipe-action-item {
207
206
  position: relative;
@@ -214,7 +214,6 @@
214
214
  </script>
215
215
 
216
216
  <style lang="scss" scoped>
217
- @import "../../libs/css/components.scss";
218
217
 
219
218
  .u-swiper__wrapper {
220
219
  flex: 1;
@@ -79,7 +79,6 @@
79
79
  </script>
80
80
 
81
81
  <style lang="scss" scoped>
82
- @import "../../libs/css/components.scss";
83
82
 
84
83
  .u-swiper-indicator {
85
84
 
@@ -165,7 +165,6 @@
165
165
  </script>
166
166
 
167
167
  <style lang="scss" scoped>
168
- @import "../../libs/css/components.scss";
169
168
 
170
169
  .u-switch {
171
170
  @include flex(row);
@@ -117,7 +117,6 @@
117
117
  </script>
118
118
 
119
119
  <style lang="scss" scoped>
120
- @import "../../libs/css/components.scss";
121
120
 
122
121
  .u-tabbar {
123
122
  @include flex(column);
@@ -120,7 +120,6 @@
120
120
  </script>
121
121
 
122
122
  <style lang="scss" scoped>
123
- @import "../../libs/css/components.scss";
124
123
  .u-tabbar-item {
125
124
  @include flex(column);
126
125
  align-items: center;
@@ -100,6 +100,5 @@
100
100
  </script>
101
101
 
102
102
  <style lang="scss" scoped>
103
- @import "../../libs/css/components.scss";
104
103
 
105
104
  </style>
@@ -346,7 +346,6 @@
346
346
  </script>
347
347
 
348
348
  <style lang="scss" scoped>
349
- @import "../../libs/css/components.scss";
350
349
 
351
350
  .u-tabs {
352
351
 
@@ -193,7 +193,6 @@
193
193
  lang="scss"
194
194
  scoped
195
195
  >
196
- @import "../../libs/css/components.scss";
197
196
 
198
197
  .u-tag-wrapper {
199
198
  position: relative;
@@ -56,7 +56,6 @@
56
56
  </script>
57
57
 
58
58
  <style lang="scss" scoped>
59
- @import "../../libs/css/components.scss";
60
59
  .u-td {
61
60
  @include flex;
62
61
  flex-direction: column;
@@ -120,11 +120,11 @@ export default {
120
120
  }
121
121
  // 占满剩余空间
122
122
  if (this.flex1) {
123
- style.flex = 1;
124
- // #ifndef APP-NVUE
125
- style.width = '100%';
123
+ style.flex = 1;
124
+ // #ifndef APP-NVUE
125
+ style.width = '100%';
126
126
  // #endif
127
- }
127
+ }
128
128
  return style;
129
129
  },
130
130
  valueStyle() {
@@ -175,8 +175,6 @@ export default {
175
175
  </script>
176
176
 
177
177
  <style lang="scss" scoped>
178
- @import '../../libs/css/components.scss';
179
-
180
178
  .u-text {
181
179
  @include flex(row);
182
180
  align-items: center;
@@ -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;
@@ -53,7 +53,6 @@
53
53
  </script>
54
54
 
55
55
  <style lang="scss" scoped>
56
- @import "../../libs/css/components.scss";
57
56
  .u-th {
58
57
  @include flex;
59
58
  flex-direction: column;
@@ -2,7 +2,7 @@
2
2
  <view class="u-toast">
3
3
  <u-overlay
4
4
  :show="isShow"
5
- :zIndex="tmpConfig.overlay ? 10070 : -1"
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;
@@ -86,7 +86,6 @@
86
86
  </script>
87
87
 
88
88
  <style lang="scss" scoped>
89
- @import "../../libs/css/components.scss";
90
89
 
91
90
  .u-toolbar {
92
91
  height: 42px;
@@ -276,7 +276,6 @@
276
276
  </script>
277
277
 
278
278
  <style lang="scss" scoped>
279
- @import "../../libs/css/components.scss";
280
279
 
281
280
  .u-tooltip {
282
281
  position: relative;
@@ -28,7 +28,6 @@
28
28
  </script>
29
29
 
30
30
  <style lang="scss" scoped>
31
- @import "../../libs/css/components.scss";
32
31
  .u-tr {
33
32
  @include flex;
34
33
  }
@@ -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
- @import './vue.ani-style.scss';
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 {}
@@ -701,7 +701,6 @@
701
701
  </script>
702
702
 
703
703
  <style lang="scss" scoped>
704
- @import '../../libs/css/components.scss';
705
704
  $u-upload-preview-border-radius: 2px !default;
706
705
  $u-upload-preview-margin: 0 8px 8px 0 !default;
707
706
  $u-upload-image-width:80px !default;
@@ -66,8 +66,6 @@ export default {
66
66
  </script>
67
67
 
68
68
  <style lang="scss" scoped>
69
- @import '../../libs/css/components.scss';
70
-
71
69
  .u-view {
72
70
  }
73
71
  </style>
@@ -220,8 +220,6 @@
220
220
  </script>
221
221
 
222
222
  <style lang="scss" scoped>
223
- @import "../../libs/css/components.scss";
224
-
225
223
  .u-waterfall {
226
224
  @include flex;
227
225
  flex-direction: row;
package/index.scss CHANGED
@@ -1,5 +1,6 @@
1
1
  // 引入公共基础类
2
- @import "./libs/css/common.scss";
2
+ @import "./libs/css/common.scss";
3
+ @import "./libs/css/components.scss";
3
4
  @import "./libs/css/flex.scss";
4
5
  @import "./libs/css/color.scss";
5
6
 
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
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.40",
5
+ "version": "3.4.42",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",
@@ -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