import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
import { PROGRESS_TYPE } from './const';

function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
const commonProps = {
  percent: {
    type: Number,
    default: 0
  },
  color: {
    type: String
  }
};

// 条形进度条的props
const lineProgressProps = _objectSpread(_objectSpread({}, commonProps), {}, {
  // 是否內显百分比
  showInnerPercent: {
    type: Boolean,
    default: false
  },
  // 是否外显百分比
  showOutPercent: {
    type: Boolean,
    default: false
  },
  height: {
    type: Number,
    default: 8
  }
});

// 环形进度条的props
const circleProgressProps = _objectSpread(_objectSpread({}, commonProps), {}, {
  width: {
    type: Number,
    default: 8
  },
  // 环形直径大小
  circleSize: {
    type: Number,
    default: 160
  },
  showCircleText: {
    type: Boolean,
    default: false
  }
});
const progressProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, commonProps), lineProgressProps), circleProgressProps), {}, {
  type: {
    type: String,
    default: PROGRESS_TYPE.LINE
  }
});

// 组件暴露给外部的 props 类型

export { circleProgressProps, lineProgressProps, progressProps };
