UNPKG

525 BJavaScriptView Raw
1import { __assign } from "tslib";
2import { jsx } from '@antv/f-engine';
3import Horizontal from './horizontal';
4import Vertical from './vertical';
5export default (function (props) {
6 var position = props.position,
7 mode = props.mode;
8 if (mode.length > 1) {
9 return jsx("group", null, jsx(Vertical, __assign({}, props)), jsx(Horizontal, __assign({}, props)));
10 }
11 if (position === 'left' || position === 'right') {
12 return jsx(Vertical, __assign({}, props));
13 }
14 return jsx(Horizontal, __assign({}, props));
15});
\No newline at end of file