Skip to content

Commit f0f14dc

Browse files
committed
fix(rn): tip bug修复
zindex & transform 玄学问题
1 parent 1645b94 commit f0f14dc

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

packages/mpx-cube-ui/lib/components/tip/css.rn.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
font-size $var(font-size-xs)
1111
color $var(tip-color)
1212
transform scale(0)
13+
opacity 0
14+
border-radius $var(tip-border-radius)
1315
.cube-tip-angle-wapper
1416
position absolute
1517
z-index: 2

packages/mpx-cube-ui/lib/components/tip/rn-mixin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if (__mpx_mode__ === 'ios' || __mpx_mode__ === 'android') {
2222
timingFunction: 'ease'
2323
}));
2424
if (newV) {
25+
animation.opacity(1).step({ duration: 0 });
2526
animation.scale(1.1).step({ duration: 200 });
2627
animation.scale(1).step({ duration: 200 });
2728
}

packages/mpx-cube-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mpxjs/mpx-cube-ui",
3-
"version": "1.3.12-beta.7",
3+
"version": "1.3.12-beta.9",
44
"description": "mpx components library",
55
"author": "xiaolei <[email protected]>",
66
"publishConfig": {

packages/mpx-cube-ui/src/components/tip/css.rn.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
font-size $var(font-size-xs)
1111
color $var(tip-color)
1212
transform scale(0)
13+
opacity 0
14+
border-radius $var(tip-border-radius)
1315
.cube-tip-angle-wapper
1416
position absolute
1517
z-index: 2

packages/mpx-cube-ui/src/components/tip/rn-mixin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if (__mpx_mode__ === 'ios' || __mpx_mode__ === 'android') {
2323
timingFunction: 'ease'
2424
}))
2525
if (newV) {
26+
animation.opacity(1).step({ duration: 0 })
2627
animation.scale(1.1).step({ duration: 200 })
2728
animation.scale(1).step({ duration: 200 })
2829
} else {

0 commit comments

Comments
 (0)