"use strict";
const uni_modules_tdesignUniapp_components_common_utils_wxs = require("../common/utils.wxs.js");
function animate(options) {
  if (options.duration) {
    return uni_modules_tdesignUniapp_components_common_utils_wxs.tools._style({
      "transition-duration": `${options.duration}s`,
      transform: `translate3d( ${-100 * options.currentIndex}%,0, 0)`
    });
  }
  return "";
}
function trackStyle(options) {
  if (options.distance || options.lineWidth) {
    return uni_modules_tdesignUniapp_components_common_utils_wxs.tools._style({
      "-webkit-transform": `translateX(${options.distance}px)`,
      transform: `translateX(${options.distance}px)`,
      "transition-duration": options.isInit ? "0" : "0.3s",
      width: `${options.lineWidth}px`,
      opacity: 1
    });
  }
  return "";
}
exports.animate = animate;
exports.trackStyle = trackStyle;
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/tdesign-uniapp/components/tabs/computed.js.map
