loading.d.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. style?: {
  17. type: StringConstructor;
  18. value?: string;
  19. };
  20. delay?: {
  21. type: NumberConstructor;
  22. value?: number;
  23. };
  24. duration?: {
  25. type: NumberConstructor;
  26. value?: number;
  27. };
  28. externalClasses?: {
  29. type: ArrayConstructor;
  30. value?: ["t-class", "t-class-text", "t-class-indicator"];
  31. };
  32. indicator?: {
  33. type: BooleanConstructor;
  34. value?: boolean;
  35. };
  36. inheritColor?: {
  37. type: BooleanConstructor;
  38. value?: boolean;
  39. };
  40. layout?: {
  41. type: StringConstructor;
  42. value?: "horizontal" | "vertical";
  43. };
  44. loading?: {
  45. type: BooleanConstructor;
  46. value?: boolean;
  47. };
  48. pause?: {
  49. type: BooleanConstructor;
  50. value?: boolean;
  51. };
  52. progress?: {
  53. type: NumberConstructor;
  54. value?: number;
  55. };
  56. reverse?: {
  57. type: BooleanConstructor;
  58. value?: boolean;
  59. };
  60. size?: {
  61. type: StringConstructor;
  62. value?: string;
  63. };
  64. text?: {
  65. type: StringConstructor;
  66. value?: string;
  67. };
  68. theme?: {
  69. type: StringConstructor;
  70. value?: "error" | "circular" | "spinner" | "bar" | "dots";
  71. };
  72. };
  73. timer: any;
  74. observers: {
  75. loading(this: any, cur: any): void;
  76. };
  77. lifetimes: {
  78. detached(): void;
  79. };
  80. refreshPage(): void;
  81. }