"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeRendererWrap = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
class NodeRendererWrap extends react_1.default.Component {
    render() {
        const { item, itemType, children, template, hasPrompt } = this.props;
        return react_1.default.createElement(children, { item, itemType, template, hasPrompt, key: item.id });
    }
    shouldComponentUpdate(nextProps) {
        // 判断节点需不需要更新
        // TODO: 区分forceUpdate及普通更新，优化性能
        return true;
    }
}
exports.NodeRendererWrap = NodeRendererWrap;
//# sourceMappingURL=TreeNodeRendererWrap.js.map