dolphin-weex-ui 2.3.3 → 2.3.4

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,10 @@
1
1
  # 升级日志
2
2
 
3
+ ## 2.3.4
4
+
5
+ - [ ! ] 修复dof-cell 红点位置未适配问题
6
+ - [ ! ] date: 2025/05/13
7
+
3
8
  ## 2.3.3
4
9
 
5
10
  - [ ! ] 修复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.4",
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