20181110 release

This commit is contained in:
AllenFang 2018-11-10 17:09:06 +08:00
parent d947f1be0b
commit fc84c1c1a2
2 changed files with 31 additions and 4 deletions

View File

@ -124,15 +124,15 @@ const qualityFilter = selectFilter({
> Note, the `selectOptions` can be an array also:
```js
const selectOptions = [
{ label: 0, value: 'good' },
{ label: 1, value: 'Bad' },
{ label: 2, value: 'unknown' }
{ value: 0, label: 'good' },
{ value: 1, label: 'Bad' },
{ value: 2, label: 'unknown' }
];
const columns = [
..., {
dataField: 'quality',
text: 'Product Quailty',
formatter: cell => selectOptions.find(opt => opt.label === cell).value,
formatter: cell => selectOptions.find(opt => opt.value === cell).label,
filter: selectFilter({
options: selectOptions
})

View File

@ -0,0 +1,27 @@
---
title: New Release (2018-11-10)
author: Allen Fang
authorURL: https://twitter.com/allenfang_tw
---
## Changed Packages
We got following package version bump in this release:
* `react-bootstrap-table-next@1.4.1`
* `react-bootstrap-table2-filter@1.1.0`
* `react-bootstrap-table2-paginator@1.0.4`
* `react-bootstrap-table2-editor@1.2.2`
## Changelog
### Bug fixes
* Fixed wrong usage of `label` and `value` for the options of select filter.
* Fixed wrong `from` and `to` value when enable `showTotal` for pagination.
* Fixed `condensed` is broken in `bootstrap@4`
* Fixed the error message disappear in `bootstrap@4`
### Features
### Enhancements