Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Apr 23, 2020
1 parent 0d3dc02 commit 98d57e3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
12 changes: 7 additions & 5 deletions dist/index.common.js

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,13 +556,14 @@
"class": 'vxe-table--filter-iview-wrapper'
}, optionGroups ? column.filters.map(function (option, oIndex) {
var optionValue = option.data;
var props = getCellEditFilterProps(renderOpts, params, optionValue);
return h('Select', {
key: oIndex,
attrs: attrs,
props: getCellEditFilterProps(renderOpts, params, optionValue),
props: props,
on: getFilterOns(renderOpts, params, option, function () {
// 处理 change 事件相关逻辑
handleConfirmFilter(params, option.data && option.data.length > 0, option);
handleConfirmFilter(params, props.multiple ? option.data && option.data.length > 0 : !_xeUtils["default"].eqNull(option.data), option);
})
}, _xeUtils["default"].map(optionGroups, function (group, gIndex) {
return h('OptionGroup', {
Expand All @@ -574,13 +575,14 @@
}));
}) : column.filters.map(function (option, oIndex) {
var optionValue = option.data;
var props = getCellEditFilterProps(renderOpts, params, optionValue);
return h('Select', {
key: oIndex,
attrs: attrs,
props: getCellEditFilterProps(renderOpts, params, optionValue),
props: props,
on: getFilterOns(renderOpts, params, option, function () {
// 处理 change 事件相关逻辑
handleConfirmFilter(params, option.data && option.data.length > 0, option);
handleConfirmFilter(params, props.multiple ? option.data && option.data.length > 0 : !_xeUtils["default"].eqNull(option.data), option);
})
}, renderOptions(h, options, optionProps));
}))];
Expand Down
Loading

0 comments on commit 98d57e3

Please sign in to comment.