dolphin-weex-ui 2.3.3 → 2.3.5

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # 升级日志
2
2
 
3
+ ## 2.3.5
4
+
5
+ - [ ! ] 适配鸿蒙
6
+ - [ ! ] date: 2025/05/19
7
+
8
+ ## 2.3.4
9
+
10
+ - [ ! ] 修复dof-cell 红点位置未适配问题
11
+ - [ ! ] date: 2025/05/13
12
+
3
13
  ## 2.3.3
4
14
 
5
15
  - [ ! ] 修复dof-button 一键换肤bug
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolphin-weex-ui",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "inteligense cross platform frame",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -31,7 +31,7 @@
31
31
  </slot>
32
32
  </div>
33
33
 
34
- <div class="dot-tip" v-if="hasDot" :class="[badgeNum && 'dotRight']" :style="badgeStyle"></div>
34
+ <div class="dot-tip" v-if="hasDot" :class="[badgeNum && 'dotRight', dotTipTop]" :style="badgeStyle"></div>
35
35
  <div class="dot-num-tip" v-else-if="badgeNum" :style="badgeStyle">
36
36
  <text class="dot-num-tip-text">{{ dotNum }}</text>
37
37
  </div>
@@ -278,6 +278,18 @@
278
278
  .dotRight {
279
279
  right: 32px;
280
280
  }
281
+ .dotTopMax {
282
+ top: 34px;
283
+ }
284
+ .dotTopMedium {
285
+ top: 39px;
286
+ }
287
+ .dotTopBig {
288
+ top: 44px;
289
+ }
290
+ .dotTopMin {
291
+ top: 54px;
292
+ }
281
293
 
282
294
  /* label */
283
295
  .cell-label-text {
@@ -696,6 +708,20 @@ export default {
696
708
  }
697
709
  return value
698
710
  },
711
+ dotTipTop() {
712
+ let { iconSize } = this
713
+ let topClass = ''
714
+ if (iconSize === 'max') {
715
+ topClass = 'dotTopMax'
716
+ } else if (iconSize === 'medium') {
717
+ topClass = 'dotTopMedium'
718
+ } else if (iconSize === 'min') {
719
+ topClass = 'dotTopMin'
720
+ } else {
721
+ topClass = 'dotTopBig'
722
+ }
723
+ return topClass
724
+ },
699
725
  //处理特殊类型cell高度问题
700
726
  innerCellHeightComp() {
701
727
  const { special, desc } = this
@@ -160,7 +160,8 @@ export default {
160
160
  width: this.width + 'px',
161
161
  backgroundColor: this.maskBgColor,
162
162
  height: this.height + 'px',
163
- borderRadius: this.borderRadius + 'px'
163
+ borderRadius: this.borderRadius + 'px',
164
+ overflow: 'hidden',
164
165
  // backgroundImage: "../../assets/img/image/activity.png",
165
166
  // backgroundRepeat: "no-repeat",
166
167
  }