@tongfun/tf-widget 0.1.61 → 0.1.64

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/README.md CHANGED
@@ -355,19 +355,14 @@ export default {
355
355
  - 注意事项<br>
356
356
  多选行为会导致插入新的数据行
357
357
 
358
- 但是这个插入数据行不会触发单据体的after-add-row的钩子函数
358
+ 这个插入数据行会触发单据体的after-add-row的钩子函数
359
359
 
360
- 因为多个操作同时操作单据体数据,可能存在冲突,所以减弱了各个钩子函数之间互相影响
361
-
362
- 如果需要影响,在外面重复实现一些功能吧
363
-
364
- 比如:单据体的新增行钩子,新增的行number字段默认值是3
360
+ 因为多个操作同时操作单据体数据,可能存在冲突
365
361
  ```javascript
366
362
  const after-add-row = function(row){
367
363
  row.number = 3
368
364
  }
369
365
  ```
370
- 在确实需要的情况下 重复实现一次吧,因为无法确定下面的钩子会不会对number进行操作
371
366
  ```javascript
372
367
  const after-basic-selected = function(row,selectedRow){
373
368
  row.name = selectedRow.name
@@ -375,6 +370,9 @@ export default {
375
370
  }
376
371
 
377
372
  ```
373
+ 所以如果要减弱了各个钩子函数之间互相影响,开启单据体的disableAffterAddRowAlways
374
+
375
+ 但是开启这个属性后,除了点击新增行按钮之外,其他地方不会触发after-add-row 钩子
378
376
 
379
377
 
380
378
  - **beforeInput:Function** 编辑状态下输入前要进行的钩子,但是目前只有言午的基础资料控件提供了实现,basic,其他的控件不生效