UNPKG

sk-react-antd

Version:
22 lines (19 loc) 659 B
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } import PropTypes from 'prop-types'; import { SK } from 'sk-js'; var CommonTag = function CommonTag() { _classCallCheck(this, CommonTag); }; CommonTag.defaultProps = SK.extends(true, {}, { closable: false, visible: true }, {}); CommonTag.propTypes = SK.extends(true, {}, { //https://ant.design/components/tag-cn/#Tag afterClose: PropTypes.func, closable: PropTypes.bool, color: PropTypes.string, onClose: PropTypes.func, visible: PropTypes.bool }, {}); export { CommonTag as default };