mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-06-07 05:38:30 +08:00
fix: init js code bug
This commit is contained in:
parent
2439ab2678
commit
722a375108
@ -76,7 +76,14 @@ const keymaster = require('keymaster');
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "vcc",
|
name: "vcc",
|
||||||
props: ['initCodeEntity'],
|
props: {
|
||||||
|
initCodeEntity: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
RawComponents: () => import("../components/RawComponents"),
|
RawComponents: () => import("../components/RawComponents"),
|
||||||
ToolsBar: () => import("./ToolsBar"),
|
ToolsBar: () => import("./ToolsBar"),
|
||||||
@ -189,7 +196,7 @@ export default {
|
|||||||
this.currentEditRawInfo = null;
|
this.currentEditRawInfo = null;
|
||||||
}).onSelectElement(rawInfo => {
|
}).onSelectElement(rawInfo => {
|
||||||
this.currentEditRawInfo = rawInfo;
|
this.currentEditRawInfo = rawInfo;
|
||||||
}).saveJSCodeOnly(this.convertLogicCode(this.initCodeEntity.JSCode))
|
}).saveJSCodeOnly(this.convertLogicCode(this.initCodeEntity.JSCode ? this.initCodeEntity.JSCode : ''))
|
||||||
.render(this.initCodeEntity.codeStructure ? this.initCodeEntity.codeStructure : this.getFakeData());
|
.render(this.initCodeEntity.codeStructure ? this.initCodeEntity.codeStructure : this.getFakeData());
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user