uview-plus 3.4.14 → 3.4.15
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 +10 -0
- package/components/u-dropdown/u-dropdown.vue +8 -7
- package/components/u-modal/modal.js +2 -1
- package/components/u-modal/props.js +5 -0
- package/components/u-modal/u-modal.vue +8 -3
- package/components/u-picker-data/u-picker-data.vue +1 -1
- package/components/u-sticky/u-sticky.vue +5 -0
- package/components/u-swiper/u-swiper.vue +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
</view>
|
|
21
21
|
</view>
|
|
22
22
|
<view class="u-dropdown__content" :style="[contentStyle, {
|
|
23
|
-
transition: `opacity ${duration / 1000}s linear`,
|
|
23
|
+
transition: `opacity ${duration / 1000}s, z-index ${duration / 1000}s linear`,
|
|
24
24
|
top: addUnit(height)
|
|
25
25
|
}]"
|
|
26
26
|
@tap="maskClick" @touchmove.stop.prevent>
|
|
27
|
-
<view @tap.stop.prevent class="u-dropdown__content__popup" :style="[popupStyle
|
|
27
|
+
<view @tap.stop.prevent class="u-dropdown__content__popup" :style="[popupStyle, {
|
|
28
|
+
}]">
|
|
28
29
|
<slot></slot>
|
|
29
30
|
</view>
|
|
30
31
|
<view class="u-dropdown__content__mask"></view>
|
|
@@ -147,11 +148,11 @@
|
|
|
147
148
|
this.active = false;
|
|
148
149
|
this.current = 99999;
|
|
149
150
|
// 下拉内容的样式进行调整,不透明度设置为0
|
|
150
|
-
this.contentStyle =
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
height
|
|
154
|
-
}
|
|
151
|
+
this.contentStyle.zIndex = -1;
|
|
152
|
+
this.contentStyle.opacity = 0;
|
|
153
|
+
setTimeout(() => {
|
|
154
|
+
this.contentStyle.height = 0;
|
|
155
|
+
}, this.duration)
|
|
155
156
|
},
|
|
156
157
|
// 点击遮罩
|
|
157
158
|
maskClick() {
|
|
@@ -26,9 +26,7 @@
|
|
|
26
26
|
>{{ title }}</view>
|
|
27
27
|
<view
|
|
28
28
|
class="u-modal__content"
|
|
29
|
-
:style="
|
|
30
|
-
paddingTop: `${title ? 12 : 25}px`
|
|
31
|
-
}"
|
|
29
|
+
:style="contentStyleCpu"
|
|
32
30
|
>
|
|
33
31
|
<slot>
|
|
34
32
|
<text class="u-modal__content__text" :style="{textAlign: contentTextAlign}">
|
|
@@ -138,6 +136,13 @@
|
|
|
138
136
|
}
|
|
139
137
|
},
|
|
140
138
|
emits: ["confirm", "cancel", "close", "update:show", 'cancelOnAsync'],
|
|
139
|
+
computed: {
|
|
140
|
+
contentStyleCpu() {
|
|
141
|
+
let style = this.contentStyle;
|
|
142
|
+
style.paddingTop = `${title ? 12 : 25}px`
|
|
143
|
+
return style;
|
|
144
|
+
}
|
|
145
|
+
},
|
|
141
146
|
methods: {
|
|
142
147
|
addUnit,
|
|
143
148
|
// 点击确定按钮
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
:previousMargin="addUnit(previousMargin)"
|
|
31
31
|
:nextMargin="addUnit(nextMargin)"
|
|
32
32
|
:acceleration="acceleration"
|
|
33
|
-
:displayMultipleItems="displayMultipleItems"
|
|
33
|
+
:displayMultipleItems="list.length > 0 ? displayMultipleItems : 0"
|
|
34
34
|
:easingFunction="easingFunction"
|
|
35
35
|
>
|
|
36
36
|
<swiper-item
|
package/package.json
CHANGED