Commit 8635c9fa37e29405e721920b403fcd964492cd43
1 parent
b6b27d3c
fix: fix #98
Showing
2 changed files
with
13 additions
and
7 deletions
front-end/h5/src/components/core/editor/index.js
| ... | ... | @@ -325,7 +325,11 @@ export default { |
| 325 | 325 | |
| 326 | 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 | 334 | </a-layout> |
| 331 | 335 | ) | ... | ... |
front-end/h5/src/components/core/editor/modals/preview.vue
| ... | ... | @@ -126,12 +126,12 @@ export default { |
| 126 | 126 | ></a-input> |
| 127 | 127 | </div> |
| 128 | 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 | 133 | <div class="code"> |
| 131 | 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 | 136 | <a-radio-group class="radios" value={this.qrcodeSize} onChange={e => { this.qrcodeSize = e.target.value }}> |
| 137 | 137 | <a-radio label={500} value={500}>500x500</a-radio> |
| ... | ... | @@ -147,8 +147,6 @@ export default { |
| 147 | 147 | </div> |
| 148 | 148 | </a-modal> |
| 149 | 149 | ) |
| 150 | - }, | |
| 151 | - mounted () { | |
| 152 | 150 | } |
| 153 | 151 | } |
| 154 | 152 | </script> |
| ... | ... | @@ -217,6 +215,10 @@ export default { |
| 217 | 215 | } |
| 218 | 216 | .qrcode { |
| 219 | 217 | margin-top: 20px; |
| 218 | + | |
| 219 | + .label span { | |
| 220 | + margin-right: 10px; | |
| 221 | + } | |
| 220 | 222 | } |
| 221 | 223 | .code { |
| 222 | 224 | // !#zh 防止浮动塌陷 | ... | ... |