loading.d.ts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import { SuperComponent } from '../common/src/index';
  2. import type { TdLoadingProps } from './type';
  3. export interface LoadingProps extends TdLoadingProps {
  4. }
  5. export default class Loading extends SuperComponent {
  6. externalClasses: string[];
  7. data: {
  8. prefix: string;
  9. classPrefix: string;
  10. show: boolean;
  11. };
  12. options: {
  13. multipleSlots: boolean;
  14. };
  15. properties: {
  16. delay?: {
  17. type: NumberConstructor;
  18. value?: number;
  19. };
  20. duration?: {
  21. type: NumberConstructor;
  22. value?: number;
  23. };
  24. externalClasses?: {
  25. type: ArrayConstructor;
  26. value?: ["t-class", "t-class-text", "t-class-indicator"];
  27. };
  28. indicator?: {
  29. type: BooleanConstructor;
  30. value?: boolean;
  31. };
  32. inheritColor?: {
  33. type: BooleanConstructor;
  34. value?: boolean;
  35. };
  36. layout?: {
  37. type: StringConstructor;
  38. value?: "horizontal" | "vertical";
  39. };
  40. loading?: {
  41. type: BooleanConstructor;
  42. value?: boolean;
  43. };
  44. pause?: {
  45. type: BooleanConstructor;
  46. value?: boolean;
  47. };
  48. progress?: {
  49. type: NumberConstructor;
  50. value?: number;
  51. };
  52. reverse?: {
  53. type: BooleanConstructor;
  54. value?: boolean;
  55. };
  56. size?: {
  57. type: StringConstructor;
  58. value?: string;
  59. };
  60. text?: {
  61. type: StringConstructor;
  62. value?: string;
  63. };
  64. theme?: {
  65. type: StringConstructor;
  66. value?: "error" | "circular" | "spinner" | "bar" | "dots";
  67. };
  68. };
  69. timer: any;
  70. observers: {
  71. loading(this: any, cur: any): void;
  72. };
  73. lifetimes: {
  74. detached(): void;
  75. };
  76. refreshPage(): void;
  77. }