UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

70 lines (55 loc) 1.72 kB
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _inherits from "@babel/runtime/helpers/inherits"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; function _createSuper(Derived) { function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } return function () { var Super = _getPrototypeOf(Derived), result; if (isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } import { Component } from 'react'; import PropTypes from 'prop-types'; /* eslint-disable react/prefer-stateless-function,react/no-unused-prop-types */ var TreeNode = /*#__PURE__*/ function (_Component) { _inherits(TreeNode, _Component); var _super = _createSuper(TreeNode); function TreeNode() { _classCallCheck(this, TreeNode); return _super.apply(this, arguments); } return TreeNode; }(Component); export { TreeNode as default }; TreeNode.propTypes = { /** * 选项值 */ value: PropTypes.any, /** * 显示值 */ title: PropTypes.any }; TreeNode.__PRO_TREE_SELECT_NODE = true; //# sourceMappingURL=TreeNode.js.map