uview-plus 3.4.10 → 3.4.12
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,11 @@
|
|
|
1
|
+
## 3.4.12(2025-04-02)
|
|
2
|
+
fix: dropdown关闭后遮挡页面内容 #653
|
|
3
|
+
|
|
4
|
+
fix u-sticky.vue Uncaught TypeError: e.querySelector is not a function at uni-app-view.umd.js
|
|
5
|
+
|
|
6
|
+
## 3.4.11(2025-03-31)
|
|
7
|
+
fix: 优化upload组件预览视频的弹窗占位
|
|
8
|
+
|
|
1
9
|
## 3.4.10(2025-03-28)
|
|
2
10
|
feat: select组件新增多个props属性及优化
|
|
3
11
|
|
|
@@ -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
|
})
|
|
@@ -125,19 +125,6 @@
|
|
|
125
125
|
</view>
|
|
126
126
|
</slot>
|
|
127
127
|
</view>
|
|
128
|
-
<up-popup
|
|
129
|
-
mode="center"
|
|
130
|
-
v-model:show="popupShow">
|
|
131
|
-
<video id="myVideo"
|
|
132
|
-
:src="currentItemIndex >= 0 ? lists[currentItemIndex].url : ''"
|
|
133
|
-
@error="videoErrorCallback" show-center-play-btn
|
|
134
|
-
object-fit='cover' show-fullscreen-btn='true'
|
|
135
|
-
enable-play-gesture controls
|
|
136
|
-
:autoplay="true" auto-pause-if-open-native
|
|
137
|
-
@loadedmetadata="loadedVideoMetadata"
|
|
138
|
-
:initial-time='0.1'>
|
|
139
|
-
</video>
|
|
140
|
-
</up-popup>
|
|
141
128
|
</template>
|
|
142
129
|
<canvas id="myCanvas" type="2d"
|
|
143
130
|
style="width: 100px; height: 150px;display: none;"></canvas>
|
|
@@ -178,6 +165,19 @@
|
|
|
178
165
|
</view>
|
|
179
166
|
</template>
|
|
180
167
|
</view>
|
|
168
|
+
<up-popup
|
|
169
|
+
mode="center"
|
|
170
|
+
v-model:show="popupShow">
|
|
171
|
+
<video id="myVideo"
|
|
172
|
+
:src="currentItemIndex >= 0 ? lists[currentItemIndex].url : ''"
|
|
173
|
+
@error="videoErrorCallback" show-center-play-btn
|
|
174
|
+
object-fit='cover' show-fullscreen-btn='true'
|
|
175
|
+
enable-play-gesture controls
|
|
176
|
+
:autoplay="true" auto-pause-if-open-native
|
|
177
|
+
@loadedmetadata="loadedVideoMetadata"
|
|
178
|
+
:initial-time='0.1'>
|
|
179
|
+
</video>
|
|
180
|
+
</up-popup>
|
|
181
181
|
</view>
|
|
182
182
|
</template>
|
|
183
183
|
|
|
@@ -124,8 +124,8 @@ export function chooseFile({
|
|
|
124
124
|
fail: reject
|
|
125
125
|
})
|
|
126
126
|
break
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
152
|
+
// #endif
|
|
153
153
|
default:
|
|
154
154
|
// 此为保底选项,在accept不为上面任意一项的时候选取全部文件
|
|
155
155
|
// #ifdef MP-WEIXIN
|
package/package.json
CHANGED