dolphin-weex-ui 2.4.1 → 2.4.3
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/CHANGELOG.md +20 -0
- package/dist/index.native.js +68 -23
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +80 -32
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-actionsheet/index.vue +43 -7
- package/packages/dof-bottom-bar/diablo.css +3 -0
- package/packages/dof-card/style.js +3 -0
- package/packages/dof-checkbox/diablo.css +9 -2
- package/packages/dof-checkbox/index.vue +1 -0
- package/packages/dof-icon-button/index.vue +1 -1
- package/packages/dof-modal/index.vue +1 -1
- package/packages/dof-result/imgs.js +3 -3
- package/packages/dof-slider/index.vue +2 -2
- package/packages/dof-step-action/img.js +2 -2
- package/packages/dof-switch/index.vue +2 -2
- package/packages/dof-tab-page/index.vue +5 -4
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</slot>
|
|
26
26
|
<div class="midea-actionsheet-content">
|
|
27
27
|
<div
|
|
28
|
-
v-bind:class="['midea-actionsheet-list']"
|
|
28
|
+
v-bind:class="['midea-actionsheet-list', !title && index === 0 ? 'midea-actionsheet-list-first' : '']"
|
|
29
29
|
v-for="(item, index) in items"
|
|
30
30
|
:key="index"
|
|
31
31
|
@click="actionsheetItemClick(item, index)"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
button
|
|
51
51
|
}}</text>
|
|
52
52
|
</div>
|
|
53
|
-
<div :style="{ height: '0px', 'background-color': '#ffffff' }"></div>
|
|
53
|
+
<div :style="{ height: '0px', 'background-color': _isDiablo ? diabloBg : '#ffffff' }"></div>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</template>
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
.midea-actionsheet-list-first {
|
|
81
81
|
/* border-top-left-radius: 32px;
|
|
82
82
|
border-top-right-radius: 32px; */
|
|
83
|
+
border-top-width: 0px;
|
|
83
84
|
background-color: #ffffff;
|
|
84
85
|
}
|
|
85
86
|
.midea-actionsheet-list-first:active {
|
|
@@ -142,6 +143,37 @@
|
|
|
142
143
|
bottom: 0;
|
|
143
144
|
top: 0;
|
|
144
145
|
}
|
|
146
|
+
|
|
147
|
+
@media screen and (weex-theme: diablo) {
|
|
148
|
+
.title {
|
|
149
|
+
color: #797c7e;
|
|
150
|
+
background-color: #1e2326;
|
|
151
|
+
}
|
|
152
|
+
.midea-actionsheet-list-first {
|
|
153
|
+
/* border-top-left-radius: 32px;
|
|
154
|
+
border-top-right-radius: 32px; */
|
|
155
|
+
border-top-width: 0px;
|
|
156
|
+
background-color: #1e2326;
|
|
157
|
+
}
|
|
158
|
+
.midea-actionsheet-list-first:active {
|
|
159
|
+
background-color: #1e2326;
|
|
160
|
+
}
|
|
161
|
+
.midea-actionsheet-list {
|
|
162
|
+
border-top-width: 2px;
|
|
163
|
+
border-top-color: #303538;
|
|
164
|
+
background-color: #1e2326;
|
|
165
|
+
}
|
|
166
|
+
.midea-actionsheet-list:active {
|
|
167
|
+
background-color: #1e2326;
|
|
168
|
+
}
|
|
169
|
+
.midea-actionsheet-btn {
|
|
170
|
+
color: #cfcfd0;
|
|
171
|
+
background-color: #1e2326;
|
|
172
|
+
}
|
|
173
|
+
.leftBtn {
|
|
174
|
+
color: #cfcfd0;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
145
177
|
</style>
|
|
146
178
|
|
|
147
179
|
<script>
|
|
@@ -150,7 +182,10 @@ const { platform } = weex.config.env
|
|
|
150
182
|
const isWeb = typeof window === 'object' && platform.toLowerCase() === 'web'
|
|
151
183
|
import { Bridge } from 'dolphin-native-bridge'
|
|
152
184
|
import DofOverlay from '../dof-overlay'
|
|
185
|
+
import DiabloMixin from '../../mixins/diablo'
|
|
186
|
+
|
|
153
187
|
export default {
|
|
188
|
+
mixins: [DiabloMixin],
|
|
154
189
|
components: { DofOverlay },
|
|
155
190
|
props: {
|
|
156
191
|
show: {
|
|
@@ -164,7 +199,7 @@ export default {
|
|
|
164
199
|
// 背景色,即按钮上方的横条颜色,暂不开放
|
|
165
200
|
popupColor: {
|
|
166
201
|
type: String,
|
|
167
|
-
default: '
|
|
202
|
+
default: ''
|
|
168
203
|
},
|
|
169
204
|
overlayCfg: {
|
|
170
205
|
type: Object,
|
|
@@ -226,7 +261,8 @@ export default {
|
|
|
226
261
|
data: () => ({
|
|
227
262
|
haveOverlay: true,
|
|
228
263
|
isOverShow: true,
|
|
229
|
-
bottomArc: 0
|
|
264
|
+
bottomArc: 0,
|
|
265
|
+
diabloBg: '#1e2326'
|
|
230
266
|
}),
|
|
231
267
|
computed: {
|
|
232
268
|
isNeedShow() {
|
|
@@ -252,7 +288,7 @@ export default {
|
|
|
252
288
|
const { pos, width, popupColor } = this
|
|
253
289
|
const style = {
|
|
254
290
|
width: `${width}px`,
|
|
255
|
-
backgroundColor: popupColor
|
|
291
|
+
backgroundColor: popupColor ? popupColor : this._isDiablo ? '#101315' : '#F9F9F9'
|
|
256
292
|
// backgroundColor: '#616C73'
|
|
257
293
|
}
|
|
258
294
|
if (pos === 'bottom') {
|
|
@@ -265,7 +301,7 @@ export default {
|
|
|
265
301
|
},
|
|
266
302
|
bottomIpxStyle() {
|
|
267
303
|
const style = {
|
|
268
|
-
backgroundColor: '#ffffff',
|
|
304
|
+
backgroundColor: this._isDiablo ? this.diabloBg : '#ffffff',
|
|
269
305
|
paddingBottom: `${this.isipx ? 84 : 16}px`
|
|
270
306
|
}
|
|
271
307
|
return style
|
|
@@ -381,7 +417,7 @@ export default {
|
|
|
381
417
|
return _transform
|
|
382
418
|
},
|
|
383
419
|
textStyleOps(item) {
|
|
384
|
-
return item.textColor ? { color: item.textColor } : { color: '#1E2E37' }
|
|
420
|
+
return item.textColor ? { color: item.textColor } : { color: this._isDiablo ? '#cfcfd0' : '#1E2E37' }
|
|
385
421
|
}
|
|
386
422
|
}
|
|
387
423
|
}
|
|
@@ -25,7 +25,14 @@
|
|
|
25
25
|
.checkbox-disabled {
|
|
26
26
|
opacity: 1;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
29
|
-
|
|
28
|
+
.disabledMask {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
right: 0;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
/* background-color: rgba(0, 0, 0, 0.3); */
|
|
35
|
+
background-color: #101315;
|
|
36
|
+
opacity: 0.7;
|
|
30
37
|
}
|
|
31
38
|
}
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
<dof-image :src="ARROW_ICON" class="cell-arrow-icon" v-if="hasArrow"></dof-image>
|
|
56
56
|
</div>
|
|
57
57
|
<div v-if="!itemImg && hasSubBottomBorder" class="fakeSubBorder"></div>
|
|
58
|
+
<div v-if="_isDiablo && disabled" class="disabledMask"></div>
|
|
58
59
|
</div>
|
|
59
60
|
</template>
|
|
60
61
|
|