feat:预览弹出
This commit is contained in:
parent
6a0c34dcb5
commit
ea7efe5608
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="bg">
|
||||
<div class="canvas-container">
|
||||
<div id="preview-parent" class="canvas-container">
|
||||
<div
|
||||
class="canvas"
|
||||
:style="{
|
||||
@ -40,6 +40,9 @@ export default {
|
||||
'componentData',
|
||||
'canvasStyleData'
|
||||
]),
|
||||
mounted() {
|
||||
// 计算组件当前合适宽度
|
||||
},
|
||||
methods: {
|
||||
changeStyleWithScale,
|
||||
|
||||
|
||||
@ -40,13 +40,14 @@
|
||||
</div>
|
||||
|
||||
<!-- 预览 -->
|
||||
<!-- <Preview v-model="isShowPreview" @change="handlePreviewChange" />-->
|
||||
<PreviewEject v-model="isShowPreview" @change="handlePreviewChange" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import generateID from '@/components/canvas/utils/generateID'
|
||||
import toast from '@/components/canvas/utils/toast'
|
||||
import PreviewEject from '@/components/canvas/components/Editor/PreviewEject'
|
||||
import { mapState } from 'vuex'
|
||||
import { commonStyle, commonAttr } from '@/components/canvas/custom-component/component-list'
|
||||
import eventBus from '@/components/canvas/utils/eventBus'
|
||||
@ -55,6 +56,7 @@ import { post } from '@/api/panel/panel'
|
||||
import bus from '@/utils/bus'
|
||||
|
||||
export default {
|
||||
components: { PreviewEject },
|
||||
data() {
|
||||
return {
|
||||
isShowPreview: false,
|
||||
@ -121,7 +123,8 @@ export default {
|
||||
...this.canvasStyleData,
|
||||
scale: this.scale
|
||||
})
|
||||
}, 500)
|
||||
eventBus.$emit('resizing', '')
|
||||
}, 1000)
|
||||
},
|
||||
|
||||
lock() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user