@aplus-frontend/ui
Version:
2 lines (1 loc) • 1.65 kB
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../utils/cssinjs/index.js"),n=e=>{const{namespace:o}=e,r=`.${o}-ap-form-search-form__popover`;return{[r]:{".ant-form-item":{marginBlockEnd:e.space},".ant-popover-arrow":{display:"none"},".ant-popover-inner":{padding:0},[`${r}-content`]:{padding:`${e.spaceLG} ${e.spaceXL} ${e.spaceXL}`,textarea:{padding:0}},[`${r}-footer`]:{padding:`${e.spaceLG} ${e.spaceXL}`,"&-confirm-btn":{marginLeft:"10px"},"& button.ant-btn":{paddingInline:e.spaceXL}}}}},t=e=>{const{componentCls:o}=e;return{[o]:{".ant-form-item":{marginBlockEnd:e.space},".ant-form-item-control":{".ant-picker":{display:"flex"},".ant-input-number":{width:"100%"}},[`${o}-trigger-btn`]:{fontSize:0,"&-active":{color:e.hoverColorBase,borderColor:e.hoverColorBase,zIndex:1},"&-badge":{display:"inline-block",padding:e.spaceXXS,minWidth:"14px",height:"14px",backgroundColor:e.colorPrimary,fontSize:"10px",lineHeight:1,borderRadius:"7px",color:"#fff",position:"absolute",top:0,left:0,transform:"translate(-50%, -50%)",boxShadow:"0 0 0 1px #fff"}},[`${o}-column-setting-trigger-wrapper`]:{flexShrink:0,".ant-btn:not(:only-child)":{"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0,"&:hover":{zIndex:1}},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginLeft:"-1px","&:hover":{zIndex:1}}}},[`${o}-action-btn`]:{paddingInline:e.spaceLG},[`${o}-action-btn-reset`]:{backgroundColor:e.colorBg1}},...n(e)}},i=a.genComponentStyleHook("ApForm.SearchForm",e=>[t(e)]);exports.default=i;exports.genPopoverStyle=n;exports.genSearchFormStyle=t;