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) {
|
function PivotTableUI(props) {
|
||||||
_classCallCheck(this, PivotTableUI);
|
_classCallCheck(this, PivotTableUI);
|
||||||
|
|
||||||
|
console.log(' run constructor');
|
||||||
|
|
||||||
var _this5 = _possibleConstructorReturn(this, (PivotTableUI.__proto__ || Object.getPrototypeOf(PivotTableUI)).call(this, props));
|
var _this5 = _possibleConstructorReturn(this, (PivotTableUI.__proto__ || Object.getPrototypeOf(PivotTableUI)).call(this, props));
|
||||||
|
|
||||||
_this5.state = {
|
_this5.state = {
|
||||||
@ -338,7 +340,8 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
maxZIndex: 1000,
|
maxZIndex: 1000,
|
||||||
openDropdown: false,
|
openDropdown: false,
|
||||||
attrValues: {},
|
attrValues: {},
|
||||||
materializedInput: []
|
materializedInput: [],
|
||||||
|
hideConfiguration: props.hideConfiguration
|
||||||
};
|
};
|
||||||
return _this5;
|
return _this5;
|
||||||
}
|
}
|
||||||
@ -346,11 +349,13 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
_createClass(PivotTableUI, [{
|
_createClass(PivotTableUI, [{
|
||||||
key: 'componentDidMount',
|
key: 'componentDidMount',
|
||||||
value: function componentDidMount() {
|
value: function componentDidMount() {
|
||||||
|
console.log(' run componentDidMount');
|
||||||
this.materializeInput(this.props.data);
|
this.materializeInput(this.props.data);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'componentDidUpdate',
|
key: 'componentDidUpdate',
|
||||||
value: function componentDidUpdate() {
|
value: function componentDidUpdate() {
|
||||||
|
console.log(' run componentDidUpdate');
|
||||||
this.materializeInput(this.props.data);
|
this.materializeInput(this.props.data);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@ -508,6 +513,8 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
value: function render() {
|
value: function render() {
|
||||||
var _this8 = this;
|
var _this8 = this;
|
||||||
|
|
||||||
|
console.log(' run render');
|
||||||
|
|
||||||
var getRenderResult = function getRenderResult() {
|
var getRenderResult = function getRenderResult() {
|
||||||
return _this8.props.hideConfiguration === true;
|
return _this8.props.hideConfiguration === true;
|
||||||
};
|
};
|
||||||
@ -646,6 +653,12 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'table',
|
'table',
|
||||||
{ className: 'pvtUi' },
|
{ className: 'pvtUi' },
|
||||||
|
_react2.default.createElement(
|
||||||
|
'span',
|
||||||
|
null,
|
||||||
|
' ',
|
||||||
|
getRenderResult() ? ' hiding true ' : ' hiding false'
|
||||||
|
),
|
||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'tbody',
|
'tbody',
|
||||||
{ onClick: function onClick() {
|
{ onClick: function onClick() {
|
||||||
@ -664,6 +677,12 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'table',
|
'table',
|
||||||
{ className: 'pvtUi' },
|
{ className: 'pvtUi' },
|
||||||
|
_react2.default.createElement(
|
||||||
|
'span',
|
||||||
|
null,
|
||||||
|
' ',
|
||||||
|
getRenderResult() ? ' hiding true ' : ' hiding false'
|
||||||
|
),
|
||||||
getRenderResult() && _react2.default.createElement(
|
getRenderResult() && _react2.default.createElement(
|
||||||
'tbody',
|
'tbody',
|
||||||
{ onClick: function onClick() {
|
{ onClick: function onClick() {
|
||||||
@ -705,6 +724,12 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'table',
|
'table',
|
||||||
{ className: 'pvtUi' },
|
{ className: 'pvtUi' },
|
||||||
|
_react2.default.createElement(
|
||||||
|
'span',
|
||||||
|
null,
|
||||||
|
' ',
|
||||||
|
getRenderResult() ? ' hiding true ' : ' hiding false'
|
||||||
|
),
|
||||||
getRenderResult() && _react2.default.createElement(
|
getRenderResult() && _react2.default.createElement(
|
||||||
'tbody',
|
'tbody',
|
||||||
{ onClick: function onClick() {
|
{ onClick: function onClick() {
|
||||||
|
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.6",
|
"version": "0.11.7",
|
||||||
"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