agregar console.log, tests prop hide/show
This commit is contained in:
parent
b615f0a0c5
commit
7565e18417
@ -330,6 +330,8 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
function PivotTableUI(props) {
|
||||
_classCallCheck(this, PivotTableUI);
|
||||
|
||||
console.log(' run constructor');
|
||||
|
||||
var _this5 = _possibleConstructorReturn(this, (PivotTableUI.__proto__ || Object.getPrototypeOf(PivotTableUI)).call(this, props));
|
||||
|
||||
_this5.state = {
|
||||
@ -338,7 +340,8 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
maxZIndex: 1000,
|
||||
openDropdown: false,
|
||||
attrValues: {},
|
||||
materializedInput: []
|
||||
materializedInput: [],
|
||||
hideConfiguration: props.hideConfiguration
|
||||
};
|
||||
return _this5;
|
||||
}
|
||||
@ -346,11 +349,13 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
_createClass(PivotTableUI, [{
|
||||
key: 'componentDidMount',
|
||||
value: function componentDidMount() {
|
||||
console.log(' run componentDidMount');
|
||||
this.materializeInput(this.props.data);
|
||||
}
|
||||
}, {
|
||||
key: 'componentDidUpdate',
|
||||
value: function componentDidUpdate() {
|
||||
console.log(' run componentDidUpdate');
|
||||
this.materializeInput(this.props.data);
|
||||
}
|
||||
}, {
|
||||
@ -508,6 +513,8 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
value: function render() {
|
||||
var _this8 = this;
|
||||
|
||||
console.log(' run render');
|
||||
|
||||
var getRenderResult = function getRenderResult() {
|
||||
return _this8.props.hideConfiguration === true;
|
||||
};
|
||||
@ -646,6 +653,12 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
return _react2.default.createElement(
|
||||
'table',
|
||||
{ className: 'pvtUi' },
|
||||
_react2.default.createElement(
|
||||
'span',
|
||||
null,
|
||||
' ',
|
||||
getRenderResult() ? ' hiding true ' : ' hiding false'
|
||||
),
|
||||
_react2.default.createElement(
|
||||
'tbody',
|
||||
{ onClick: function onClick() {
|
||||
@ -664,6 +677,12 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
return _react2.default.createElement(
|
||||
'table',
|
||||
{ className: 'pvtUi' },
|
||||
_react2.default.createElement(
|
||||
'span',
|
||||
null,
|
||||
' ',
|
||||
getRenderResult() ? ' hiding true ' : ' hiding false'
|
||||
),
|
||||
getRenderResult() && _react2.default.createElement(
|
||||
'tbody',
|
||||
{ onClick: function onClick() {
|
||||
@ -705,6 +724,12 @@ var PivotTableUI = function (_React$PureComponent2) {
|
||||
return _react2.default.createElement(
|
||||
'table',
|
||||
{ className: 'pvtUi' },
|
||||
_react2.default.createElement(
|
||||
'span',
|
||||
null,
|
||||
' ',
|
||||
getRenderResult() ? ' hiding true ' : ' hiding false'
|
||||
),
|
||||
getRenderResult() && _react2.default.createElement(
|
||||
'tbody',
|
||||
{ onClick: function onClick() {
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "v-react-pivottable",
|
||||
"version": "0.11.6",
|
||||
"version": "0.11.7",
|
||||
"description": "A React-based pivot table",
|
||||
"main": "PivotTableUI.js",
|
||||
"files": [
|
||||
|
Loading…
Reference in New Issue
Block a user