做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當(dāng)前位置: 首頁 - 科技 - 知識(shí)百科 - 正文

vue中簡單彈框dialog的實(shí)現(xiàn)方法

來源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-27 22:18:51
文檔

vue中簡單彈框dialog的實(shí)現(xiàn)方法

vue中簡單彈框dialog的實(shí)現(xiàn)方法:效果如下,dialog中內(nèi)容自行添加 <template> <div> <div class=dialog-wrap> <div class=dialog-cover v-if=isShow @click=closeMyself></div> <transiti
推薦度:
導(dǎo)讀vue中簡單彈框dialog的實(shí)現(xiàn)方法:效果如下,dialog中內(nèi)容自行添加 <template> <div> <div class=dialog-wrap> <div class=dialog-cover v-if=isShow @click=closeMyself></div> <transiti

效果如下,dialog中內(nèi)容自行添加

<template>
 <div>
 <div class="dialog-wrap">
 <div class="dialog-cover" v-if="isShow" @click="closeMyself"></div>
 <transition name="drop">
 <div class="dialog-content" v-if="isShow">
 <p class="dialog-close" @click="closeMyself">x</p>
 <slot>empty</slot>
 </div>
 </transition>
 </div>
 </div>
</template>

接收父組件傳參isShow,并返回一個(gè)自定義事件on-close

<script>
 export default {
 props: {
 isShow: {
 type: Boolean,
 default: false
 }
 },
 data () {
 return {
 }
 },
 methods: {
 closeMyself () {
 this.$emit('on-close')
 }
 }
 }
</script>
<style scoped>
 .drop-enter-active {
 transition: all .5s ease;
 }
 .drop-leave-active {
 transition: all .3s ease;
 }
 .drop-enter {
 transform: translateY(-500px);
 }
 .drop-leave-active {
 transform: translateY(-500px);
 }
 .dialog-wrap {
 position: fixed;
 width: 100%;
 height: 100%;
 }
 .dialog-cover {
 background: #000;
 opacity: .3;
 position: fixed;
 z-index: 5;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 }
 .dialog-content {
 width: 50%;
 position: fixed;
 max-height: 50%;
 overflow: auto;
 background: #fff;
 top: 20%;
 left: 50%;
 margin-left: -25%;
 z-index: 10;
 border: 2px solid #4068;
 padding: 2%;
 line-height: 1.6;
 }
 .dialog-close {
 position: absolute;
 right: 5px;
 top: 5px;
 width: 20px;
 height: 20px;
 text-align: center;
 cursor: pointer;
 }
 .dialog-close:hover {
 color: #4fc08d;
 }
</style>

以上這篇vue中簡單彈框dialog的實(shí)現(xiàn)方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

vue中簡單彈框dialog的實(shí)現(xiàn)方法

vue中簡單彈框dialog的實(shí)現(xiàn)方法:效果如下,dialog中內(nèi)容自行添加 <template> <div> <div class=dialog-wrap> <div class=dialog-cover v-if=isShow @click=closeMyself></div> <transiti
推薦度:
標(biāo)簽: VUE 簡單 實(shí)現(xiàn)
  • 熱門焦點(diǎn)

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 万荣县| 棋牌| 漳州市| 南宁市| 黑水县| 平顺县| 当涂县| 灵川县| 云龙县| 巴楚县| 登封市| 商河县| 淮滨县| 贞丰县| 杂多县| 阿拉善盟| 锦屏县| 嘉鱼县| 涞水县| 筠连县| 嘉黎县| 修水县| 肥城市| 黑山县| 甘孜| 栾川县| 饶河县| 鄂温| 岐山县| 城固县| 南和县| 图片| 阜平县| 阿尔山市| 合作市| 瑞金市| 阜新市| 平山县| 麦盖提县| 苏尼特左旗| 拉萨市|