mobile-workflow/components/previewIframe.vue

38 lines
565 B
Vue
Raw Normal View History

2025-03-26 17:51:01 +08:00
<template>
<view>
<uni-icons @click="onClick" class="backImg" type="close" size="24"></uni-icons>
<iframe class="iframe" :src="iframeUrl"></iframe>
</view>
</template>
<script>
export default {
props:['iframeUrl'],
data() {
return {
mobileTopHeight: 0
};
},
mounted() {
},
methods:{
onClick() {
console.log('点击了');
this.$emit('watchChild');
}
}
}
</script>
<style lang="scss" scoped>
.iframe {
width: 100vw;
height: 100vh;
}
.backImg {
position: absolute;
right: 20px;
top: 16px;
}
</style>