Permalink
Browse files

fix: valuechange的trigger增加参数rowObj存储当前的row对象

  • Loading branch information...
liuyk
liuyk committed Dec 6, 2016
1 parent 46d95d6 commit 2654da4ebf57716e35a9158efa2f5c80d2092c03
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/dataTable/row-util.js
View
@@ -70,7 +70,8 @@ const _triggerChange = function(rowObj,fieldName, oldValue, ctx){
field: fieldName,
oldValue: oldValue,
newValue: rowObj.getValue(fieldName),
ctx: ctx || ""
ctx: ctx || "",
rowObj: rowObj
}
rowObj.parent.trigger(DataTable.ON_VALUE_CHANGE, event);
rowObj.parent.trigger(fieldName + "." + DataTable.ON_VALUE_CHANGE, event);

0 comments on commit 2654da4

Please sign in to comment.