UNPKG

winbox-ui-next

Version:

We Design Vue 2.0: A Vue.js 3 UI Library

18 lines (17 loc) 457 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports[Symbol.toStringTag] = "Module"; const getTabListStyle = ({ direction, type, offset }) => { if (direction === "vertical") { return { transform: `translateY(${-offset}px)` }; } if (type === "capsule") { return { transform: `translateX(${offset}px)` }; } return { transform: `translateX(${-offset}px)` }; }; exports.getTabListStyle = getTabListStyle;