Commit 8635c9fa37e29405e721920b403fcd964492cd43

Authored by ly525
1 parent b6b27d3c

fix: fix #98

front-end/h5/src/components/core/editor/index.js
@@ -325,7 +325,11 @@ export default { @@ -325,7 +325,11 @@ export default {
325 325
326 </a-layout> 326 </a-layout>
327 { 327 {
328 - this.previewVisible && <PreviewDialog work={this.work} visible={this.previewVisible} handleClose={() => { this.previewVisible = false }} /> 328 + <PreviewDialog
  329 + work={this.work}
  330 + visible={this.previewVisible}
  331 + handleClose={() => { this.previewVisible = false }}
  332 + />
329 } 333 }
330 </a-layout> 334 </a-layout>
331 ) 335 )
front-end/h5/src/components/core/editor/modals/preview.vue
@@ -126,12 +126,12 @@ export default { @@ -126,12 +126,12 @@ export default {
126 ></a-input> 126 ></a-input>
127 </div> 127 </div>
128 <div class="qrcode my-4"> 128 <div class="qrcode my-4">
129 - <div class="label">手机扫码分享给好友</div> 129 + <div class="label">
  130 + <span>手机扫码分享给好友</span>
  131 + <a-button type="link" icon="link" onClick={() => this.openNewTab()}>打开预览 URL(For Debug) </a-button>
  132 + </div>
130 <div class="code"> 133 <div class="code">
131 <canvas style="float: left" id="qrcode-container"></canvas> 134 <canvas style="float: left" id="qrcode-container"></canvas>
132 - <div>  
133 - <a-button type="dashed" onClick={() => this.openNewTab()}>打开预览 URL </a-button>  
134 - </div>  
135 {/** 135 {/**
136 <a-radio-group class="radios" value={this.qrcodeSize} onChange={e => { this.qrcodeSize = e.target.value }}> 136 <a-radio-group class="radios" value={this.qrcodeSize} onChange={e => { this.qrcodeSize = e.target.value }}>
137 <a-radio label={500} value={500}>500x500</a-radio> 137 <a-radio label={500} value={500}>500x500</a-radio>
@@ -147,8 +147,6 @@ export default { @@ -147,8 +147,6 @@ export default {
147 </div> 147 </div>
148 </a-modal> 148 </a-modal>
149 ) 149 )
150 - },  
151 - mounted () {  
152 } 150 }
153 } 151 }
154 </script> 152 </script>
@@ -217,6 +215,10 @@ export default { @@ -217,6 +215,10 @@ export default {
217 } 215 }
218 .qrcode { 216 .qrcode {
219 margin-top: 20px; 217 margin-top: 20px;
  218 +
  219 + .label span {
  220 + margin-right: 10px;
  221 + }
220 } 222 }
221 .code { 223 .code {
222 // !#zh 防止浮动塌陷 224 // !#zh 防止浮动塌陷