UNPKG

@aplus-frontend/ui

Version:

76 lines (75 loc) 2.04 kB
import { multiRows as e } from "../../style/index.mjs"; import { genComponentStyleHook as l } from "../../utils/cssinjs/index.mjs"; const n = (a) => { const { componentCls: t } = a; return { [t]: { ".ant-form-item": { marginBlockEnd: a.spaceXL }, [`${t}__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" }, [`${t}-table-header`]: { "&__title": { ...e(a), textAlign: "right" } } } }; }, i = l( "EditableTable", (a) => [n(a)], (a) => ({ editableTableHeaderBg: a.tableHeaderBg }) ); export { i as default, n as genEditableTableStyle };