@aplus-frontend/ui
Version:
31 lines (30 loc) • 1 kB
JavaScript
import { useToken as d } from "@aplus-frontend/antdv/es/theme/internal";
import { themeQuartz as n } from "ag-grid-community";
import { computed as c } from "vue";
const h = (o, r) => {
const [, a] = d();
return c(() => {
const t = o.value === "mini", e = a.value;
return n.withParams({
headerHeight: "36px",
headerFontSize: "12px",
dataFontSize: "12px",
rowHeight: r.value,
spacing: t ? "5px" : "6.5px",
foregroundColor: e.colorTextBase,
wrapperBorder: !1,
rowBorder: { color: e.colorBorderSecondary },
headerRowBorder: { color: e.colorBorderSecondary },
selectedRowBackgroundColor: e.controlItemBgActive,
checkboxCheckedBackgroundColor: e.colorPrimary,
rowHoverColor: "var(--ap-color-bg-2)",
headerBackgroundColor: "var(--ap-table-header-bg)",
headerColumnResizeHandleHeight: "50%",
headerColumnResizeHandleWidth: "1px",
wrapperBorderRadius: "4px"
});
});
};
export {
h as useTheme
};