Skip to content

Commit 49e2406

Browse files
committed
chore: 对齐master
1 parent 179c497 commit 49e2406

File tree

6 files changed

+15
-18
lines changed

6 files changed

+15
-18
lines changed

packages/mpx-cube-ui/src/common/stylus/theme/components/popup.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ $popup-mask-opacity := 0.4 // 遮罩透明度
55
$popup-default-animation-time := 0.3s // 默认动画时间
66
$popup-default-animation-fn := ease // 默认动画函数
77

8-
$popup-mask-transition := opacity 0.3s ease // 遮罩过渡
9-
$popup-mask-hide-transition := opacity 0.3s ease // 遮罩隐藏过渡
8+
$popup-mask-transition := opacity 0.2s ease // 遮罩过渡
9+
$popup-mask-hide-transition := opacity 0.2s ease // 遮罩隐藏过渡
1010
$popup-default-hide-animation-fn := ease // 默认隐藏动画函数

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
margin-top $var(dialog-head-icon-margin-top)
2828
border-radius-all($var(dialog-head-icon-border-top-left-radius), $var(dialog-head-icon-border-top-right-radius), $var(dialog-head-icon-border-bottom-right-radius), $var(dialog-head-icon-border-bottom-left-radius))
2929

30-
.cube-dialog-container
31-
width 100%
32-
3330
.cube-dialog-confirm
3431
position relative
3532
overflow hidden

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
background-color $var(mask-bgc_opacity)
4444
opacity 0
4545

46-
.cube-popup-move-up
46+
.move-up
4747
transform translateY(999)
4848
.move-left
4949
transform translateX(999)

packages/mpx-cube-ui/src/components/popup/css.styl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@
7070
.cube-popup-mask
7171
opacity $var(popup-mask-opacity)
7272
.cube-popup-content
73-
&.cube-popup-move-up
73+
&.move-up
7474
popup-transition(popup-move-up-show, $var(popup-default-animation-time), $var(popup-default-animation-fn))
75-
&.cube-popup-move-right
75+
&.move-right
7676
popup-transition(popup-move-right-show)
77-
&.cube-popup-move-left
77+
&.move-left
7878
popup-transition(popup-move-left-show)
79-
&.cube-popup-move-down
79+
&.move-down
8080
popup-transition(popup-move-down-show)
8181
&.move-center
8282
popup-transition(popup-move-center-show)
@@ -93,13 +93,13 @@
9393
.cube-popup-mask
9494
transition: $var(popup-mask-hide-transition)
9595
.cube-popup-content
96-
&.cube-popup-move-up
96+
&.move-up
9797
popup-transition(popup-move-up-hide, $var(popup-default-animation-time), $var(popup-default-hide-animation-fn))
98-
&.cube-popup-move-right
98+
&.move-right
9999
popup-transition(popup-move-right-hide)
100-
&.cube-popup-move-left
100+
&.move-left
101101
popup-transition(popup-move-left-hide)
102-
&.cube-popup-move-down
102+
&.move-down
103103
popup-transition(popup-move-down-hide)
104104
&.move-center
105105
popup-transition(popup-move-center-hide)

packages/mpx-cube-ui/src/components/popup/index.mpx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
</view>
6565
<view
6666
wx:ref="popup-content"
67-
class="cube-popup-content {{ transition ? `cube-popup-${transition}` : '' }}"
68-
wx:style="{{ styleConfig.content }}"
67+
class="cube-popup-content {{ transition }}"
68+
wx:style="{{ [styleConfig.content, contentTranslateStyle] }}"
6969
animation="{{ animationData }}">
7070
<slot></slot>
7171
</view>

packages/mpx-cube-ui/src/components/popup/popup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ createComponent({
139139
this.isVisible = true
140140
this.display = true
141141
this.visibleClass = 'show'
142-
this.transitionClass = this.transition ? `cube-popup-${this.transition}` : ''
142+
this.transitionClass = this.transition
143143
},
144144
hide() {
145145
this.isVisible = false
146146
this.visibleClass = 'hide'
147-
this.transitionClass = this.transition ? `cube-popup-${this.transition}` : ''
147+
this.transitionClass = this.transition
148148
}
149149
}
150150
})

0 commit comments

Comments
 (0)