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 +10 -0
- package/package.json +1 -1
- package/packages/dof-cell/index.vue +27 -1
- package/packages/dof-mask/index.vue +2 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -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
|
}
|