uview-plus 3.3.56 → 3.3.60

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 (31) hide show
  1. package/changelog.md +18 -0
  2. package/components/u-datetime-picker/props.js +4 -0
  3. package/components/u-datetime-picker/u-datetime-picker.vue +8 -1
  4. package/components/u-slider/u-slider.vue +3 -3
  5. package/components/u-status-bar/u-status-bar.vue +5 -2
  6. package/components/u-tabs/u-tabs.vue +3 -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 +1 -1
  31. package/types/comps/actionSheet.d.ts +1 -1
package/changelog.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 3.3.60(2024-12-30)
2
+ feat: 日期组件支持禁用
3
+
4
+ fix: ts定义修复 #600
5
+
6
+ feat: Tabs组件选中时增加一个active的class #595
7
+
8
+ ## 3.3.59(2024-12-30)
9
+ fix: Property "isH5" was accessed during render
10
+
11
+ ## 3.3.58(2024-12-26)
12
+ fix: slider组件change事件传参
13
+
14
+ ## 3.3.57(2024-12-23)
15
+ fix: slider组件change事件传参
16
+
17
+ feat: 更新u-picker组件增加当前选中class类名
18
+
1
19
  ## 3.3.56(2024-12-18)
2
20
  feat: 在u-alert组件中添加关闭事件
3
21
 
@@ -6,6 +6,10 @@ export const props = defineMixin({
6
6
  hasInput: {
7
7
  type: Boolean,
8
8
  default: () => false
9
+ },
10
+ disabled: {
11
+ type: Boolean,
12
+ default: () => false
9
13
  },
10
14
  placeholder: {
11
15
  type: String,
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view class="u-datetime-picker">
3
3
  <view v-if="hasInput" class="u-datetime-picker__has-input"
4
- @click="showByClickInput = !showByClickInput"
4
+ @click="onShowByClickInput"
5
5
  >
6
6
  <slot name="trigger" :value="inputValue">
7
7
  <up-input
@@ -9,6 +9,7 @@
9
9
  :readonly="!!showByClickInput"
10
10
  border="surround"
11
11
  v-model="inputValue"
12
+ :disabled="disabled"
12
13
  ></up-input>
13
14
  <div class="input-cover">
14
15
  </div>
@@ -461,6 +462,12 @@
461
462
  [`${type}Hour`]: hour,
462
463
  [`${type}Minute`]: minute
463
464
  }
465
+ },
466
+ onShowByClickInput(){
467
+ if(!this.disabled){
468
+ this.showByClickInput = !this.showByClickInput
469
+ }
470
+
464
471
  }
465
472
  }
466
473
  }
@@ -269,7 +269,7 @@
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
- $crtFmtValue = this.updateValue(this.newValue, true, index);
272
+ let $crtFmtValue = this.updateValue(this.newValue, true, index);
273
273
  this.$emit('changing', $crtFmtValue);
274
274
  },
275
275
  onTouchMove(event, index = 1) {
@@ -293,13 +293,13 @@
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
- $crtFmtValue = this.updateValue(this.newValue, true, index);
296
+ let $crtFmtValue = this.updateValue(this.newValue, true, index);
297
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
- $crtFmtValue = this.updateValue(this.newValue, false, index);
302
+ let $crtFmtValue = this.updateValue(this.newValue, false, index);
303
303
  this.$emit('change', $crtFmtValue);
304
304
  }
305
305
  this.status = 'end';
@@ -26,11 +26,14 @@
26
26
  mixins: [mpMixin, mixin, props],
27
27
  data() {
28
28
  return {
29
- // #ifdef H5
30
29
  isH5: true
31
- // #endif
32
30
  }
33
31
  },
32
+ created() {
33
+ // #ifdef H5
34
+ this.isH5 = true
35
+ // #endif
36
+ }
34
37
  computed: {
35
38
  style() {
36
39
  const style = {}
@@ -23,7 +23,9 @@
23
23
  @longpress="longPressHandler(item,index)"
24
24
  :ref="`u-tabs__wrapper__nav__item-${index}`"
25
25
  :style="[addStyle(itemStyle), {flex: scrollable ? '' : 1}]"
26
- :class="[`u-tabs__wrapper__nav__item-${index}`, item.disabled && 'u-tabs__wrapper__nav__item--disabled']"
26
+ :class="[`u-tabs__wrapper__nav__item-${index}`,
27
+ item.disabled && 'u-tabs__wrapper__nav__item--disabled',
28
+ innerCurrent == index ? 'u-tabs__wrapper__nav__item-active' : '']"
27
29
  >
28
30
  <slot v-if="$slots.content" name="content" :item="item" :keyName="keyName" :index="index" />
29
31
  <slot v-else-if="!$slots.content && ($slots.default || $slots.$default)"
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.3.56",
5
+ "version": "3.3.60",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
@@ -26,7 +26,7 @@ declare interface ActionSheetProps {
26
26
  /**
27
27
  * 点击某个菜单项时是否关闭弹窗
28
28
  */
29
- closeOnClickAction?: string
29
+ closeOnClickAction?: boolean
30
30
  /**
31
31
  * 是否开启底部安全区适配
32
32
  * @default false