progress.mjs 1.1 KB

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