UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

26 lines (23 loc) 1.16 kB
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; var genStepsCustomIconStyle = function genStepsCustomIconStyle(token) { var _ref; var componentCls = token.componentCls, stepsIconCustomTop = token.stepsIconCustomTop, stepsIconCustomSize = token.stepsIconCustomSize, stepsIconCustomFontSize = token.stepsIconCustomFontSize; return _ref = {}, _defineProperty(_ref, "".concat(componentCls, "-item-custom"), _defineProperty({}, "> ".concat(componentCls, "-item-container > ").concat(componentCls, "-item-icon"), _defineProperty({ height: 'auto', background: 'none', border: 0 }, "> ".concat(componentCls, "-icon"), { top: stepsIconCustomTop, width: stepsIconCustomSize, height: stepsIconCustomSize, fontSize: stepsIconCustomFontSize, lineHeight: "".concat(stepsIconCustomSize, "px") }))), _defineProperty(_ref, "&:not(".concat(componentCls, "-vertical)"), _defineProperty({}, "".concat(componentCls, "-item-custom"), _defineProperty({}, "".concat(componentCls, "-item-icon"), { width: 'auto', background: 'none' }))), _ref; }; export default genStepsCustomIconStyle;