react-admin-kit
Version:
A react based UI components for admin system
22 lines (21 loc) • 797 B
JavaScript
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["visible"];
import { Button as AntButton } from 'antd';
import { jsx as _jsx } from "react/jsx-runtime";
var Button = function Button(props) {
var _props$visible = props.visible,
visible = _props$visible === void 0 ? true : _props$visible,
restProps = _objectWithoutProperties(props, _excluded);
var ret = typeof visible === 'function' ? visible() : visible;
if (!ret) {
return null;
}
return /*#__PURE__*/_jsx(AntButton, _objectSpread({}, restProps));
};
export default Button;
// 用于生成api文档
/* istanbul ignore next */
export var ButtonSelf = function ButtonSelf() {
return null;
};