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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolphin-weex-ui",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "inteligense cross platform frame",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -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: '#F9F9F9'
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
  }
@@ -22,4 +22,7 @@
22
22
  .animate-circle {
23
23
  background-color: #e5e5e8;
24
24
  }
25
+ .tab-bar-item-icon {
26
+ opacity: 0.85;
27
+ }
25
28
  }
@@ -2,6 +2,9 @@ export const STYLE_MAP = {
2
2
  default: {
3
3
  borderRadius: '32px'
4
4
  },
5
+ diablo: {
6
+ borderRadius: '32px'
7
+ },
5
8
  colmo: {
6
9
  borderRadius: '0px'
7
10
  }
@@ -25,7 +25,14 @@
25
25
  .checkbox-disabled {
26
26
  opacity: 1;
27
27
  }
28
- .checkbox-icon-disabled {
29
- opacity: 0.3;
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
 
@@ -160,7 +160,7 @@ export default {
160
160
  if (this._isColmo) {
161
161
  return this.isPlain ? 'transparent' : '#2d2e2f'
162
162
  } else {
163
- return this._isDiablo ? '#2b2f32' : '#F6F7F9'
163
+ return this._isDiablo ? '#45494C' : '#F6F7F9'
164
164
  }
165
165
  },
166
166
  // 点击背景颜色
@@ -203,7 +203,7 @@
203
203
  /* border-right-color: #c8c7cc; */
204
204
  border-right-width: 1px;
205
205
  /*H5处理兼容*/
206
- border-right: 1px solid #f3f3f3;
206
+ /* border-right: 1px solid #f3f3f3; */
207
207
  }
208
208
 
209
209
  .btn-text {