Skip to content

Commit

Permalink
fix: fix #98
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Nov 2, 2019
1 parent b6b27d3 commit 8635c9f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 5 additions & 1 deletion front-end/h5/src/components/core/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ export default {

</a-layout>
{
this.previewVisible && <PreviewDialog work={this.work} visible={this.previewVisible} handleClose={() => { this.previewVisible = false }} />
<PreviewDialog
work={this.work}
visible={this.previewVisible}
handleClose={() => { this.previewVisible = false }}
/>
}
</a-layout>
)
Expand Down
14 changes: 8 additions & 6 deletions front-end/h5/src/components/core/editor/modals/preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ export default {
></a-input>
</div>
<div class="qrcode my-4">
<div class="label">手机扫码分享给好友</div>
<div class="label">
<span>手机扫码分享给好友</span>
<a-button type="link" icon="link" onClick={() => this.openNewTab()}>打开预览 URL(For Debug) </a-button>
</div>
<div class="code">
<canvas style="float: left" id="qrcode-container"></canvas>
<div>
<a-button type="dashed" onClick={() => this.openNewTab()}>打开预览 URL </a-button>
</div>
{/**
<a-radio-group class="radios" value={this.qrcodeSize} onChange={e => { this.qrcodeSize = e.target.value }}>
<a-radio label={500} value={500}>500x500</a-radio>
Expand All @@ -147,8 +147,6 @@ export default {
</div>
</a-modal>
)
},
mounted () {
}
}
</script>
Expand Down Expand Up @@ -217,6 +215,10 @@ export default {
}
.qrcode {
margin-top: 20px;
.label span {
margin-right: 10px;
}
}
.code {
// !#zh 防止浮动塌陷
Expand Down

0 comments on commit 8635c9f

Please sign in to comment.