1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-16 11:36:20 +02:00

port console

This commit is contained in:
Kushagra Gour
2018-06-08 01:27:59 +05:30
parent e4bfc15764
commit a3fae1e2d8
5 changed files with 116 additions and 15 deletions

View File

@ -3,17 +3,19 @@ import Split from 'split.js';
import { log } from '../utils';
export class SplitPane extends Component {
shouldComponentUpdate(nextProps, nextState) {
return (
nextProps.direction !== this.props.direction ||
nextProps.sizes.join('') !== this.props.sizes.join('')
);
}
// shouldComponentUpdate(nextProps, nextState) {
// return (
// nextProps.direction !== this.props.direction ||
// nextProps.sizes.join('') !== this.props.sizes.join('')
// );
// }
componentDidMount() {
this.updateSplit();
}
componentWillUpdate() {
this.splitInstance.destroy();
if (this.splitInstance) {
this.splitInstance.destroy();
}
}
componentDidUpdate() {
this.updateSplit();