Skip to content

Commit 8635c9f

Browse files
committed
fix: fix #98
1 parent b6b27d3 commit 8635c9f

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

front-end/h5/src/components/core/editor/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,11 @@ export default {
325325

326326
</a-layout>
327327
{
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+
/>
329333
}
330334
</a-layout>
331335
)

front-end/h5/src/components/core/editor/modals/preview.vue

+8-6
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ export default {
126126
></a-input>
127127
</div>
128128
<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>
130133
<div class="code">
131134
<canvas style="float: left" id="qrcode-container"></canvas>
132-
<div>
133-
<a-button type="dashed" onClick={() => this.openNewTab()}>打开预览 URL </a-button>
134-
</div>
135135
{/**
136136
<a-radio-group class="radios" value={this.qrcodeSize} onChange={e => { this.qrcodeSize = e.target.value }}>
137137
<a-radio label={500} value={500}>500x500</a-radio>
@@ -147,8 +147,6 @@ export default {
147147
</div>
148148
</a-modal>
149149
)
150-
},
151-
mounted () {
152150
}
153151
}
154152
</script>
@@ -217,6 +215,10 @@ export default {
217215
}
218216
.qrcode {
219217
margin-top: 20px;
218+
219+
.label span {
220+
margin-right: 10px;
221+
}
220222
}
221223
.code {
222224
// !#zh 防止浮动塌陷

0 commit comments

Comments
 (0)