|
|
@ -36,6 +36,7 @@
|
|
|
|
<div class="right-box">
|
|
|
|
<div class="right-box">
|
|
|
|
<div class="toolbar">
|
|
|
|
<div class="toolbar">
|
|
|
|
<el-button type="primary" :icon="View" @click="viewForm">预览</el-button>
|
|
|
|
<el-button type="primary" :icon="View" @click="viewForm">预览</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" :icon="View" @click="exportFile">导出</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<nested-draggable :tasks="widgetList" style="height: 100%;" :formData="formData" />
|
|
|
|
<nested-draggable :tasks="widgetList" style="height: 100%;" :formData="formData" />
|
|
|
@ -71,6 +72,7 @@ import { v4 as getUuid } from 'uuid';
|
|
|
|
import nestedDraggable from './nest.vue';
|
|
|
|
import nestedDraggable from './nest.vue';
|
|
|
|
import elementMini from './element-mini.vue';
|
|
|
|
import elementMini from './element-mini.vue';
|
|
|
|
import formBoard from './formBoard.vue';
|
|
|
|
import formBoard from './formBoard.vue';
|
|
|
|
|
|
|
|
import { exportConfig } from '@/views/tool/draggable/exportConfig';
|
|
|
|
|
|
|
|
|
|
|
|
interface type {
|
|
|
|
interface type {
|
|
|
|
name: string,
|
|
|
|
name: string,
|
|
|
@ -214,6 +216,10 @@ const addElement = (e) => {
|
|
|
|
const viewForm = () => {
|
|
|
|
const viewForm = () => {
|
|
|
|
viewDialogVisible.value = true;
|
|
|
|
viewDialogVisible.value = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const exportFile = () => {
|
|
|
|
|
|
|
|
let data = exportConfig(widgetList.value);
|
|
|
|
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
.model {
|
|
|
|
.model {
|
|
|
@ -259,13 +265,14 @@ const viewForm = () => {
|
|
|
|
.option-box {
|
|
|
|
.option-box {
|
|
|
|
width: 400px;
|
|
|
|
width: 400px;
|
|
|
|
display: inline-block;
|
|
|
|
display: inline-block;
|
|
|
|
//user-select: none;
|
|
|
|
|
|
|
|
vertical-align: top;
|
|
|
|
vertical-align: top;
|
|
|
|
margin: 8px;
|
|
|
|
margin: 8px;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
min-height: 100px;
|
|
|
|
min-height: 100px;
|
|
|
|
|
|
|
|
//user-select: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//user-select: none;
|
|
|
|
.dataBox {
|
|
|
|
.dataBox {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
display: inline-block;
|
|
|
|