uview-plus 3.2.10 → 3.2.12

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,7 @@
1
+ ## 3.2.12(2024-04-22)
2
+ 修复color应用
3
+ ## 3.2.11(2024-04-18)
4
+ 修复import化带来的问题
1
5
  ## 3.2.10(2024-04-17)
2
6
  完善input清空事件App端失效的兼容性
3
7
 
@@ -258,18 +258,16 @@
258
258
  // 更新各列的值,进行补0、格式化等操作
259
259
  updateColumnValue(value) {
260
260
  this.innerValue = value
261
- this.updateColumns()
262
- // 延迟执行,等待u-picker组件列数据更新完后再设置选中值索引
263
- setTimeout(() => {
264
- this.updateIndexs(value)
265
- }, 0);
266
-
261
+ this.updateColumns()
262
+ // 延迟执行,等待u-picker组件列数据更新完后再设置选中值索引
263
+ setTimeout(() => {
264
+ this.updateIndexs(value)
265
+ }, 0);
267
266
  },
268
267
  // 更新索引
269
268
  updateIndexs(value) {
270
269
  let values = []
271
270
  const formatter = this.formatter || this.innerFormatter
272
- const padZero = padZero
273
271
  if (this.mode === 'time') {
274
272
  // 将time模式的时间用:分隔成数组
275
273
  const timeArr = value.split(':')
@@ -115,7 +115,8 @@
115
115
  labelWidth: 45,
116
116
  // 错误提示方式
117
117
  errorType: 'message'
118
- }
118
+ },
119
+ color: color
119
120
  }
120
121
  },
121
122
  // 组件创建完成时,将当前实例保存到u-form中
@@ -131,7 +132,6 @@
131
132
  methods: {
132
133
  addStyle,
133
134
  addUnit,
134
- color,
135
135
  init() {
136
136
  // 父组件的实例
137
137
  this.updateParentData()
@@ -256,17 +256,17 @@
256
256
  const {
257
257
  height
258
258
  } = size
259
- const sys = sys()
260
- const windowHeight = sys.windowHeight
259
+ const sysData = sys()
260
+ const windowHeight = sysData.windowHeight
261
261
  let customNavHeight = 0
262
262
  // 消除各端导航栏非原生和原生导致的差异,让索引列表字母对屏幕垂直居中
263
263
  if (this.customNavHeight == 0) {
264
264
  // #ifdef H5
265
- customNavHeight = sys.windowTop
265
+ customNavHeight = sysData.windowTop
266
266
  // #endif
267
267
  // #ifndef H5
268
268
  // 在非H5中,为原生导航栏,其高度不算在windowHeight内,这里设置为负值,后面相加时变成减去其高度的一半
269
- customNavHeight = -(sys.statusBarHeight + 44)
269
+ customNavHeight = -(sysData.statusBarHeight + 44)
270
270
  // #endif
271
271
  } else {
272
272
  customNavHeight = getPx(this.customNavHeight)
@@ -130,22 +130,22 @@
130
130
  }
131
131
  },
132
132
  statusColor() {
133
- let color = ''
133
+ let colorTmp = ''
134
134
  switch (this.statusClass) {
135
135
  case 'finish':
136
- color = this.parentData.activeColor
136
+ colorTmp = this.parentData.activeColor
137
137
  break
138
138
  case 'error':
139
- color = color.error
139
+ colorTmp = color.error
140
140
  break
141
141
  case 'process':
142
- color = this.parentData.dot ? this.parentData.activeColor : 'transparent'
142
+ colorTmp = this.parentData.dot ? this.parentData.activeColor : 'transparent'
143
143
  break
144
144
  default:
145
- color = this.parentData.inactiveColor
145
+ colorTmp = this.parentData.inactiveColor
146
146
  break
147
147
  }
148
- return color
148
+ return colorTmp
149
149
  },
150
150
  contentStyle() {
151
151
  const style = {}
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.10",
5
+ "version": "3.2.12",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",