正在显示
6 个修改的文件
包含
11 行增加
和
11 行删除
| @@ -5,11 +5,11 @@ let confGlobal | @@ -5,11 +5,11 @@ let confGlobal | ||
| 5 | let someSpanIsNot24 | 5 | let someSpanIsNot24 |
| 6 | 6 | ||
| 7 | export function dialogWrapper(str) { | 7 | export function dialogWrapper(str) { |
| 8 | - return `<el-dialog v-bind="$attrs" v-on="$listeners" @open="onOpen" @close="onClose" title="Dialog Titile"> | 8 | + return `<el-dialog v-bind="$attrs" v-on="$listeners" @open="onOpen" @close="onClose" title="Dialog Title"> |
| 9 | ${str} | 9 | ${str} |
| 10 | <div slot="footer"> | 10 | <div slot="footer"> |
| 11 | <el-button @click="close">取消</el-button> | 11 | <el-button @click="close">取消</el-button> |
| 12 | - <el-button type="primary" @click="handelConfirm">确定</el-button> | 12 | + <el-button type="primary" @click="handleConfirm">确定</el-button> |
| 13 | </div> | 13 | </div> |
| 14 | </el-dialog>` | 14 | </el-dialog>` |
| 15 | } | 15 | } |
| @@ -98,7 +98,7 @@ function mixinMethod(type) { | @@ -98,7 +98,7 @@ function mixinMethod(type) { | ||
| 98 | close: `close() { | 98 | close: `close() { |
| 99 | this.$emit('update:visible', false) | 99 | this.$emit('update:visible', false) |
| 100 | },`, | 100 | },`, |
| 101 | - handelConfirm: `handelConfirm() { | 101 | + handleConfirm: `handleConfirm() { |
| 102 | this.$refs['${confGlobal.formRef}'].validate(valid => { | 102 | this.$refs['${confGlobal.formRef}'].validate(valid => { |
| 103 | if(!valid) return | 103 | if(!valid) return |
| 104 | this.close() | 104 | this.close() |
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | <el-button @click="close"> | 41 | <el-button @click="close"> |
| 42 | 取消 | 42 | 取消 |
| 43 | </el-button> | 43 | </el-button> |
| 44 | - <el-button type="primary" @click="handelConfirm"> | 44 | + <el-button type="primary" @click="handleConfirm"> |
| 45 | 确定 | 45 | 确定 |
| 46 | </el-button> | 46 | </el-button> |
| 47 | </div> | 47 | </div> |
| @@ -94,7 +94,7 @@ export default { | @@ -94,7 +94,7 @@ export default { | ||
| 94 | close(e) { | 94 | close(e) { |
| 95 | this.$emit('update:visible', false) | 95 | this.$emit('update:visible', false) |
| 96 | }, | 96 | }, |
| 97 | - handelConfirm() { | 97 | + handleConfirm() { |
| 98 | this.$refs.elForm.validate(valid => { | 98 | this.$refs.elForm.validate(valid => { |
| 99 | if (!valid) return | 99 | if (!valid) return |
| 100 | this.$emit('confirm', { ...this.formData }) | 100 | this.$emit('confirm', { ...this.formData }) |
| @@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
| 59 | <div slot="footer"> | 59 | <div slot="footer"> |
| 60 | <el-button | 60 | <el-button |
| 61 | type="primary" | 61 | type="primary" |
| 62 | - @click="handelConfirm" | 62 | + @click="handleConfirm" |
| 63 | > | 63 | > |
| 64 | 确定 | 64 | 确定 |
| 65 | </el-button> | 65 | </el-button> |
| @@ -133,7 +133,7 @@ export default { | @@ -133,7 +133,7 @@ export default { | ||
| 133 | close() { | 133 | close() { |
| 134 | this.$emit('update:visible', false) | 134 | this.$emit('update:visible', false) |
| 135 | }, | 135 | }, |
| 136 | - handelConfirm() { | 136 | + handleConfirm() { |
| 137 | this.$refs.elForm.validate(valid => { | 137 | this.$refs.elForm.validate(valid => { |
| 138 | if (!valid) return | 138 | if (!valid) return |
| 139 | if (this.dataType === 'number') { | 139 | if (this.dataType === 'number') { |
| @@ -146,7 +146,7 @@ import { beautifierConf, titleCase } from '@/utils/index' | @@ -146,7 +146,7 @@ import { beautifierConf, titleCase } from '@/utils/index' | ||
| 146 | import { makeUpHtml, vueTemplate, vueScript, cssStyle } from '@/utils/generator/html' | 146 | import { makeUpHtml, vueTemplate, vueScript, cssStyle } from '@/utils/generator/html' |
| 147 | import { makeUpJs } from '@/utils/generator/js' | 147 | import { makeUpJs } from '@/utils/generator/js' |
| 148 | import { makeUpCss } from '@/utils/generator/css' | 148 | import { makeUpCss } from '@/utils/generator/css' |
| 149 | -import drawingDefalut from '@/utils/generator/drawingDefalut' | 149 | +import drawingDefault from '@/utils/generator/drawingDefault' |
| 150 | import logo from '@/assets/logo/logo.png' | 150 | import logo from '@/assets/logo/logo.png' |
| 151 | import CodeTypeDialog from './CodeTypeDialog' | 151 | import CodeTypeDialog from './CodeTypeDialog' |
| 152 | import DraggableItem from './DraggableItem' | 152 | import DraggableItem from './DraggableItem' |
| @@ -171,15 +171,15 @@ export default { | @@ -171,15 +171,15 @@ export default { | ||
| 171 | selectComponents, | 171 | selectComponents, |
| 172 | layoutComponents, | 172 | layoutComponents, |
| 173 | labelWidth: 100, | 173 | labelWidth: 100, |
| 174 | - drawingList: drawingDefalut, | 174 | + drawingList: drawingDefault, |
| 175 | drawingData: {}, | 175 | drawingData: {}, |
| 176 | - activeId: drawingDefalut[0].formId, | 176 | + activeId: drawingDefault[0].formId, |
| 177 | drawerVisible: false, | 177 | drawerVisible: false, |
| 178 | formData: {}, | 178 | formData: {}, |
| 179 | dialogVisible: false, | 179 | dialogVisible: false, |
| 180 | generateConf: null, | 180 | generateConf: null, |
| 181 | showFileName: false, | 181 | showFileName: false, |
| 182 | - activeData: drawingDefalut[0] | 182 | + activeData: drawingDefault[0] |
| 183 | } | 183 | } |
| 184 | }, | 184 | }, |
| 185 | created() { | 185 | created() { |
-
请 注册 或 登录 后发表评论