doway-coms 1.9.1 → 1.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -115,7 +115,9 @@ export default {
115
115
  },
116
116
  historyData(val) {
117
117
  if (
118
+ // eslint-disable-next-line no-prototype-builtins
118
119
  val.logData.hasOwnProperty("code") &&
120
+ // eslint-disable-next-line no-prototype-builtins
119
121
  val.logData.hasOwnProperty("content")
120
122
  ) {
121
123
  val.logData = val.logData.content;
@@ -269,6 +269,7 @@
269
269
  :optBtns="scope.column.params.optBtns"
270
270
  :popupAddName="scope.column.params.popupAddName"
271
271
  :popupAddPath="scope.column.params.popupAddPath"
272
+ :allowAutoClear="scope.column.params.allowAutoClear"
272
273
  @preSearch="(searchInfo) => preSearch(searchInfo, scope)"
273
274
  @selectChanged="cellValueChange(scope)"
274
275
  @confirmMultiSelect="
@@ -1699,6 +1700,7 @@ export default {
1699
1700
  colParams['isMultiSelect'] = originCol.isMultiSelect
1700
1701
  colParams['contrasts'] = originCol.contrasts || []
1701
1702
  colParams['controlEdit'] = true
1703
+ colParams['allowAutoClear']=originCol.allowAutoClear
1702
1704
  }
1703
1705
  if (originCol.controlType === controlType.text) {
1704
1706
  colParams['controlEdit'] = true
@@ -392,6 +392,12 @@ export default {
392
392
  return []
393
393
  },
394
394
  },
395
+ allowAutoClear:{
396
+ type:Boolean,
397
+ default:function(){
398
+ return true
399
+ }
400
+ }
395
401
  },
396
402
  watch: {},
397
403
  computed: {
@@ -499,7 +505,7 @@ export default {
499
505
  // if(scope.row.)
500
506
  },
501
507
  clearInputValue() {
502
- if (this.isInputChanged === true) {
508
+ if (this.isInputChanged === true&&this.allowAutoClear) {
503
509
  this.setLinkValue(null, this.row)
504
510
  this.$emit('selectChanged', null)
505
511
  }
@@ -548,7 +554,7 @@ export default {
548
554
  if (event.keyCode === 9) {
549
555
  //tab事件
550
556
  this.$refs.pulldownRef.hidePanel()
551
- this.clearInputValue()
557
+ this.clearInputValue()
552
558
  }
553
559
  },
554
560
  inputClickEvent(event) {
@@ -755,7 +761,7 @@ export default {
755
761
  * 面板隐藏事件
756
762
  */
757
763
  pullDownHideEvent({ $event }) {
758
- this.clearInputValue()
764
+ this.clearInputValue()
759
765
  },
760
766
  /**
761
767
  * 查询数据