dolphin-weex-ui 2.2.6 → 2.2.7
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/dist/index.native.js
CHANGED
|
@@ -257,6 +257,11 @@ var Utils = {
|
|
|
257
257
|
|
|
258
258
|
return (typeof window === 'undefined' ? 'undefined' : _typeof2(window)) === 'object' && platform.toLowerCase() === 'web';
|
|
259
259
|
},
|
|
260
|
+
isHarmony: function isHarmony() {
|
|
261
|
+
var platform = weex.config.env.platform;
|
|
262
|
+
|
|
263
|
+
return platform.toLowerCase() === 'harmony';
|
|
264
|
+
},
|
|
260
265
|
isIOS: function isIOS() {
|
|
261
266
|
var platform = weex.config.env.platform;
|
|
262
267
|
|
|
@@ -27136,7 +27141,7 @@ exports.default = {
|
|
|
27136
27141
|
var backgroundColor = backgroundColor_;
|
|
27137
27142
|
var isIPhoneSE = weex.config.env.deviceModel.substr(6) === '12,8';
|
|
27138
27143
|
// harmony
|
|
27139
|
-
if (_utils2.default.env.
|
|
27144
|
+
if (_utils2.default.env.isHarmony()) return _extends({
|
|
27140
27145
|
backgroundColor: backgroundColor,
|
|
27141
27146
|
height: '44wx',
|
|
27142
27147
|
'padding-top': '20wx'
|