|
@@ -102,7 +102,7 @@ import beautifier from 'js-beautify'
|
|
|
import logo from '@/assets/logo/logo.png'
|
|
import logo from '@/assets/logo/logo.png'
|
|
|
import { inputComponents, selectComponents, layoutComponents, formConf as formConfData } from '@/utils/generator/config'
|
|
import { inputComponents, selectComponents, layoutComponents, formConf as formConfData } from '@/utils/generator/config'
|
|
|
import { beautifierConf } from '@/utils/index'
|
|
import { beautifierConf } from '@/utils/index'
|
|
|
-import drawingDefalut from '@/utils/generator/drawingDefalut'
|
|
|
|
|
|
|
+import { drawingDefaultValue, initDrawingDefaultValue, cleanDrawingDefaultValue } from '@/utils/generator/drawingDefault'
|
|
|
import { makeUpHtml, vueTemplate, vueScript, cssStyle } from '@/utils/generator/html'
|
|
import { makeUpHtml, vueTemplate, vueScript, cssStyle } from '@/utils/generator/html'
|
|
|
import { makeUpJs } from '@/utils/generator/js'
|
|
import { makeUpJs } from '@/utils/generator/js'
|
|
|
import { makeUpCss } from '@/utils/generator/css'
|
|
import { makeUpCss } from '@/utils/generator/css'
|
|
@@ -113,14 +113,16 @@ import RightPanel from './RightPanel'
|
|
|
import CodeTypeDialog from './CodeTypeDialog'
|
|
import CodeTypeDialog from './CodeTypeDialog'
|
|
|
import { onMounted, watch } from 'vue'
|
|
import { onMounted, watch } from 'vue'
|
|
|
|
|
|
|
|
-const drawingList = ref(drawingDefalut)
|
|
|
|
|
|
|
+initDrawingDefaultValue()
|
|
|
|
|
+
|
|
|
|
|
+const drawingList = ref(drawingDefaultValue)
|
|
|
const { proxy } = getCurrentInstance()
|
|
const { proxy } = getCurrentInstance()
|
|
|
const dialogVisible = ref(false)
|
|
const dialogVisible = ref(false)
|
|
|
const showFileName = ref(false)
|
|
const showFileName = ref(false)
|
|
|
const operationType = ref('')
|
|
const operationType = ref('')
|
|
|
const idGlobal = ref(100)
|
|
const idGlobal = ref(100)
|
|
|
-const activeData = ref(drawingDefalut[0])
|
|
|
|
|
-const activeId = ref(drawingDefalut[0].formId)
|
|
|
|
|
|
|
+const activeData = ref(drawingDefaultValue[0])
|
|
|
|
|
+const activeId = ref(drawingDefaultValue[0].formId)
|
|
|
const generateConf = ref(null)
|
|
const generateConf = ref(null)
|
|
|
const formData = ref({})
|
|
const formData = ref({})
|
|
|
const formConf = ref(formConfData)
|
|
const formConf = ref(formConfData)
|
|
@@ -145,6 +147,7 @@ function empty() {
|
|
|
proxy.$modal.confirm('确定要清空所有组件吗?', '提示', { type: 'warning' }).then(() => {
|
|
proxy.$modal.confirm('确定要清空所有组件吗?', '提示', { type: 'warning' }).then(() => {
|
|
|
idGlobal.value = 100
|
|
idGlobal.value = 100
|
|
|
drawingList.value = []
|
|
drawingList.value = []
|
|
|
|
|
+ cleanDrawingDefaultValue()
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|