@leevan/jtui 2.0.3 → 2.0.7-npm

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.
Binary file
Binary file
@@ -90,7 +90,7 @@
90
90
  :handlerConfig="handlerConfig"
91
91
  @handlerClick="handlerClick"
92
92
  :loading="loading"
93
- :cellRenderMethods="{radioChange}"
93
+ :cellRenderMethods="{radioChange,checkboxChange}"
94
94
  >
95
95
  </jt-table-pc>
96
96
  </div>
@@ -213,6 +213,18 @@ import { data23 , data13 } from '../../packages/jt-table-pc/data2';
213
213
  }
214
214
  })
215
215
  },
216
+ checkboxChange({row,property,val,params}){
217
+ return new Promise(async resolve=>{
218
+ let random = Math.random();
219
+ if(random > 0.5){
220
+ this.$message.success('设置成功');
221
+ resolve(true)
222
+ }else{
223
+ this.$message.warning('设置失败');
224
+ resolve(false)
225
+ }
226
+ })
227
+ }
216
228
  }
217
229
  }
218
230
  </script>