Steps.d.ts 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import { type ExtractPropTypes, type InjectionKey } from 'vue';
  2. export declare type StepsDirection = 'horizontal' | 'vertical';
  3. declare const stepsProps: {
  4. active: {
  5. type: (NumberConstructor | StringConstructor)[];
  6. default: number;
  7. };
  8. direction: {
  9. type: import("vue").PropType<StepsDirection>;
  10. default: StepsDirection;
  11. };
  12. activeIcon: {
  13. type: import("vue").PropType<string>;
  14. default: string;
  15. };
  16. iconPrefix: StringConstructor;
  17. finishIcon: StringConstructor;
  18. activeColor: StringConstructor;
  19. inactiveIcon: StringConstructor;
  20. inactiveColor: StringConstructor;
  21. };
  22. export declare type StepsProps = ExtractPropTypes<typeof stepsProps>;
  23. export declare type StepsProvide = {
  24. props: StepsProps;
  25. onClickStep: (index: number) => void;
  26. };
  27. export declare const STEPS_KEY: InjectionKey<StepsProvide>;
  28. declare const _default: import("vue").DefineComponent<{
  29. active: {
  30. type: (NumberConstructor | StringConstructor)[];
  31. default: number;
  32. };
  33. direction: {
  34. type: import("vue").PropType<StepsDirection>;
  35. default: StepsDirection;
  36. };
  37. activeIcon: {
  38. type: import("vue").PropType<string>;
  39. default: string;
  40. };
  41. iconPrefix: StringConstructor;
  42. finishIcon: StringConstructor;
  43. activeColor: StringConstructor;
  44. inactiveIcon: StringConstructor;
  45. inactiveColor: StringConstructor;
  46. }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-step"[], "click-step", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
  47. active: {
  48. type: (NumberConstructor | StringConstructor)[];
  49. default: number;
  50. };
  51. direction: {
  52. type: import("vue").PropType<StepsDirection>;
  53. default: StepsDirection;
  54. };
  55. activeIcon: {
  56. type: import("vue").PropType<string>;
  57. default: string;
  58. };
  59. iconPrefix: StringConstructor;
  60. finishIcon: StringConstructor;
  61. activeColor: StringConstructor;
  62. inactiveIcon: StringConstructor;
  63. inactiveColor: StringConstructor;
  64. }>> & {
  65. "onClick-step"?: ((...args: any[]) => any) | undefined;
  66. }, {
  67. active: string | number;
  68. direction: StepsDirection;
  69. activeIcon: string;
  70. }>;
  71. export default _default;