uview-plus 3.3.50 → 3.3.53

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,12 @@
1
+ ## 3.3.53(2024-12-10)
2
+ fix: 修复popup居中模式点击内容区域触发关闭
3
+
4
+ ## 3.3.52(2024-12-09)
5
+ add: notice-bar支持justifyContent属性
6
+
7
+ ## 3.3.51(2024-12-09)
8
+ add: radio增加label插槽
9
+
1
10
  ## 3.3.50(2024-12-05)
2
11
  fix: 优化popup等对禁止背景滚动机制
3
12
 
@@ -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
  }
@@ -11,7 +11,7 @@
11
11
  :class="iconClasses"
12
12
  :style="[iconWrapStyle]"
13
13
  >
14
- <slot name="icon">
14
+ <slot name="icon" :elIconSize="elIconSize" :elIconColor="elIconColor">
15
15
  <u-icon
16
16
  class="u-checkbox__icon-wrap__icon"
17
17
  name="checkbox-mark"
@@ -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>
@@ -17,9 +17,11 @@
17
17
  @afterEnter="afterEnter"
18
18
  @click="clickHandler"
19
19
  >
20
+ <!-- @click.stop不能去除,去除会导致居中模式下点击内容区域触发关闭弹窗 -->
20
21
  <view
21
22
  class="u-popup__content"
22
23
  :style="[contentStyle]"
24
+ @click.stop="noop"
23
25
  @touchmove.stop.prevent="noop"
24
26
  >
25
27
  <u-status-bar v-if="safeAreaInsetTop"></u-status-bar>
@@ -11,7 +11,7 @@
11
11
  :class="iconClasses"
12
12
  :style="[iconWrapStyle]"
13
13
  >
14
- <slot name="icon">
14
+ <slot name="icon" :elIconSize="elIconSize" :elIconColor="elIconColor">
15
15
  <u-icon
16
16
  class="u-radio__icon-wrap__icon"
17
17
  name="checkbox-mark"
@@ -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
 
@@ -103,7 +103,7 @@
103
103
 
104
104
  // 自动伸缩
105
105
  .u-flex-fill,
106
- .u-flex-fillp {
106
+ .up-flex-fill {
107
107
  flex: 1 1 auto;
108
108
  }
109
109
 
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.50",
5
+ "version": "3.3.53",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",