...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
<div v-transfer-dom :data-transfer="transfer">
|
|
|
<transition name="action-sheet-fade">
|
|
|
<div class="yoho-popup" :class="actionCls" v-show="isVisible" :style="{'z-index': zIndex}">
|
|
|
<div class="yoho-popup-mask" @click="maskClick"></div>
|
|
|
<div class="yoho-popup-mask" @click="maskClick" v-if="mask"></div>
|
|
|
<div class="yoho-popup-container">
|
|
|
<div class="yoho-popup-content">
|
|
|
<transition name="action-sheet-move">
|
...
|
...
|
@@ -25,10 +25,14 @@ export default { |
|
|
type: Boolean,
|
|
|
default: true
|
|
|
},
|
|
|
mask: {
|
|
|
type: Boolean,
|
|
|
default: true
|
|
|
},
|
|
|
transfer: Boolean,
|
|
|
zIndex: {
|
|
|
type: Number,
|
|
|
default: 5
|
|
|
default: 100
|
|
|
},
|
|
|
visible: {
|
|
|
type: Boolean,
|
...
|
...
|
@@ -85,12 +89,11 @@ export default { |
|
|
<style lang="scss" scoped>
|
|
|
.action-sheet-fade-enter,
|
|
|
.action-sheet-fade-leave-active {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
|
|
|
.action-sheet-fade-enter-active,
|
|
|
.action-sheet-fade-leave-active {
|
|
|
transition: all 0.7s ease-in-out;
|
|
|
transition: all 0.3s ease-in-out;
|
|
|
}
|
|
|
|
|
|
.action-sheet-move-enter,
|
...
|
...
|
@@ -100,7 +103,7 @@ export default { |
|
|
|
|
|
.action-sheet-move-enter-active,
|
|
|
.action-sheet-move-leave-active {
|
|
|
transition: all 0.7s ease-in-out;
|
|
|
transition: all 0.3s ease-in-out;
|
|
|
}
|
|
|
|
|
|
.yoho-popup {
|
...
|
...
|
@@ -109,7 +112,7 @@ export default { |
|
|
right: 0;
|
|
|
top: 0;
|
|
|
bottom: 0;
|
|
|
z-index: 5;
|
|
|
z-index: 100;
|
|
|
|
|
|
.yoho-popup-mask {
|
|
|
display: block;
|
...
|
...
|
@@ -117,7 +120,7 @@ export default { |
|
|
|
|
|
.yoho-popup-mask,
|
|
|
.yoho-popup-container {
|
|
|
background-color: #fff;
|
|
|
background-color: rgba(0, 0, 0, 0);
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
...
|
...
|
|