UNPKG

@flatbiz/antd

Version:
29 lines (25 loc) 1.03 kB
/*! @flatjs/forge MIT @flatbiz/antd */ import { _ as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers-BYm17lo8.js'; import { classNames } from '@dimjs/utils/class-names/class-names'; import { Alert } from 'antd'; import { isUndefinedOrNull } from '@flatbiz/utils'; import { jsx } from 'react/jsx-runtime'; var _excluded = ["size"]; /** * antd Alert 无法控制内边距,此组件扩展size属性 */ var AlertWrapper = function AlertWrapper(props) { var size = props.size, otherProps = _objectWithoutProperties(props, _excluded); var sizeNew = isUndefinedOrNull(size) ? 'default' : size; var className = classNames({ 'alert-wrapper-small': sizeNew === 'small', 'alert-wrapper-default': sizeNew === 'default', 'alert-wrapper-large': sizeNew === 'large' }, props.className); return /*#__PURE__*/jsx(Alert, _objectSpread2(_objectSpread2({}, otherProps), {}, { className: className })); }; export { AlertWrapper as A }; //# sourceMappingURL=alert-BmOT4kc3.js.map