Skip to content

Commit

Permalink
set initScript to false when update/add
Browse files Browse the repository at this point in the history
  • Loading branch information
sunzhengjie committed Oct 28, 2017
1 parent 1d36565 commit 2c0317c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions ui/src/helper/soul_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function resetModel(pageSoul) {
}

function reset(soul) {
soul.initScript=false
if (soul.model && !soul.model.save) {
soul.model.value = ''
}
Expand Down
18 changes: 9 additions & 9 deletions ui/src/view/esview/assemble/assemble_page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="index-layout-content">
<Row>

<i-col span="3">
<i-col class="controls-container" span="3">
<transition name="index-soul-control-class-fade">
<div>
<Collapse :key="classIndex" v-for="(controlClass, classIndex) in controlClazzes">
Expand All @@ -49,16 +49,9 @@
</transition>
</i-col>

<i-col v-if="showEditorPanel" span="18" :class="{'is-preview':isPreview}">
<i-col style="margin-left: 200px" span="21" :class="{'is-preview':isPreview}">
<RenderDev :soul="soul"></RenderDev>
</i-col>
<i-col v-else span="21" :class="{'is-preview':isPreview}">
<RenderDev :soul="soul"></RenderDev>
</i-col>

<i-col v-show="showEditorPanel" span="3">
<ModelEditor :editSoul="editSoul"></ModelEditor>
</i-col>

</Row>
</div>
Expand Down Expand Up @@ -268,6 +261,13 @@

<style scoped>
.controls-container{
position: fixed;
top: 100px;
left: 200px;
width: 200px
}
.edit_layer {
display: none;
opacity: 0.5;
Expand Down

0 comments on commit 2c0317c

Please sign in to comment.