UNPKG

@aplus-frontend/ui

Version:

2 lines (1 loc) 1.55 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../style/index.js"),n=require("../../utils/cssinjs/index.js"),t=a=>{const{componentCls:e}=a;return{[e]:{".ant-form-item":{marginBlockEnd:a.spaceXL},[`${e}__header-cell--required`]:{color:a.colorError,paddingInlineEnd:a.spaceXXS},".ant-pagination":{marginBlockEnd:"0 !important",".ant-pagination-total-text":{flex:1}},"tr > th.ant-table-cell":{"&::before":{display:"none"},backgroundColor:a.editableTableHeaderBg},".ant-table.ant-table-middle .ant-table-row .ant-table-cell:has(.is-editable)":{paddingBlockStart:a.spaceXL,paddingBlockEnd:0},".ant-table.ant-table-middle .ant-table-row .ant-table-cell":{padding:a.spaceLG},".ant-table.ant-table-middle .ant-table-thead .ant-table-cell":{padding:a.spaceLG},".ant-table.ant-table-small .ant-table-row .ant-table-cell:has(.is-editable)":{paddingBlockStart:a.spaceXL,paddingBlockEnd:0},".ant-table.ant-table-small .ant-table-row .ant-table-cell":{padding:a.space},".ant-table.ant-table-small .ant-table-thead .ant-table-cell":{padding:a.space},".ant-table-placeholder .ant-table-expanded-row-fixed":{"&::after":{borderInlineEndWidth:"0px !important"}},".ant-table-cell .ant-typography":{marginBlockEnd:0},".ant-form-item-explain-error":{textAlign:"left"},[`${e}-table-header`]:{"&__title":{...l.multiRows(a),textAlign:"right"}}}}},d=n.genComponentStyleHook("EditableTable",a=>[t(a)],a=>({editableTableHeaderBg:a.tableHeaderBg}));exports.default=d;exports.genEditableTableStyle=t;