UNPKG

@antv/f2

Version:

Charts for mobile visualization.

15 lines 576 B
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; import { jsx } from '../../jsx'; import Horizontal from './horizontal'; import Vertical from './vertical'; export default (function (props) { var position = props.position, mode = props.mode; if (mode.length > 1) { return jsx("group", null, jsx(Vertical, _objectSpread({}, props)), jsx(Horizontal, _objectSpread({}, props))); } if (position === 'left' || position === 'right') { return jsx(Vertical, _objectSpread({}, props)); } return jsx(Horizontal, _objectSpread({}, props)); });