uview-plus 3.2.14 → 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,12 @@
1
+ ## 3.2.16(2024-05-06)
2
+ 修复tabs中,当前激活样式的undefined bug
3
+
4
+ fix: #341u-code 倒计时没结束前退出,再次进入结束后退出界面,再次进入重新开始倒计时bug
5
+
6
+ 受到uni-app内置text样式影响修复
7
+
8
+ ## 3.2.15(2024-04-28)
9
+ 优化时间选择器hasInput模式初始化值
1
10
  ## 3.2.14(2024-04-24)
2
11
  去除pleaseSetTranspileDependencies
3
12
 
@@ -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) {
@@ -99,13 +99,13 @@
99
99
  // #ifdef VUE3
100
100
  modelValue(newValue) {
101
101
  this.init()
102
- this.getInputValue()
102
+ // this.getInputValue(newValue)
103
103
  },
104
104
  // #endif
105
105
  // #ifdef VUE2
106
106
  value(newValue) {
107
107
  this.init()
108
- this.getInputValue()
108
+ // this.getInputValue(newValue)
109
109
  },
110
110
  // #endif
111
111
  propsChange() {
@@ -126,6 +126,10 @@
126
126
  // #endif
127
127
  methods: {
128
128
  getInputValue(newValue) {
129
+ if (newValue == '' || !newValue || newValue == undefined) {
130
+ this.inputValue = ''
131
+ return
132
+ }
129
133
  if (this.mode == 'time') {
130
134
  this.inputValue = newValue
131
135
  } else {
@@ -161,6 +165,9 @@
161
165
  this.innerValue = this.correctValue(this.value)
162
166
  // #endif
163
167
  this.updateColumnValue(this.innerValue)
168
+
169
+ // 初始化hasInput展示
170
+ this.getInputValue(this.innerValue)
164
171
  },
165
172
  // 在微信小程序中,不支持将函数当做props参数,故只能通过ref形式调用
166
173
  setFormatter(e) {
@@ -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.14",
5
+ "version": "3.2.16",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",