@zscreate/zhxy-app-component 1.0.325 → 1.0.326

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.
@@ -383,6 +383,7 @@
383
383
  :positive-integer="false"
384
384
  :long-press="false"
385
385
  @blur="numberBoxBlur"
386
+ @change="changeBoxBlur"
386
387
  @plus="numberBoxPlus" @minus="numberBoxMinus"
387
388
  :step="widget.options.step ? widget.options.step:1"
388
389
  :min="widget.options.min ? widget.options.min : 0"
@@ -1919,6 +1920,13 @@ export default {
1919
1920
  numberBoxBlur() {
1920
1921
  debugger
1921
1922
  },
1923
+ changeBoxBlur(e) {
1924
+ //计数器改变时 触发(为了解决移动端计数器失焦事件未生效的问题,当输入最大值超过设置的最大值未触发失焦事件)
1925
+ this.dataModel = e.value
1926
+ if(e && e.value == this.widget.options.max) setTimeout(() => {
1927
+ this.numberBoxBlur()
1928
+ }, 100)
1929
+ },
1922
1930
  updateDataModel() {
1923
1931
  if (this.tableKey) {
1924
1932
  this.dataModel = this.models[this.tableKey][this.tableIndex][this.widget.model]
@@ -2572,6 +2580,15 @@ checkbox-group label {
2572
2580
  color: #FFFFFF;
2573
2581
  }
2574
2582
  }
2583
+ .table-item-view0 .form-item{
2584
+ background-color: #f4f7fc !important;
2585
+ }
2586
+ .table-item-view1 .form-item{
2587
+ background-color: #f4f9fb !important;
2588
+ }
2589
+ .table-item-view2 .form-item{
2590
+ background-color: #f6f6fc !important;
2591
+ }
2575
2592
 
2576
2593
  .isCorrected {
2577
2594
  //border-top: 2upx solid #ff0000;
@@ -2829,13 +2846,4 @@ checkbox-group label {
2829
2846
  }
2830
2847
  </style>
2831
2848
  <style>
2832
- .table-item-view0 .form-item{
2833
- background-color: #f4f7fc;
2834
- }
2835
- .table-item-view1 .form-item{
2836
- background-color: #f4f9fb;
2837
- }
2838
- .table-item-view2 .form-item{
2839
- background-color: #f6f6fc;
2840
- }
2841
2849
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.325",
3
+ "version": "1.0.326",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",