UNPKG

@yuntijs/ui

Version:

☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps

17 lines 1.4 kB
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral"; var _templateObject, _templateObject2; import { createStyles } from 'antd-style'; export var useStyles = createStyles(function (_ref, _ref2) { var css = _ref.css, prefixCls = _ref.prefixCls; var _ref2$borderd = _ref2.borderd, borderd = _ref2$borderd === void 0 ? true : _ref2$borderd, footer = _ref2.footer; var noFooter = footer === null || Array.isArray(footer) && footer.length === 0; var borderdStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", "-modal-header::after {\n content: ' ';\n\n position: absolute;\n top: 56px;\n left: 0;\n\n width: 100%;\n height: 1px;\n\n background: rgba(5, 5, 5, 0.06);\n }\n .", "-modal-body {\n margin-top: 40px;\n margin-bottom: ", ";\n }\n .", "-modal-body::after {\n content: ' ';\n\n position: absolute;\n bottom: 72px;\n left: 0;\n\n width: 100%;\n height: ", ";\n\n background: rgba(5, 5, 5, 0.06);\n }\n "])), prefixCls, prefixCls, noFooter ? 0 : '40px', prefixCls, noFooter ? 0 : '1px'); return { custom: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n "])), borderd && borderdStyle) }; }, { hashPriority: 'low' });