@aplus-frontend/ui
Version:
2 lines (1 loc) • 2.9 kB
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../style/index.js"),s=require("../../utils/cssinjs/index.js"),i=e=>{const{componentCls:t,namespace:l}=e;return{[t]:{[`${t}-wrapper`]:{display:"flex",flexDirection:"row",flexWrap:"nowrap",height:"100%",paddingBlockEnd:"12px",[`.${l}-ap-table-table-header__title`]:{...n.singleRow(e)},[`.${l}-ap-grid-table-header__title`]:{...n.singleRow(e),fontWeight:"normal",color:e.textColor1},[`.${l}-ag-grid-table-header__title`]:{...n.singleRow(e)}},[`${t}-left`]:{flex:1,flexShrink:1,minWidth:0,paddingInline:"20px",display:"flex",flexDirection:"column","&__header":{display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center",padding:e.space,"&-tips":{color:e.textColor3}},"&__content":{flex:1,padding:e.spaceLG,overflowY:"auto",".ant-col":{lineHeight:0},".ant-checkbox-wrapper":{maxWidth:"100%",display:"inline-flex",alignItems:"center","> span:last-child":{flex:1,minWidth:0}}}},[`${t}-right`]:{width:"240px"}}}},o=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-select-group`]:{"&-header":{backgroundColor:"#F2F6F9",padding:"4px 12px",borderRadius:"4px",marginBlockEnd:"12px",marginInline:"-12px",display:"flex"}}}}},r=e=>{const{componentCls:t}=e,l=`${t}-sortable-item-meta`;return{[t]:{[l]:{padding:"6px 8px",marginTop:"4px",display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center","&:hover":{backgroundColor:"#F1F7FF",borderRadius:"2px",cursor:"pointer",[`${l}-right`]:{display:"block"},[`${l}-left__holder`]:{color:`${e.colorPrimary} !important`}},"&-left":{flex:1,display:"inline-flex",alignItems:"center",minWidth:0,"&__indicator":{display:"inline-flex",justifyContent:"center",alignItems:"center",width:"16px",height:"16px",marginRight:"4px",flexShrink:0},"&__label-wrapper":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},"&-right":{display:"none",paddingLeft:"12px"},".is-level2":{marginLeft:"16px"},"&-action-item":{"&:hover":{color:e.colorPrimary}}}}}},a=e=>{const{componentCls:t}=e;return{[t]:{[`${e.componentCls}-sortable-item`]:{".is-hidden":{display:"none"}}}}},p=e=>{const{componentCls:t}=e;return{[t]:{[`${e.componentCls}-sorter`]:{display:"flex",flexDirection:"column",height:"100%","&-section-title":{fontSize:"12px",lineHeight:"20px",color:e.textColor3,padding:"2px 8px",margin:"4px"},"&-header":{padding:"12px 20px","&-title":{...n.resetComponent(e),fontWeight:"bold",color:e.textColor1}},"&-content":{flex:1,overflowY:"auto",padding:"8px 12px 0px 8px"}}}}},c=s.genComponentStyleHook("ApTable.Setting",e=>[i(e),o(e),a(e),r(e),p(e)]);exports.default=c;exports.genTableSettingSelectGroupStyle=o;exports.genTableSettingSortableItemMetaStyle=r;exports.genTableSettingSortableItemStyle=a;exports.genTableSettingSorterStyle=p;exports.genTableSettingStyle=i;