uview-plus 3.3.54 → 3.3.56

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 (30) hide show
  1. package/changelog.md +6 -0
  2. package/components/u-alert/u-alert.vue +4 -2
  3. package/components/u-picker/u-picker.vue +1 -0
  4. package/components/u-slider/u-slider.vue +11 -7
  5. package/components/u-status-bar/u-status-bar.vue +4 -0
  6. package/components/u-swiper/u-swiper.vue +2 -1
  7. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
  8. package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
  9. package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
  10. package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
  11. package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
  12. package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
  13. package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
  14. package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
  15. package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
  16. package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
  17. package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
  18. package/libs/util/gcanvas/context-webgl/Program.js +0 -0
  19. package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
  20. package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
  21. package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
  22. package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
  23. package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
  24. package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
  25. package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
  26. package/libs/util/gcanvas/env/canvas.js +0 -0
  27. package/libs/util/gcanvas/env/image.js +0 -0
  28. package/libs/util/gcanvas/env/tool.js +0 -0
  29. package/libs/util/gcanvas/index.js +0 -0
  30. package/package.json +2 -2
package/changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.3.56(2024-12-18)
2
+ feat: 在u-alert组件中添加关闭事件
3
+
4
+ ## 3.3.55(2024-12-17)
5
+ add: swiper增加双向绑定
6
+
1
7
  ## 3.3.54(2024-12-11)
2
8
  add: qrcode支持props控制是否开启点击预览
3
9
 
@@ -79,6 +79,7 @@
79
79
  * @property {String | Number} fontSize 字体大小 (默认 14 )
80
80
  * @property {Object} customStyle 定义需要用到的外部样式
81
81
  * @event {Function} click 点击组件时触发
82
+ * @event {Function} close 点击关闭按钮时触发
82
83
  * @example <u-alert :title="title" type = "warning" :closable="closable" :description = "description"></u-alert>
83
84
  */
84
85
  export default {
@@ -116,7 +117,7 @@
116
117
  }
117
118
  }
118
119
  },
119
- emits: ["click"],
120
+ emits: ["click","close"],
120
121
  methods: {
121
122
  addUnit,
122
123
  addStyle,
@@ -126,7 +127,8 @@
126
127
  },
127
128
  // 点击关闭按钮
128
129
  closeHandler() {
129
- this.show = false
130
+ this.show = false
131
+ this.$emit('close')
130
132
  }
131
133
  }
132
134
  }
@@ -48,6 +48,7 @@
48
48
  <view
49
49
  v-if="testArray(item)"
50
50
  class="u-picker__view__column__item u-line-1"
51
+ :class="[index1 === innerIndex[index] && 'u-picker__view__column__item--selected']"
51
52
  v-for="(item1, index1) in item"
52
53
  :key="index1"
53
54
  :style="{
@@ -269,8 +269,8 @@
269
269
  this.newValue = ((this.distanceX / this.sliderRect.width) * (this.max - this.min)) + parseFloat(this.min);
270
270
  this.status = 'moving';
271
271
  // 发出moving事件
272
- this.$emit('changing');
273
- this.updateValue(this.newValue, true, index);
272
+ $crtFmtValue = this.updateValue(this.newValue, true, index);
273
+ this.$emit('changing', $crtFmtValue);
274
274
  },
275
275
  onTouchMove(event, index = 1) {
276
276
  if (this.disabled) return;
@@ -293,14 +293,14 @@
293
293
  this.newValue = ((this.distanceX / this.sliderRect.width) * (this.max - this.min)) + parseFloat(this.min);
294
294
  this.status = 'moving';
295
295
  // 发出moving事件
296
- this.$emit('changing');
297
- this.updateValue(this.newValue, true, index);
296
+ $crtFmtValue = this.updateValue(this.newValue, true, index);
297
+ this.$emit('changing', $crtFmtValue);
298
298
  },
299
299
  onTouchEnd(event, index = 1) {
300
300
  if (this.disabled) return;
301
301
  if (this.status === 'moving') {
302
- this.updateValue(this.newValue, false, index);
303
- this.$emit('change');
302
+ $crtFmtValue = this.updateValue(this.newValue, false, index);
303
+ this.$emit('change', $crtFmtValue);
304
304
  }
305
305
  this.status = 'end';
306
306
  },
@@ -373,7 +373,11 @@
373
373
  default:
374
374
  break;
375
375
  }
376
-
376
+ if (this.isRange) {
377
+ return this.rangeValue
378
+ } else {
379
+ return valueFormat
380
+ }
377
381
  },
378
382
  format(value, index = 1) {
379
383
  // 将小数变成整数,为了减少对视图的更新,造成视图层与逻辑层的阻塞
@@ -2,6 +2,7 @@
2
2
  <view
3
3
  :style="[style]"
4
4
  class="u-status-bar"
5
+ :class="[isH5 && 'u-safe-area-inset-top']"
5
6
  >
6
7
  <slot />
7
8
  </view>
@@ -25,6 +26,9 @@
25
26
  mixins: [mpMixin, mixin, props],
26
27
  data() {
27
28
  return {
29
+ // #ifdef H5
30
+ isH5: true
31
+ // #endif
28
32
  }
29
33
  },
30
34
  computed: {
@@ -143,7 +143,7 @@
143
143
  this.currentIndex = val; // 和上游数据关联上
144
144
  }
145
145
  },
146
- emits: ["click", "change"],
146
+ emits: ["click", "change", "update:current"],
147
147
  computed: {
148
148
  itemStyle() {
149
149
  return index => {
@@ -189,6 +189,7 @@
189
189
  } = e.detail
190
190
  this.pauseVideo(this.currentIndex)
191
191
  this.currentIndex = current
192
+ this.$emit('update:current', this.currentIndex)
192
193
  this.$emit('change', e.detail)
193
194
  },
194
195
  // 切换轮播时,暂停视频播放
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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
- "displayName": "uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.3.54",
4
+ "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
+ "version": "3.3.56",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",