doway-coms 2.11.88 → 2.11.90

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": "2.11.88",
3
+ "version": "2.11.90",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -348,6 +348,8 @@
348
348
  :allowAutoClear="scope.column.params.allowAutoClear"
349
349
  @preSearch="(searchInfo,repeatRowInfo,row,api) => preSearch(searchInfo, scope,null,api)"
350
350
  @selectChanged="(selectedRowInfo)=>pulldownSelectChanged(scope,selectedRowInfo)"
351
+ @inputChangeEvent="()=>pulldownInputChangeEvent(scope)"
352
+ @inputBlurEvent="()=>pulldownInputBlurEvent(scope)"
351
353
  @confirmMultiSelect="
352
354
  (pulldownView, selectRows) =>
353
355
  pulldownMultiSelect(scope, pulldownView, selectRows)
@@ -3107,6 +3109,15 @@ export default {
3107
3109
  scope['pulldownSelectedRow'] = selectedRowInfo
3108
3110
  this.cellValueChange(scope)
3109
3111
  },
3112
+ pulldownInputChangeEvent(scope){
3113
+ if(scope.column.params.allowAutoClear===false){
3114
+ //如果可以输入值并保存的话就触发改变事件
3115
+ this.cellValueChange(scope)
3116
+ }
3117
+ },
3118
+ pulldownInputBlurEvent(scope){
3119
+ this.$emit('inputBlurEvent', scope,this.dataName)
3120
+ },
3110
3121
  cellValueChange(scope, e) {
3111
3122
  console.debug(scope.column.field + 'value change')
3112
3123
  if (
@@ -669,7 +669,9 @@ export default {
669
669
  }
670
670
  this.$emit('inputChangeEvent', null)
671
671
  },
672
- inputBlurEvent(event) {},
672
+ inputBlurEvent(event) {
673
+ this.$emit('inputBlurEvent', null)
674
+ },
673
675
  /**
674
676
  * 输入框获取焦点事件
675
677
  */