Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jul 31, 2019
1 parent 2ad6cf6 commit a3ef920
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/index.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function defaultFilterRender(h, filterRender, params, context) {
}
},
on: getFilterEvents(_defineProperty({}, type, function () {
context.changeMultipleOption({}, !!item.data, item);
context[column.filterMultiple ? 'changeMultipleOption' : 'changeRadioOption']({}, !!item.data, item);
}), filterRender, params)
});
});
Expand Down Expand Up @@ -361,7 +361,7 @@ var renderMap = {
on: getFilterEvents({
'on-change': function onChange(value) {
// 当前的选项是否选中,如果有值就是选中了,需要进行筛选
context.changeMultipleOption({}, value && value.length > 0, item);
context[column.filterMultiple ? 'changeMultipleOption' : 'changeRadioOption']({}, value && value.length > 0, item);
}
}, filterRender, params)
});
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}
},
on: getFilterEvents(_defineProperty({}, type, function () {
context.changeMultipleOption({}, !!item.data, item);
context[column.filterMultiple ? 'changeMultipleOption' : 'changeRadioOption']({}, !!item.data, item);
}), filterRender, params)
});
});
Expand Down Expand Up @@ -373,7 +373,7 @@
on: getFilterEvents({
'on-change': function onChange(value) {
// 当前的选项是否选中,如果有值就是选中了,需要进行筛选
context.changeMultipleOption({}, value && value.length > 0, item);
context[column.filterMultiple ? 'changeMultipleOption' : 'changeRadioOption']({}, value && value.length > 0, item);
}
}, filterRender, params)
});
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function defaultFilterRender (h, filterRender, params, context) {
},
on: getFilterEvents({
[type] () {
context.changeMultipleOption({}, !!item.data, item)
context[column.filterMultiple ? 'changeMultipleOption' : 'changeRadioOption']({}, !!item.data, item)
}
}, filterRender, params)
})
Expand Down Expand Up @@ -273,7 +273,7 @@ const renderMap = {
on: getFilterEvents({
'on-change' (value) {
// 当前的选项是否选中,如果有值就是选中了,需要进行筛选
context.changeMultipleOption({}, value && value.length > 0, item)
context[column.filterMultiple ? 'changeMultipleOption' : 'changeRadioOption']({}, value && value.length > 0, item)
}
}, filterRender, params)
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-iview",
"version": "1.2.1",
"version": "1.2.2",
"description": "vxe-table render cell plugins for iview.",
"scripts": {
"lib": "gulp build"
Expand Down

0 comments on commit a3ef920

Please sign in to comment.