dolphin-weex-ui 2.2.18 → 2.3.0

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/index.native.js +796 -647
  3. package/dist/index.native.js.map +1 -1
  4. package/dist/index.web.js +622 -436
  5. package/dist/index.web.js.map +1 -1
  6. package/package.json +1 -1
  7. package/packages/dof-accordion/index.vue +1 -1
  8. package/packages/dof-actionsheet/dist/index.dev.js +15 -0
  9. package/packages/dof-actionsheet/index-bak.vue +5 -5
  10. package/packages/dof-actionsheet/index.vue +5 -5
  11. package/packages/dof-badge/index.vue +4 -4
  12. package/packages/dof-board/index.vue +3 -3
  13. package/packages/dof-bottom-bar/index.vue +6 -6
  14. package/packages/dof-button/index.vue +14 -8
  15. package/packages/dof-button/type.js +20 -20
  16. package/packages/dof-button-group/index.vue +2 -2
  17. package/packages/dof-card/imgs/arrow_up.js +1 -1
  18. package/packages/dof-card/imgs/confirm.js +1 -1
  19. package/packages/dof-card/index.vue +9 -9
  20. package/packages/dof-card-item/index.vue +3 -3
  21. package/packages/dof-catalog/colmo.css +1 -1
  22. package/packages/dof-catalog/index.vue +3 -3
  23. package/packages/dof-catalog/style.js +2 -2
  24. package/packages/dof-cell/colmo.css +6 -0
  25. package/packages/dof-cell/index.vue +36 -36
  26. package/packages/dof-cell2/index.vue +10 -10
  27. package/packages/dof-checkbox/index.vue +10 -10
  28. package/packages/dof-checkbox-list/index.vue +7 -0
  29. package/packages/dof-city/tab.vue +1 -1
  30. package/packages/dof-collapse-item/colmo.css +14 -0
  31. package/packages/dof-collapse-item/imgs/arrow_up.js +1 -1
  32. package/packages/dof-collapse-item/index.vue +12 -10
  33. package/packages/dof-confirm/index.vue +2 -2
  34. package/packages/dof-confirm-box/index.vue +4 -4
  35. package/packages/dof-countdown/index.vue +2 -2
  36. package/packages/dof-date-cycle-picker/index.vue +2 -2
  37. package/packages/dof-date-cycle-picker/option-list-circle.vue +1 -1
  38. package/packages/dof-digital-panel/index.vue +5 -5
  39. package/packages/dof-gear/index.vue +1 -1
  40. package/packages/dof-gradient/index.vue +1 -1
  41. package/packages/dof-grid-select/option.vue +1 -1
  42. package/packages/dof-icon/index.vue +1 -1
  43. package/packages/dof-icon-button/index.vue +3 -3
  44. package/packages/dof-indexlist/index.vue +4 -4
  45. package/packages/dof-input/index.vue +3 -3
  46. package/packages/dof-item/index.vue +4 -4
  47. package/packages/dof-loading/index.vue +1 -1
  48. package/packages/dof-mask/index.vue +1 -1
  49. package/packages/dof-minibar/index.vue +1 -1
  50. package/packages/dof-minibar/style.js +2 -2
  51. package/packages/dof-modal/index.vue +10 -10
  52. package/packages/dof-music-player/index.vue +1 -1
  53. package/packages/dof-noticebar/index.vue +12 -12
  54. package/packages/dof-noticebar/type.js +2 -2
  55. package/packages/dof-operation-modal/index.vue +1 -1
  56. package/packages/dof-overlay/index.vue +1 -1
  57. package/packages/dof-page-calendar/index.vue +315 -301
  58. package/packages/dof-panel/index.vue +5 -5
  59. package/packages/dof-panel/type.js +4 -4
  60. package/packages/dof-picker/picker.vue +3 -3
  61. package/packages/dof-popover2/index.vue +3 -3
  62. package/packages/dof-popup/index.vue +12 -7
  63. package/packages/dof-progress/index.vue +1 -1
  64. package/packages/dof-promt/index.vue +6 -6
  65. package/packages/dof-radio-list/index.vue +6 -0
  66. package/packages/dof-radio-list/radio-item.vue +7 -2
  67. package/packages/dof-refresher/index.vue +3 -3
  68. package/packages/dof-result/imgs.js +3 -3
  69. package/packages/dof-result/index.vue +9 -8
  70. package/packages/dof-rich-text/dof-rich-text-text.vue +1 -1
  71. package/packages/dof-scroll-picker/index.vue +3 -3
  72. package/packages/dof-searchbar/index.vue +47 -22
  73. package/packages/dof-searchbar/type.js +7 -4
  74. package/packages/dof-select/index.vue +3 -3
  75. package/packages/dof-select-picker/index.vue +2 -2
  76. package/packages/dof-side-nav/style.js +4 -4
  77. package/packages/dof-simple-flow/colmo.css +1 -0
  78. package/packages/dof-simple-flow/index.vue +75 -18
  79. package/packages/dof-slider/index.vue +5 -5
  80. package/packages/dof-slider-bar/index.vue +1 -1
  81. package/packages/dof-slider-scale/index.vue +2 -2
  82. package/packages/dof-special-rich-text/index.vue +1 -1
  83. package/packages/dof-status/index.vue +2 -2
  84. package/packages/dof-status/style.js +3 -3
  85. package/packages/dof-step-action/img.js +2 -2
  86. package/packages/dof-step-flow-h/index.vue +2 -2
  87. package/packages/dof-stepper/index.vue +3 -3
  88. package/packages/dof-swipe-action/index.vue +5 -1
  89. package/packages/dof-swipe-cell/index.vue +1 -1
  90. package/packages/dof-switch/index.vue +7 -7
  91. package/packages/dof-switch/style.js +10 -10
  92. package/packages/dof-switch-bar/index.vue +1 -1
  93. package/packages/dof-tab-bar/index.vue +1 -1
  94. package/packages/dof-tab-page/full-page.vue +1 -1
  95. package/packages/dof-tab-page/index.vue +19 -19
  96. package/packages/dof-tag/index.vue +2 -2
  97. package/packages/dof-taged/index.vue +1 -1
  98. package/packages/setting/icon.base64.js +5 -5
  99. package/theme/config.js +6 -7
