Skip to content

Commit

Permalink
update: transition
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Jul 12, 2019
1 parent a9a4b5a commit 0245bab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
25 changes: 12 additions & 13 deletions src/platforms/h5/components/app/popup/actionSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
</transition>
<div
:class="{'uni-actionsheet_toggle':visible}"
class="uni-actionsheet">
class="uni-actionsheet">

<div class="uni-actionsheet__menu">
<div
v-if="title"
class="uni-actionsheet__title"
<div class="uni-actionsheet__menu">
<div
v-if="title"
class="uni-actionsheet__title"
>{{ title }}</div>
<div
v-for="(title,index) in itemList"
Expand All @@ -34,10 +34,10 @@
<script>
export default {
name: 'ActionSheet',
props: {
title: {
type: String,
default: ''
props: {
title: {
type: String,
default: ''
},
itemList: {
type: Array,
Expand Down Expand Up @@ -77,8 +77,7 @@ export default {
width: 100%;
background-color: #efeff4;
visibility: hidden;
transition-property: transform, visibility;
transition-duration: 0.3s, 0.3s;
transition: transform 0.3s, visibility 0.3s;
}
uni-actionsheet .uni-actionsheet.uni-actionsheet_toggle {
Expand All @@ -99,13 +98,13 @@ export default {
background-color: #fcfcfd;
}
uni-actionsheet .uni-actionsheet__cell ,
uni-actionsheet .uni-actionsheet__cell ,
uni-actionsheet .uni-actionsheet__title {
position: relative;
padding: 10px 0;
text-align: center;
font-size: 18px;
}
}
uni-actionsheet .uni-actionsheet__cell:before {
content: " ";
position: absolute;
Expand Down
3 changes: 1 addition & 2 deletions src/platforms/h5/components/app/popup/picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,7 @@ uni-picker .uni-picker {
width: 100%;
background-color: #efeff4;
visibility: hidden;
transition-property: transform,visibility;
transition-duration: 0.3s, 0.3s;
transition: transform 0.3s, visibility 0.3s;
}
uni-picker .uni-picker.uni-picker-toggle {
Expand Down

0 comments on commit 0245bab

Please sign in to comment.