@mpxjs/webpack-plugin 2.10.3-beta.15 → 2.10.3-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,8 +58,8 @@ export default {
58
58
  },
59
59
  warpStyle() {
60
60
  return {
61
- marginTop: this.hidden ? '0' : 'calc(env(safe-area-inset-top, 0px) + 44px)',
62
- height: this.hidden ? '100%' : 'calc(100% - env(safe-area-inset-top, 0px) - 44px)'
61
+ paddingTop: 'calc(env(safe-area-inset-top, 0px) + 44px)',
62
+ height: '100%'
63
63
  }
64
64
  },
65
65
  // 内部标题栏高度(遵循小程序常见平台差异)
@@ -129,9 +129,9 @@ export default {
129
129
  ]
130
130
 
131
131
  // top-level wrapper: contains fixed titlebar and page content wrapper
132
- return h('div', { class: 'mpx-page-warp', style: this.warpStyle }, [
133
- h('div', {
134
- class: ['mpx-titlebar', { 'mpx-titlebar--hidden': this.hidden }],
132
+ return h('div', { class: 'mpx-page-warp', style: this.hidden ? {} : this.warpStyle }, [
133
+ this.hidden ? null : h('div', {
134
+ class: ['mpx-titlebar'],
135
135
  style: this.rootStyle
136
136
  }, [
137
137
  h('div', { class: 'mpx-titlebar__safe', style: this.safeStyle }, [
@@ -142,7 +142,7 @@ export default {
142
142
  ])
143
143
  ])
144
144
  ]),
145
- h('page', {}, [this.$slots.default])
145
+ h('page', { style: { position: 'relative'} }, [this.$slots.default])
146
146
  ])
147
147
  }
148
148
  }
@@ -150,16 +150,10 @@ export default {
150
150
 
151
151
  <style scoped>
152
152
  .mpx-page-warp {
153
- width: '100%';
154
- box-sizing: 'border-box';
155
- position: 'relative'
153
+ width: 100%;
154
+ box-sizing: border-box;
156
155
  }
157
156
 
158
- /* 防止margin溢出合并 */
159
- .mpx-page-warp::before {
160
- content: '';
161
- display: table
162
- }
163
157
 
164
158
  .mpx-titlebar--hidden {
165
159
  display: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.3-beta.15",
3
+ "version": "2.10.3-beta.17",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"