@@ -56,7 +56,7 @@ export default {
56
56
  },
57
57
  mrTextStyle() {
58
58
  let { theme } = this
59
- let colorVal = THEME_COLOR[theme] || '#267aff'
59
+ let colorVal = THEME_COLOR[theme] || '#00A4F2'
60
60
  return {
61
61
  color: colorVal
62
62
  }
@@ -199,7 +199,7 @@ export default {
199
199
  font-family: PingFangSC-Regular;
200
200
  font-size: 24px;
201
201
  line-height: 24px;
202
- color: #666666;
202
+ color: #616C73;
203
203
  lines: 1;
204
204
  text-overflow: ellipsis;
205
205
  }
@@ -213,14 +213,14 @@ export default {
213
213
  font-family: PingFangSC-Medium;
214
214
  font-size: 44px;
215
215
  line-height: 44px;
216
- color: #000000;
216
+ color: #1E2E37;
217
217
  }
218
218
  .unit-text {
219
219
  margin-left: 6px;
220
220
  font-family: PingFangSC-Regular;
221
221
  font-size: 24px;
222
222
  line-height: 32px;
223
- color: #666666;
223
+ color: #616C73;
224
224
  }
225
225
  .btn {
226
226
  height: 100px;
@@ -232,7 +232,7 @@ export default {
232
232
  .btn-text {
233
233
  font-family: PingFangSC-Medium;
234
234
  font-size: 28px;
235
- color: #267aff;
235
+ color: #00A4F2;
236
236
  text-align: center;
237
237
  line-height: 28px;
238
238
  }
@@ -1,11 +1,11 @@
1
1
  export const THEME_COLOR = {
2
- primary: '#267aff',
2
+ primary: '#00A4F2',
3
3
  purple: '#995EFC',
4
4
  slate: '#6575FF',
5
5
  aqua: '#29C3FF',
6
- turquoise: '#00CBB8',
6
+ turquoise: '#00BDB2',
7
7
  yellow: '#FFAA10',
8
- orange: '#FF8225',
9
- tomato: '#FF6A4C',
8
+ orange: '#FFAA10',
9
+ tomato: '#F56428',
10
10
  gray: '#7C879B'
11
11
  }
@@ -245,7 +245,7 @@ export default {
245
245
  font-family: PingFangSC-Regular;
246
246
  /* opacity: 0.6; */
247
247
  font-size: 28px;
248
- color: #8A8A8F;
248
+ color: #8E969B;
249
249
  text-align: left;
250
250
  }
251
251
  .list-item {
@@ -254,7 +254,7 @@ export default {
254
254
  font-family: PingFangSC-Regular;
255
255
  opacity: 0.3;
256
256
  font-size: 36px;
257
- color: #000000;
257
+ color: #1E2E37;
258
258
  text-align: center;
259
259
  }
260
260
  .list-item-left {
@@ -292,7 +292,7 @@ export default {
292
292
  }
293
293
  .selected-item {
294
294
  opacity: 1;
295
- color: #000000;
295
+ color: #1E2E37;
296
296
  font-size: 36px;
297
297
  }
298
298
  .select-area {
@@ -53,7 +53,7 @@
53
53
  v-else
54
54
  :code="'\u4725'"
55
55
  :size="32"
56
- :color="_isColmo ? 'rgba(255,255,255,0.80)' : '#333333'"
56
+ :color="_isColmo ? 'rgba(255,255,255,0.80)' : '#1E2E37'"
57
57
  @dofIconFontClicked="$emit('clickedCloseBtn')"
58
58
  ></dof-iconfont>
59
59
  </div>
@@ -528,7 +528,7 @@ export default {
528
528
  background-color: #ffffff;
529
529
  }
530
530
  .u-popover-theme-dark {
531
- background-color: #000000;
531
+ background-color: #1E2E37;
532
532
  }
533
533
  .i-btn {
534
534
  flex-direction: row;
@@ -581,7 +581,7 @@ export default {
581
581
  flex: 1;
582
582
  font-family: PingFangSC-Regular;
583
583
  font-size: 24px;
584
- color: #666666;
584
+ color: #616C73;
585
585
  font-weight: 400;
586
586
  }
587
587
  </style>
@@ -23,8 +23,8 @@
23
23
  : _isColmo
24
24
  ? 'rgba(255,255,255,0.80)'
25
25
  : index === 0
26
- ? '#666666'
27
- : '#267aff'
26
+ ? '#616C73'
27
+ : '#00A4F2'
28
28
  }"
29
29
  @click="actionsheetBtnClick(index, btn.hasOwnProperty('text') ? btn.text : btn)"
30
30
  >{{ btn.hasOwnProperty('text') ? btn.text : btn }}</text
@@ -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>
@@ -78,13 +78,13 @@
78
78
  flex: 1; /* add by lau resolve bottom button */
79
79
  }
80
80
  .leftBtn {
81
- color: #666666;
81
+ color: #616C73;
82
82
  border-right-color: #e5e5e5;
83
83
  border-right-width: 1px;
84
84
  border-right-style: solid;
85
85
  }
86
86
  .rightBtn {
87
- color: #267aff;
87
+ color: #00A4F2;
88
88
  }
89
89
  .midea-actionsheet-btn:active {
90
90
  background-color: #f5f5f5;
@@ -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) {
@@ -20,7 +20,7 @@ export default {
20
20
  props: {
21
21
  barColor: {
22
22
  type: String,
23
- default: '#267aff'
23
+ default: '#00A4F2'
24
24
  },
25
25
  barWidth: {
26
26
  type: Number,
@@ -33,7 +33,7 @@
33
33
  width: 750px;
34
34
  height: 1344px;
35
35
  align-items: center;
36
- background-color:#333333;
36
+ background-color:#1E2E37;
37
37
  opacity:0.3;
38
38
  position:fixed;
39
39
  /* z-index:1000; */
@@ -49,7 +49,7 @@
49
49
  padding-top:30px;padding-bottom:20px
50
50
  }
51
51
  .box-title-text{
52
- font-family: PingFangSC-Medium;font-weight: bold; font-size:32px;color:#000000;text-align:center
52
+ font-family: PingFangSC-Medium;font-weight: bold; font-size:32px;color:#1E2E37;text-align:center
53
53
  }
54
54
  .box-input-wrapper{
55
55
  padding-left:32px;padding-right:32px;padding-top:10px;padding-bottom:24px;
@@ -58,7 +58,7 @@ font-family: PingFangSC-Medium;font-weight: bold; font-size:32px;color:#000000;t
58
58
  border-width: 1px;
59
59
  border-style: solid;
60
60
  border-color: #9F9F9F;
61
- color:#333333;
61
+ color:#1E2E37;
62
62
  background-color:#FFFFFF;
63
63
  height: 48px;
64
64
  font-size:24px;
@@ -80,7 +80,7 @@ flex-direction:row;height:84px;flex:1;align-items:center;justify-content:center;
80
80
  font-weight: bold;
81
81
  }
82
82
  .confirm-text {
83
- color: #000000;
83
+ color: #1E2E37;
84
84
  }
85
85
  .wrapper{
86
86
  background-color:#F7F7F7;
@@ -109,11 +109,11 @@ export default {
109
109
  },
110
110
  cancelColor: {
111
111
  type: String,
112
- default: '#267aff'
112
+ default: '#00A4F2'
113
113
  },
114
114
  confirmColor: {
115
115
  type: String,
116
- default: '#267aff'
116
+ default: '#00A4F2'
117
117
  }
118
118
  },
119
119
  watch: {
@@ -7,6 +7,7 @@
7
7
  @dofRadioItemChecked="dofRadioItemChecked(i, $event)"
8
8
  :key="i"
9
9
  :isFullBorder="isFullBorder"
10
+ :isShowBorder="_isColmo ? true : isShowBorder"
10
11
  :isLast="i === updateList.length - 1"
11
12
  ></radio-item>
12
13
  </div>
@@ -29,6 +30,11 @@ export default {
29
30
  isFullBorder: {
30
31
  type: Boolean,
31
32
  default: true
33
+ },
34
+ // 是否显示边框
35
+ isShowBorder: {
36
+ type: Boolean,
37
+ default: false
32
38
  }
33
39
  },
34
40
  data: () => ({
@@ -23,9 +23,9 @@
23
23
  </dof-cell>
24
24
  <div
25
25
  class="fakeStyle"
26
- v-if="!isLast"
26
+ v-if="!isLast && isShowBorder"
27
27
  :style="{
28
- backgroundColor: _isColmo ? 'rgba(255, 255, 255, 0.1)' : '#f2f2f2',
28
+ backgroundColor: _isColmo ? 'rgba(255, 255, 255, 0.1)' : '#dddddd',
29
29
  right: isFullBorder ? '0px' : '24px'
30
30
  }"
31
31
  ></div>
@@ -93,6 +93,11 @@ export default {
93
93
  isLast: {
94
94
  type: Boolean,
95
95
  default: false
96
+ },
97
+ // 是否显示边框
98
+ isShowBorder: {
99
+ type: Boolean,
100
+ default: false
96
101
  }
97
102
 
98
103
  // itemImg: {
@@ -268,7 +268,7 @@ export default {
268
268
  top: 0;
269
269
  /* box-sizing: border-box; */
270
270
  border-width: 2px;
271
- border-color: #666666;
271
+ border-color: #616C73;
272
272
  border-style: solid;
273
273
  border-radius: 30px;
274
274
  opacity: 0;
@@ -282,7 +282,7 @@ export default {
282
282
  /* margin-right: 20px; */
283
283
  height: 60px;
284
284
  width: 60px;
285
- color: #666666;
285
+ color: #616C73;
286
286
  }
287
287
 
288
288
  .arrow-down {
@@ -297,7 +297,7 @@ export default {
297
297
  .u-txt {
298
298
  font-size: 24px;
299
299
  line-height: 40px;
300
- color: #999999;
300
+ color: #8E969B;
301
301
  margin-top: 10px;
302
302
  margin-left: 10px;
303
303
  height: 40px;