@antv/s2-react
Version:
use S2 with react
12 lines • 623 B
JavaScript
import { TOOLTIP_PREFIX_CLS, i18n, } from '@antv/s2';
import React from 'react';
export const TooltipHead = React.memo((props) => {
var _a, _b;
const { rows = [], cols = [] } = props;
return (React.createElement("div", { className: `${TOOLTIP_PREFIX_CLS}-head-info-list` }, (_a = cols.map((item) => item.value)) === null || _a === void 0 ? void 0 :
_a.join('/'),
cols.length > 0 && rows.length > 0 && i18n(','), (_b = rows.map((item) => item.value)) === null || _b === void 0 ? void 0 :
_b.join('/')));
});
TooltipHead.displayName = 'TooltipHead';
//# sourceMappingURL=head-info.js.map