Commit fd75f97296fc40b59d440e7c542ab625bb63963e
1 parent
0bd23421
update preview modal style
Showing
1 changed file
with
14 additions
and
23 deletions
front-end/h5/src/components/core/editor/modals/preview.vue
| ... | ... | @@ -64,20 +64,18 @@ export default { |
| 64 | 64 | }, |
| 65 | 65 | render (h) { |
| 66 | 66 | return ( |
| 67 | - <div> | |
| 68 | - <a-modal | |
| 69 | - title="作品设置" | |
| 70 | - visible={this.visible} | |
| 71 | - confirmLoading={this.confirmLoading} | |
| 72 | - onOk={this.handleOk} | |
| 73 | - onCancel={this.handleCancel} | |
| 74 | - width="70%" | |
| 75 | - okText="保存" | |
| 67 | + <a-modal | |
| 68 | + visible={this.visible} | |
| 69 | + confirmLoading={this.confirmLoading} | |
| 70 | + onOk={this.handleOk} | |
| 71 | + onCancel={this.handleCancel} | |
| 72 | + width="70%" | |
| 73 | + okText="保存" | |
| 76 | 74 | > |
| 77 | 75 | <div class="preview-wrapper"> |
| 78 | 76 | <a-row gutter={20}> |
| 79 | 77 | <a-col span={8}> |
| 80 | - <div class="phone-wrapper"> | |
| 78 | + <div class="phone-wrapper" style={{ transform: 'scale(0.8)'}}> | |
| 81 | 79 | <div class="phone"> |
| 82 | 80 | <div class="float-ctrl-panel"> |
| 83 | 81 | <a class="page-controller" onClick={(e) => { this.postMessage2Iframe('prev') }}>上一页</a> |
| ... | ... | @@ -102,7 +100,7 @@ export default { |
| 102 | 100 | <a-col span={12} offset={4}> |
| 103 | 101 | <div class="setting"> |
| 104 | 102 | <div class="info"> |
| 105 | - <div class="label">设置作品信息</div> | |
| 103 | + <h4 class="label">设置作品信息</h4> | |
| 106 | 104 | <a-input |
| 107 | 105 | class="input" |
| 108 | 106 | value={this.work.title} |
| ... | ... | @@ -135,8 +133,7 @@ export default { |
| 135 | 133 | </a-col> |
| 136 | 134 | </a-row> |
| 137 | 135 | </div> |
| 138 | - </a-modal> | |
| 139 | - </div> | |
| 136 | + </a-modal> | |
| 140 | 137 | ) |
| 141 | 138 | }, |
| 142 | 139 | mounted () { |
| ... | ... | @@ -148,22 +145,16 @@ export default { |
| 148 | 145 | <style lang="scss"> |
| 149 | 146 | .preview-wrapper { |
| 150 | 147 | position: relative; |
| 151 | - min-height: 600px; | |
| 152 | - min-width: 800px; | |
| 148 | + min-height: 480px; | |
| 153 | 149 | |
| 154 | 150 | .phone-wrapper { |
| 155 | 151 | position: absolute; |
| 156 | - // margin-top: -300px; | |
| 157 | - left: 10px; | |
| 158 | - top: 50%; | |
| 159 | - width: 320px; | |
| 160 | - height: 600px; | |
| 161 | 152 | box-sizing: content-box; |
| 162 | 153 | .phone { |
| 163 | 154 | position: absolute; |
| 164 | - // left: 40px; | |
| 165 | - width: 100%; | |
| 166 | - height: calc(638px - 70px); | |
| 155 | + width: 320px; | |
| 156 | + height: 568px; | |
| 157 | + | |
| 167 | 158 | display: inline-block; |
| 168 | 159 | background: #fff; |
| 169 | 160 | box-sizing: content-box; | ... | ... |