cambio de manejo de menus de filtros, mostrar siempre, mostrar las primeras 500 opciones
This commit is contained in:
parent
77edaa2ba8
commit
51f67cfbd2
@ -85,10 +85,10 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
|||||||
value: function getFilterBox() {
|
value: function getFilterBox() {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
var showMenu = Object.keys(this.props.attrValues).length < this.props.menuLimit;
|
// const showMenu = Object.keys(this.props.attrValues).length < this.props.menuLimit;
|
||||||
|
|
||||||
var values = Object.keys(this.props.attrValues);
|
var values = Object.keys(this.props.attrValues);
|
||||||
var shown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter);
|
var shown = values.filter(this.matchesFilter.bind(this)).sort(this.props.sorter).slice(0, this.props.menuLimit);
|
||||||
|
|
||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
_reactDraggable2.default,
|
_reactDraggable2.default,
|
||||||
@ -123,12 +123,7 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
|||||||
null,
|
null,
|
||||||
this.props.name
|
this.props.name
|
||||||
),
|
),
|
||||||
showMenu || _react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'p',
|
|
||||||
null,
|
|
||||||
'(too many values to show)'
|
|
||||||
),
|
|
||||||
showMenu && _react2.default.createElement(
|
|
||||||
'p',
|
'p',
|
||||||
null,
|
null,
|
||||||
_react2.default.createElement('input', {
|
_react2.default.createElement('input', {
|
||||||
@ -169,7 +164,7 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
|||||||
values.length === shown.length ? 'All' : shown.length
|
values.length === shown.length ? 'All' : shown.length
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
showMenu && _react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'div',
|
'div',
|
||||||
{ className: 'pvtCheckContainer' },
|
{ className: 'pvtCheckContainer' },
|
||||||
shown.map(function (x) {
|
shown.map(function (x) {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "v-react-pivottable",
|
"name": "v-react-pivottable",
|
||||||
"version": "0.11.16",
|
"version": "0.11.17",
|
||||||
"description": "A React-based pivot table",
|
"description": "A React-based pivot table",
|
||||||
"main": "PivotTableUI.js",
|
"main": "PivotTableUI.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
Loading…
Reference in New Issue
Block a user