提交 0245bab7 编写于 作者: Q qiang

update: transition

上级 a9a4b5ae
......@@ -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"
......@@ -34,10 +34,10 @@
<script>
export default {
name: 'ActionSheet',
props: {
title: {
type: String,
default: ''
props: {
title: {
type: String,
default: ''
},
itemList: {
type: Array,
......@@ -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 {
......@@ -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;
......
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册