dolphin-weex-ui 2.2.17 → 2.2.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolphin-weex-ui",
3
- "version": "2.2.17",
3
+ "version": "2.2.19",
4
4
  "description": "inteligense cross platform frame",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -64,9 +64,9 @@
64
64
  "weex-vue-render": "^1.0.17"
65
65
  },
66
66
  "dependencies": {
67
- "@dolphinweex/weex-theme": "0.3.0",
67
+ "@dolphinweex/weex-theme": "^0.3.5",
68
68
  "color": "^3.1.3",
69
- "dolphin-native-bridge": "^0.4.0",
69
+ "dolphin-native-bridge": "^0.5.7",
70
70
  "url-parse": "^1.4.3",
71
71
  "vue-style-loader": "^4.1.3",
72
72
  "weex-bindingx": "0.0.17"
@@ -32,7 +32,7 @@
32
32
  </div>
33
33
  <div
34
34
  :style="{
35
- height: show && isipx ? '68px' : '0px',
35
+ height: show && isipx ? sageHeight + 'px' : '0px',
36
36
  backgroundColor: _isColmo ? '#151617' : padStyle.backgroundColor
37
37
  }"
38
38
  ></div>
@@ -166,11 +166,13 @@ export default {
166
166
  isOverShow: true,
167
167
  bottomArc: 0,
168
168
  show_: false,
169
- overlayShow: false
169
+ overlayShow: false,
170
+ sageHeight: 68
170
171
  }),
171
172
  computed: {
172
173
  isipx: function() {
173
174
  if (this.bottomArc) return true
175
+ if(weex && weex.config.env.platform == 'harmony' && weex.config.env.safeAreaBottomHeight) return true
174
176
  return (
175
177
  weex &&
176
178
  (weex.config.env.deviceModel === 'iPhone10,3' ||
@@ -195,7 +197,7 @@ export default {
195
197
  _height() {
196
198
  let { height, isipx, pos } = this
197
199
  height = Number(height)
198
- height = isipx && pos == 'bottom' ? height + 68 : height
200
+ height = isipx && pos == 'bottom' ? height + this.sageHeight : height
199
201
  return height
200
202
  },
201
203
  transformValue() {
@@ -274,6 +276,9 @@ export default {
274
276
  Bridge.getAllBarHeight().then(res => {
275
277
  this.bottomArc = res.bottomArc || 0
276
278
  })
279
+ if(weex && weex.config.env.platform == 'harmony' && weex.config.env.safeAreaBottomHeight){
280
+ this.sageHeight = weex.config.env.safeAreaBottomHeight
281
+ }
277
282
  },
278
283
  methods: {
279
284
  actionsheetBtnClick(index, text) {