uview-plus 3.5.2 → 3.5.5

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.5.5(2025-08-21)
2
+ feat: popup弹窗及canlendar组件支持页面内插入无弹窗模式
3
+
4
+ ## 3.5.4(2025-08-21)
5
+ feat: popup弹窗及canlendar组件支持页面内插入无弹窗模式
6
+
7
+ ## 3.5.3(2025-08-21)
8
+ fix: 修复下拉刷新多语言key
9
+
1
10
  ## 3.5.2(2025-08-20)
2
11
  fix: 修复非cli模式下引入的三方库报An error occurred while trying to read the map file错误
3
12
 
@@ -42,6 +42,7 @@ export default {
42
42
  weekText: [t("up.week.one"), t("up.week.two"), t("up.week.three"), t("up.week.four"), t("up.week.five"), t("up.week.six"), t("up.week.seven")],
43
43
  forbidDays: [],
44
44
  forbidDaysToast: t("up.calendar.disabled"),
45
- monthFormat: ''
45
+ monthFormat: '',
46
+ pageInline: false
46
47
  }
47
48
  }
@@ -159,6 +159,11 @@ export const props = defineMixin({
159
159
  monthFormat:{
160
160
  type: String,
161
161
  default: defProps.calendar.monthFormat
162
+ },
163
+ // 是否页面内展示
164
+ pageInline:{
165
+ type: Boolean,
166
+ default: defProps.calendar.pageInline
162
167
  }
163
168
  }
164
169
  })
@@ -2,9 +2,10 @@
2
2
  <u-popup
3
3
  :show="show"
4
4
  mode="bottom"
5
- closeable
5
+ :closeable="!pageInline"
6
6
  @close="close"
7
7
  :round="round"
8
+ :pageInline="pageInline"
8
9
  :closeOnClickOverlay="closeOnClickOverlay"
9
10
  >
10
11
  <view class="u-calendar">
@@ -249,7 +250,13 @@ export default {
249
250
  return error('maxDate不能小于minDate时间')
250
251
  }
251
252
  // 滚动区域的高度
252
- this.listHeight = this.rowHeight * 5 + 30
253
+ let bottomPadding = 0;
254
+ if (this.pageInline) {
255
+ bottomPadding = 0
256
+ } else {
257
+ bottomPadding = 30
258
+ }
259
+ this.listHeight = this.rowHeight * 5 + bottomPadding
253
260
  this.setMonth()
254
261
  },
255
262
  close() {
@@ -24,6 +24,7 @@ export default {
24
24
  round: 0,
25
25
  zoom: true,
26
26
  bgColor: '',
27
- overlayOpacity: 0.5
27
+ overlayOpacity: 0.5,
28
+ pageInline: false
28
29
  }
29
30
  }
@@ -76,6 +76,11 @@ export const props = defineMixin({
76
76
  overlayOpacity: {
77
77
  type: [Number, String],
78
78
  default: () => defProps.popup.overlayOpacity
79
- }
79
+ },
80
+ // 是否页面内展示
81
+ pageInline:{
82
+ type: Boolean,
83
+ default: defProps.popup.pageInline
84
+ },
80
85
  }
81
86
  })
@@ -9,7 +9,7 @@
9
9
  class="u-popup__trigger__cover"></view>
10
10
  </view>
11
11
  <u-overlay
12
- :show="show"
12
+ :show="show && pageInline == false"
13
13
  @click="overlayClick"
14
14
  v-if="overlay"
15
15
  :zIndex="zIndex"
@@ -20,7 +20,7 @@
20
20
  <u-transition
21
21
  :show="show"
22
22
  :customStyle="transitionStyle"
23
- :mode="position"
23
+ :mode="pageInline ? 'none' : position"
24
24
  :duration="duration"
25
25
  @afterEnter="afterEnter"
26
26
  @click="clickHandler"
@@ -107,10 +107,12 @@
107
107
  computed: {
108
108
  transitionStyle() {
109
109
  const style = {
110
- zIndex: this.zIndex,
111
- position: 'fixed',
112
110
  display: 'flex',
113
111
  }
112
+ if (!this.pageInline) {
113
+ style.zIndex = this.zIndex
114
+ style.position = 'fixed'
115
+ }
114
116
  style[this.mode] = 0
115
117
  if (this.mode === 'left') {
116
118
  return deepMerge(style, {
@@ -24,7 +24,7 @@
24
24
  <view class="refresh-indicator">
25
25
  <up-icon name="arrow-downward" size="26px"></up-icon>
26
26
  </view>
27
- <text class="refresh-text">{{ t("up.pullRefresh.pullRefresh") }}</text>
27
+ <text class="refresh-text">{{ t("up.pullRefresh.pull") }}</text>
28
28
  </view>
29
29
  </slot>
30
30
 
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.5.2",
5
+ "version": "3.5.5",
6
6
  "description": "零云®uview-plus已兼容vue3支持多语言,100+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。",
7
7
  "keywords": [
8
8
  "uview",