uview-plus 3.3.49 → 3.3.52

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 CHANGED
@@ -1,3 +1,27 @@
1
+ ## 3.3.52(2024-12-09)
2
+ add: notice-bar支持justifyContent属性
3
+
4
+ ## 3.3.51(2024-12-09)
5
+ add: radio增加label插槽
6
+
7
+ ## 3.3.50(2024-12-05)
8
+ fix: 优化popup等对禁止背景滚动机制
9
+
10
+ add: slider在弹窗使用示例
11
+
12
+ fix: card组件类名问题
13
+
14
+ ## 3.3.49(2024-12-02)
15
+ fix: 去除album多余的$u引用
16
+
17
+ fix: 优化图片组件兼容性
18
+
19
+ add: picker组件增加zIndex属性
20
+
21
+ add: text增加是否占满剩余空间属性
22
+
23
+ add: input颜色示例
24
+
1
25
  ## 3.3.48(2024-11-29)
2
26
  add: 文本行数限制样式提高到10行
3
27
 
@@ -143,8 +143,8 @@
143
143
  errorHandler() {
144
144
  this.avatarUrl = this.defaultUrl || base64Avatar
145
145
  },
146
- clickHandler() {
147
- this.$emit('click', this.name)
146
+ clickHandler(e) {
147
+ this.$emit('click', this.name, e)
148
148
  }
149
149
  }
150
150
  }
@@ -18,7 +18,7 @@
18
18
  }"
19
19
  @tap="headClick"
20
20
  >
21
- <view v-if="!$slots.head" class="u-flex u-row-between">
21
+ <view v-if="!$slots.head" class="u-flex u-flex-between">
22
22
  <view class="u-card__head--left u-flex u-line-1" v-if="title">
23
23
  <image
24
24
  :src="thumb"
@@ -19,6 +19,7 @@ export default {
19
19
  speed: 80,
20
20
  step: false,
21
21
  duration: 1500,
22
- disableTouch: true
22
+ disableTouch: true,
23
+ justifyContent: 'flex-start'
23
24
  }
24
25
  }
@@ -52,6 +52,10 @@ export const props = defineMixin({
52
52
  disableTouch: {
53
53
  type: Boolean,
54
54
  default: () => defProps.columnNotice.disableTouch
55
- }
55
+ },
56
+ justifyContent: {
57
+ type: String,
58
+ default: () => defProps.columnNotice.justifyContent
59
+ }
56
60
  }
57
61
  })
@@ -28,6 +28,7 @@
28
28
  v-for="(item, index) in text"
29
29
  :key="index"
30
30
  class="u-notice__swiper__item"
31
+ :style="{'justifyContent': justifyContent}"
31
32
  >
32
33
  <text
33
34
  class="u-notice__swiper__item__text u-line-1"
@@ -145,7 +145,7 @@
145
145
  addStyle,
146
146
  addUnit,
147
147
  clickHandler(e) {
148
- this.$emit('click', this.index)
148
+ this.$emit('click', this.index, e)
149
149
  // 是否阻止事件冒泡
150
150
  this.stop && this.preventEvent(e)
151
151
  }
@@ -22,6 +22,7 @@ export default {
22
22
  duration: 2000,
23
23
  disableTouch: true,
24
24
  url: '',
25
- linkType: 'navigateTo'
25
+ linkType: 'navigateTo',
26
+ justifyContent: 'flex-start'
26
27
  }
27
28
  }
@@ -67,6 +67,10 @@ export const props = defineMixin({
67
67
  linkType: {
68
68
  type: String,
69
69
  default: () => defProps.noticeBar.linkType
70
- }
70
+ },
71
+ justifyContent: {
72
+ type: String,
73
+ default: () => defProps.noticeBar.justifyContent
74
+ },
71
75
  }
72
76
  })
@@ -17,6 +17,7 @@
17
17
  :disable-touch="disableTouch"
18
18
  :fontSize="fontSize"
19
19
  :duration="duration"
20
+ :justifyContent="justifyContent"
20
21
  @close="close"
21
22
  @click="click"
22
23
  ></u-column-notice>
@@ -5,6 +5,7 @@
5
5
  :duration="duration"
6
6
  :custom-style="overlayStyle"
7
7
  @click="clickHandler"
8
+ @touchmove.stop.prevent="noop"
8
9
  >
9
10
  <slot />
10
11
  </u-transition>
@@ -20,7 +20,7 @@
20
20
  <view
21
21
  class="u-popup__content"
22
22
  :style="[contentStyle]"
23
- @tap.stop="noop"
23
+ @touchmove.stop.prevent="noop"
24
24
  >
25
25
  <u-status-bar v-if="safeAreaInsetTop"></u-status-bar>
26
26
  <slot></slot>
@@ -20,15 +20,18 @@
20
20
  />
21
21
  </slot>
22
22
  </view>
23
- <text
24
- class="u-radio__text"
25
- @tap.stop="labelClickHandler"
26
- :style="{
27
- color: elDisabled ? elInactiveColor : elLabelColor,
28
- fontSize: elLabelSize,
29
- lineHeight: elLabelSize
30
- }"
31
- >{{label}}</text>
23
+ <view class="u-radio__label-wrap cursor-pointer" @tap.stop="labelClickHandler">
24
+ <slot name="label" :label="label" :elDisabled="elDisabled">
25
+ <text
26
+ class="u-radio__text"
27
+ :style="{
28
+ color: elDisabled ? elInactiveColor : elLabelColor,
29
+ fontSize: elLabelSize,
30
+ lineHeight: elLabelSize
31
+ }"
32
+ >{{label}}</text>
33
+ </slot>
34
+ </view>
32
35
  </view>
33
36
  </template>
34
37
 
@@ -166,6 +166,10 @@
166
166
  // #ifndef APP-NVUE
167
167
  this.$uGetRect('.u-slider__base').then(rect => {
168
168
  this.sliderRect = rect;
169
+ // console.log('sliderRect', this.sliderRect)
170
+ if (this.sliderRect.width == 0) {
171
+ console.info('如在弹窗等元素中使用,请使用v-if来显示滑块,否则无法计算长度。')
172
+ }
169
173
  this.init()
170
174
  });
171
175
  // #endif
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.49",
5
+ "version": "3.3.52",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
@@ -11,7 +11,8 @@
11
11
  "ui",
12
12
  "uni-app",
13
13
  "uni-app",
14
- "ui"
14
+ "ui",
15
+ "可视化设计"
15
16
  ],
16
17
  "main": "index.js",
17
18
  "repository": "https://github.com/ijry/uview-plus",
@@ -53,9 +54,11 @@
53
54
  "vue3": "y"
54
55
  },
55
56
  "App": {
56
- "app-vue": "y",
57
- "app-nvue": "y"
58
- },
57
+ "app-vue": "y",
58
+ "app-nvue": "y",
59
+ "app-harmony": "u",
60
+ "app-uvue": "u"
61
+ },
59
62
  "H5-mobile": {
60
63
  "Safari": "y",
61
64
  "Android Browser": "y",