UNPKG

@cainiaofe/cn-ui-charts

Version:
27 lines 900 B
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import React from 'react'; var _ref = window.CNUI || {}, Checkbox = _ref.Checkbox; var CheckboxSetter = /*#__PURE__*/function (_React$Component) { _inheritsLoose(CheckboxSetter, _React$Component); function CheckboxSetter(props) { var _this; _this = _React$Component.call(this, props) || this; _this.state = {}; return _this; } var _proto = CheckboxSetter.prototype; _proto.render = function render() { var _this$props = this.props, value = _this$props.value, _onChange = _this$props.onChange; return /*#__PURE__*/React.createElement(Checkbox, { checked: value, onChange: function onChange(v) { _onChange === null || _onChange === void 0 ? void 0 : _onChange(v); } }); }; return CheckboxSetter; }(React.Component); export { CheckboxSetter as default };