uview-plus 3.4.11 → 3.4.13

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 (29) hide show
  1. package/changelog.md +11 -0
  2. package/components/u-dropdown/u-dropdown.vue +4 -3
  3. package/components/u-sticky/u-sticky.vue +2 -2
  4. package/components/u-tabs/u-tabs.vue +2 -0
  5. package/components/u-upload/utils.js +3 -3
  6. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
  7. package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
  8. package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
  9. package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
  10. package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
  11. package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
  12. package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
  13. package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
  14. package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
  15. package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
  16. package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
  17. package/libs/util/gcanvas/context-webgl/Program.js +0 -0
  18. package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
  19. package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
  20. package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
  21. package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
  22. package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
  23. package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
  24. package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
  25. package/libs/util/gcanvas/env/canvas.js +0 -0
  26. package/libs/util/gcanvas/env/image.js +0 -0
  27. package/libs/util/gcanvas/env/tool.js +0 -0
  28. package/libs/util/gcanvas/index.js +0 -0
  29. package/package.json +1 -1
package/changelog.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 3.4.13(2025-04-08)
2
+ fix: tabs点击当前tab触发change事件
3
+
4
+ ## 3.4.12(2025-04-02)
5
+ fix: dropdown关闭后遮挡页面内容 #653
6
+
7
+ fix u-sticky.vue Uncaught TypeError: e.querySelector is not a function at uni-app-view.umd.js
8
+
9
+ ## 3.4.11(2025-03-31)
10
+ fix: 优化upload组件预览视频的弹窗占位
11
+
1
12
  ## 3.4.10(2025-03-28)
2
13
  feat: select组件新增多个props属性及优化
3
14
 
@@ -21,8 +21,7 @@
21
21
  </view>
22
22
  <view class="u-dropdown__content" :style="[contentStyle, {
23
23
  transition: `opacity ${duration / 1000}s linear`,
24
- top: addUnit(height),
25
- height: contentHeight + 'px'
24
+ top: addUnit(height)
26
25
  }]"
27
26
  @tap="maskClick" @touchmove.stop.prevent>
28
27
  <view @tap.stop.prevent class="u-dropdown__content__popup" :style="[popupStyle]">
@@ -129,6 +128,7 @@
129
128
  // 展开时,设置下拉内容的样式
130
129
  this.contentStyle = {
131
130
  zIndex: 11,
131
+ height: this.contentHeight + 'px'
132
132
  }
133
133
  // 标记展开状态以及当前展开项的索引
134
134
  this.active = true;
@@ -149,7 +149,8 @@
149
149
  // 下拉内容的样式进行调整,不透明度设置为0
150
150
  this.contentStyle = {
151
151
  zIndex: -1,
152
- opacity: 0
152
+ opacity: 0,
153
+ height: '0px'
153
154
  }
154
155
  },
155
156
  // 点击遮罩
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <view
3
3
  class="u-sticky"
4
- :id="elId"
5
4
  :style="[style]"
6
5
  >
7
6
  <view
7
+ :id="elId"
8
8
  :style="[stickyContent]"
9
9
  class="u-sticky__content"
10
10
  >
@@ -114,7 +114,7 @@
114
114
  observeContent() {
115
115
  // 先断掉之前的观察
116
116
  this.disconnectObserver('contentObserver')
117
- const contentObserver = uni.createIntersectionObserver({
117
+ const contentObserver = uni.createIntersectionObserver(this,{
118
118
  // 检测的区间范围
119
119
  thresholds: [0.95, 0.98, 1]
120
120
  })
@@ -229,6 +229,8 @@
229
229
  }, index)
230
230
  // 如果disabled状态,返回
231
231
  if (item.disabled) return
232
+ // 如果点击当前不触发change
233
+ if (this.innerCurrent == index) return
232
234
  this.innerCurrent = index
233
235
  this.resize()
234
236
  this.$emit('update:current', index)
@@ -124,8 +124,8 @@ export function chooseFile({
124
124
  fail: reject
125
125
  })
126
126
  break
127
- // #ifdef MP-WEIXIN || H5
128
- // 只有微信小程序才支持chooseMessageFile接口
127
+ // #ifdef MP-WEIXIN || H5
128
+ // 只有微信小程序才支持chooseMessageFile接口
129
129
  case 'file':
130
130
  // #ifdef MP-WEIXIN
131
131
  wx.chooseMessageFile({
@@ -149,7 +149,7 @@ export function chooseFile({
149
149
  uni.chooseFile(params)
150
150
  // #endif
151
151
  break
152
- // #endif
152
+ // #endif
153
153
  default:
154
154
  // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
155
155
  // #ifdef MP-WEIXIN
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.11",
5
+ "version": "3.4.13",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",