forked from github/dataease
Merge branch 'dev' of github.com:dataease/dataease into dev
This commit is contained in:
commit
27c4247e9a
@ -185,8 +185,9 @@ export default {
|
||||
return this.$store.state.panel.mainActiveName
|
||||
},
|
||||
showUnpublishedArea() {
|
||||
// return this.panelInfo.status === 'unpublished'
|
||||
if (this.panelInfo && this.panelInfo.showType === 'view') {
|
||||
if (this.showPosition === 'edit') {
|
||||
return false
|
||||
} else if (this.panelInfo && this.panelInfo.showType === 'view') {
|
||||
return false
|
||||
} else if ((this.mainActiveName === 'PanelMain' && this.activeTab === 'PanelList') || this.showPosition.includes('multiplexing')) {
|
||||
return this.panelInfo.status === 'unpublished' && !hasDataPermission('manage', this.panelInfo.privileges)
|
||||
|
@ -372,7 +372,6 @@ export default {
|
||||
},
|
||||
clearCanvas() {
|
||||
this.$store.commit('setComponentData', [])
|
||||
this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING)
|
||||
this.$store.commit('recordSnapshot', 'clearCanvas')
|
||||
this.$store.commit('setInEditorStatus', false)
|
||||
},
|
||||
|
@ -269,6 +269,7 @@
|
||||
:show-type="canvasStyleData.selfAdaption?'full':'width'"
|
||||
:canvas-style-data="canvasStyleData"
|
||||
:component-data="componentData"
|
||||
show-position="edit"
|
||||
/>
|
||||
</fullscreen>
|
||||
<input
|
||||
|
Loading…
Reference in New Issue
Block a user