UNPKG

@aplus-frontend/ui

Version:

33 lines (32 loc) 1.11 kB
import { useToken as l } from "@aplus-frontend/antdv/es/theme/internal"; import { themeQuartz as c } from "ag-grid-community"; import { computed as i } from "vue"; import { useToken as u } from "../config-provider/hooks/use-token.mjs"; const B = (r, a, t) => { const [, n] = l(), { token: o } = u(); return i(() => { const d = r.value === "mini", e = n.value; return c.withParams({ headerHeight: "36px", headerFontSize: "12px", dataFontSize: "12px", foregroundColor: e.colorTextBase, wrapperBorder: !1, rowBorder: { color: e.colorBorderSecondary }, headerRowBorder: { color: e.colorBorderSecondary }, selectedRowBackgroundColor: e.controlItemBgActive, checkboxCheckedBackgroundColor: e.colorPrimary, rowHoverColor: o.value.colorBg2, headerBackgroundColor: o.value.tableHeaderBg, headerColumnResizeHandleHeight: "50%", headerColumnResizeHandleWidth: "1px", wrapperBorderRadius: "4px", ...t.value || {}, rowHeight: a.value, spacing: d ? "5px" : "6.5px" }); }); }; export { B as useTheme };