Commit fd75f97296fc40b59d440e7c542ab625bb63963e

Authored by ly525
1 parent 0bd23421

update preview modal style

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