Skip to content

Commit d77ba37

Browse files
committed
fix: tansition组件受其他变量影响自动隐藏的bug
1 parent 0f1448f commit d77ba37

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: uni_modules/uni-transition/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.3.3(2024-04-23)
2+
- 修复 当元素会受变量影响自动隐藏的bug
13
## 1.3.2(2023-05-04)
24
- 修复 NVUE 平台报错的问题
35
## 1.3.1(2021-11-23)

Diff for: uni_modules/uni-transition/components/uni-transition/uni-transition.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default {
254254
},
255255
animationType(type) {
256256
return {
257-
fade: type ? 1 : 0,
257+
fade: type ? 0 : 1,
258258
'slide-top': `translateY(${type ? '0' : '-100%'})`,
259259
'slide-right': `translateX(${type ? '0' : '100%'})`,
260260
'slide-bottom': `translateY(${type ? '0' : '100%'})`,

Diff for: uni_modules/uni-transition/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-transition",
33
"displayName": "uni-transition 过渡动画",
4-
"version": "1.3.2",
4+
"version": "1.3.3",
55
"description": "元素的简单过渡动画",
66
"keywords": [
77
"uni-ui",
@@ -43,7 +43,8 @@
4343
"platforms": {
4444
"cloud": {
4545
"tcb": "y",
46-
"aliyun": "y"
46+
"aliyun": "y",
47+
"alipay": "n"
4748
},
4849
"client": {
4950
"App": {

0 commit comments

Comments
 (0)