@zscreate/zhxy-app-component 1.0.325 → 1.0.327

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.
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <view class="form-item"
3
- :class="{ showFalse: showFalse, isScroll: isScroll, isCorrected: widget.options.isCorrected ? true : false }"
3
+ :class="{ showFalse: showFalse, isScroll: isScroll, isCorrected: widget.options.isCorrected ? true : false, tableItemview0 :tableKey && (itemkey % 3) == 0, tableItemview1 : tableKey && (itemkey % 3) == 1,tableItemview2 : tableKey && (itemkey % 3) == 2, }"
4
4
  @click="resetShowFalse">
5
5
  <view v-if="widget.options.isCorrected" class="editCorrent correctedWrap" >
6
6
  <view @click.native="CorrentItem">原值是: {{ correctOldValue(widget.options.oldValue) }}</view>
@@ -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,23 @@ checkbox-group label {
2572
2580
  color: #FFFFFF;
2573
2581
  }
2574
2582
  }
2583
+ .tableItemview0 {
2584
+ background-color: #f4f7fc !important;
2585
+ }
2586
+ .tableItemview1 {
2587
+ background-color: #f4f9fb !important;
2588
+ }
2589
+ .tableItemview2 {
2590
+ background-color: #f6f6fc !important;
2591
+ }
2592
+
2593
+ ::v-deep .u-numberbox .u-icon-minus {
2594
+ display: none;
2595
+ }
2596
+
2597
+ ::v-deep .u-numberbox .u-icon-plus {
2598
+ display: none;
2599
+ }
2575
2600
 
2576
2601
  .isCorrected {
2577
2602
  //border-top: 2upx solid #ff0000;
@@ -2829,13 +2854,4 @@ checkbox-group label {
2829
2854
  }
2830
2855
  </style>
2831
2856
  <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
2857
  </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.327",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",