progress.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var runtime = require('../../../utils/vue/props/runtime.js');
  4. const progressProps = runtime.buildProps({
  5. type: {
  6. type: String,
  7. default: "line",
  8. values: ["line", "circle", "dashboard"]
  9. },
  10. percentage: {
  11. type: Number,
  12. default: 0,
  13. validator: (val) => val >= 0 && val <= 100
  14. },
  15. status: {
  16. type: String,
  17. default: "",
  18. values: ["", "success", "exception", "warning"]
  19. },
  20. indeterminate: Boolean,
  21. duration: {
  22. type: Number,
  23. default: 3
  24. },
  25. strokeWidth: {
  26. type: Number,
  27. default: 6
  28. },
  29. strokeLinecap: {
  30. type: runtime.definePropType(String),
  31. default: "round"
  32. },
  33. textInside: Boolean,
  34. width: {
  35. type: Number,
  36. default: 126
  37. },
  38. showText: {
  39. type: Boolean,
  40. default: true
  41. },
  42. color: {
  43. type: runtime.definePropType([
  44. String,
  45. Array,
  46. Function
  47. ]),
  48. default: ""
  49. },
  50. striped: Boolean,
  51. stripedFlow: Boolean,
  52. format: {
  53. type: runtime.definePropType(Function),
  54. default: (percentage) => `${percentage}%`
  55. }
  56. });
  57. exports.progressProps = progressProps;
  58. //# sourceMappingURL=progress.js.map