| | |
| | | let someSpanIsNot24
|
| | |
|
| | | export function dialogWrapper(str) {
|
| | | return `<el-dialog v-bind="$attrs" v-on="$listeners" @open="onOpen" @close="onClose" title="Dialog Titile">
|
| | | return `<el-dialog v-bind="$attrs" v-on="$listeners" @open="onOpen" @close="onClose" title="Dialog Title"> |
| | | ${str}
|
| | | <div slot="footer">
|
| | | <el-button @click="close">取消</el-button>
|
| | | <el-button type="primary" @click="handelConfirm">确定</el-button>
|
| | | <el-button type="primary" @click="handleConfirm">确定</el-button> |
| | | </div>
|
| | | </el-dialog>`
|
| | | }
|
| | |
| | | close: `close() {
|
| | | this.$emit('update:visible', false)
|
| | | },`,
|
| | | handelConfirm: `handelConfirm() {
|
| | | handleConfirm: `handleConfirm() { |
| | | this.$refs['${confGlobal.formRef}'].validate(valid => {
|
| | | if(!valid) return
|
| | | this.close()
|
| | |
| | | <el-button @click="close">
|
| | | 取消
|
| | | </el-button>
|
| | | <el-button type="primary" @click="handelConfirm">
|
| | | <el-button type="primary" @click="handleConfirm"> |
| | | 确定
|
| | | </el-button>
|
| | | </div>
|
| | |
| | | close(e) {
|
| | | this.$emit('update:visible', false)
|
| | | },
|
| | | handelConfirm() {
|
| | | handleConfirm() { |
| | | this.$refs.elForm.validate(valid => {
|
| | | if (!valid) return
|
| | | this.$emit('confirm', { ...this.formData })
|
| | |
| | | <div slot="footer">
|
| | | <el-button
|
| | | type="primary"
|
| | | @click="handelConfirm"
|
| | | @click="handleConfirm" |
| | | >
|
| | | 确定
|
| | | </el-button>
|
| | |
| | | close() {
|
| | | this.$emit('update:visible', false)
|
| | | },
|
| | | handelConfirm() {
|
| | | handleConfirm() { |
| | | this.$refs.elForm.validate(valid => {
|
| | | if (!valid) return
|
| | | if (this.dataType === 'number') {
|
| | |
| | | import { makeUpHtml, vueTemplate, vueScript, cssStyle } from '@/utils/generator/html'
|
| | | import { makeUpJs } from '@/utils/generator/js'
|
| | | import { makeUpCss } from '@/utils/generator/css'
|
| | | import drawingDefalut from '@/utils/generator/drawingDefalut'
|
| | | import drawingDefault from '@/utils/generator/drawingDefault' |
| | | import logo from '@/assets/logo/logo.png'
|
| | | import CodeTypeDialog from './CodeTypeDialog'
|
| | | import DraggableItem from './DraggableItem'
|
| | |
| | | selectComponents,
|
| | | layoutComponents,
|
| | | labelWidth: 100,
|
| | | drawingList: drawingDefalut,
|
| | | drawingList: drawingDefault, |
| | | drawingData: {},
|
| | | activeId: drawingDefalut[0].formId,
|
| | | activeId: drawingDefault[0].formId, |
| | | drawerVisible: false,
|
| | | formData: {},
|
| | | dialogVisible: false,
|
| | | generateConf: null,
|
| | | showFileName: false,
|
| | | activeData: drawingDefalut[0]
|
| | | activeData: drawingDefault[0] |
| | | }
|
| | | },
|
| | | created() {
|