uview-plus 3.2.15 → 3.2.16

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,3 +1,10 @@
1
+ ## 3.2.16(2024-05-06)
2
+ 修复tabs中,当前激活样式的undefined bug
3
+
4
+ fix: #341u-code 倒计时没结束前退出,再次进入结束后退出界面,再次进入重新开始倒计时bug
5
+
6
+ 受到uni-app内置text样式影响修复
7
+
1
8
  ## 3.2.15(2024-04-28)
2
9
  优化时间选择器hasInput模式初始化值
3
10
  ## 3.2.14(2024-04-24)
@@ -104,7 +104,7 @@
104
104
  },
105
105
  // 保存时间戳,为了防止倒计时尚未结束,H5刷新或者各端的右上角返回上一页再进来
106
106
  setTimeToStorage() {
107
- if(!this.keepRunning) return
107
+ if(!this.keepRunning || !this.timer) return
108
108
  // 记录当前的时间戳,为了下次进入页面,如果还在倒计时内的话,继续倒计时
109
109
  // 倒计时尚未结束,结果大于0;倒计时已经开始,就会小于初始值,如果等于初始值,说明没有开始倒计时,无需处理
110
110
  if(this.secNum > 0 && this.secNum <= this.seconds) {
@@ -127,6 +127,7 @@
127
127
  // 文字内容的样式
128
128
  textStyle() {
129
129
  let style = {}
130
+ style.whiteSpace = 'nowrap !important'
130
131
  style.color = this.color
131
132
  style.fontSize = addUnit(this.fontSize)
132
133
  return style
@@ -142,9 +142,7 @@
142
142
  return index => {
143
143
  const style = {}
144
144
  // 取当期是否激活的样式
145
- const customeStyle = index === this.innerCurrent ? addStyle(this.activeStyle) : uni.$u
146
- .addStyle(
147
- this.inactiveStyle)
145
+ const customeStyle = index === this.innerCurrent ? addStyle(this.activeStyle) : addStyle(this.inactiveStyle)
148
146
  // 如果当前菜单被禁用,则加上对应颜色,需要在此做处理,是因为nvue下,无法在style样式中通过!import覆盖标签的内联样式
149
147
  if (this.list[index].disabled) {
150
148
  style.color = '#c8c9cc'
@@ -339,7 +337,7 @@
339
337
  &__text {
340
338
  font-size: 15px;
341
339
  color: $u-content-color;
342
- white-space: nowrap;
340
+ white-space: nowrap !important;
343
341
 
344
342
  &--disabled {
345
343
  color: $u-disabled-color !important;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "uview-plus3.0重磅发布,全面的Vue3移动组件库。",
5
- "version": "3.2.15",
5
+ "version": "3.2.16",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",