dolphin-weex-ui 2.2.5 → 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/package.json
CHANGED
|
@@ -254,7 +254,7 @@ export default {
|
|
|
254
254
|
const backgroundColor = backgroundColor_
|
|
255
255
|
let isIPhoneSE = weex.config.env.deviceModel.substr(6) === '12,8'
|
|
256
256
|
// harmony
|
|
257
|
-
if (Utils.env.
|
|
257
|
+
if (Utils.env.isHarmony())
|
|
258
258
|
return {
|
|
259
259
|
backgroundColor,
|
|
260
260
|
height: '44wx',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="container">
|
|
3
3
|
<dof-overlay :show="show" :hasAnimation="false" v-if="show"></dof-overlay>
|
|
4
|
-
<div v-if="show" class="
|
|
4
|
+
<div v-if="show" class="dofModalWrapper" @click="layoutClick">
|
|
5
5
|
<div class="modal-box" @click="() => {}" :style="_modalStyle">
|
|
6
6
|
<div class="modal-content" :style="modalContentStyle">
|
|
7
7
|
<slot name="title">
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
justify-content: center;
|
|
91
91
|
align-items: center;
|
|
92
92
|
} */
|
|
93
|
-
.
|
|
93
|
+
.dofModalWrapper {
|
|
94
94
|
position: fixed;
|
|
95
95
|
top: 0px;
|
|
96
96
|
bottom: 0px;
|
package/packages/utils/index.js
CHANGED
|
@@ -93,6 +93,10 @@ const Utils = {
|
|
|
93
93
|
const { platform } = weex.config.env
|
|
94
94
|
return typeof window === 'object' && platform.toLowerCase() === 'web'
|
|
95
95
|
},
|
|
96
|
+
isHarmony() {
|
|
97
|
+
const { platform } = weex.config.env
|
|
98
|
+
return platform.toLowerCase() === 'harmony'
|
|
99
|
+
},
|
|
96
100
|
isIOS() {
|
|
97
101
|
const { platform } = weex.config.env
|
|
98
102
|
return platform.toLowerCase() === 'ios'
|