union-key.d.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /** The union key namespace */
  2. declare namespace UnionKey {
  3. /**
  4. * The login module
  5. *
  6. * - pwd-login: password login
  7. * - code-login: phone code login
  8. * - register: register
  9. * - reset-pwd: reset password
  10. * - bind-wechat: bind wechat
  11. */
  12. type LoginModule = 'pwd-login' | 'code-login' | 'register' | 'reset-pwd' | 'bind-wechat';
  13. /** Theme scheme */
  14. type ThemeScheme = 'light' | 'dark' | 'auto';
  15. /**
  16. * Reset cache strategy
  17. *
  18. * - close: re-cache when close page
  19. * - refresh: re-cache when refresh page
  20. */
  21. type ResetCacheStrategy = 'close' | 'refresh';
  22. /**
  23. * The layout mode
  24. *
  25. * - vertical: the vertical menu in left
  26. * - horizontal: the horizontal menu in top
  27. * - vertical-mix: two vertical mixed menus in left
  28. * - top-hybrid-sidebar-first: the vertical first level menus in left and horizontal child level menus in top
  29. * - top-hybrid-header-first: the horizontal first level menus in top and vertical child level menus in left
  30. */
  31. type ThemeLayoutMode =
  32. | 'vertical'
  33. | 'horizontal'
  34. | 'vertical-mix'
  35. | 'vertical-hybrid-header-first'
  36. | 'top-hybrid-sidebar-first'
  37. | 'top-hybrid-header-first';
  38. /**
  39. * The scroll mode when content overflow
  40. *
  41. * - wrapper: the wrapper component's root element overflow
  42. * - content: the content component overflow
  43. */
  44. type ThemeScrollMode = import('@sa/materials').LayoutScrollMode;
  45. /** Page animate mode */
  46. type ThemePageAnimateMode = 'fade' | 'fade-slide' | 'fade-bottom' | 'fade-scale' | 'zoom-fade' | 'zoom-out' | 'none';
  47. /**
  48. * Tab mode
  49. *
  50. * - chrome: chrome style
  51. * - button: button style
  52. */
  53. type ThemeTabMode = import('@sa/materials').PageTabMode;
  54. /** Unocss animate key */
  55. type UnoCssAnimateKey =
  56. | 'pulse'
  57. | 'bounce'
  58. | 'spin'
  59. | 'ping'
  60. | 'bounce-alt'
  61. | 'flash'
  62. | 'pulse-alt'
  63. | 'rubber-band'
  64. | 'shake-x'
  65. | 'shake-y'
  66. | 'head-shake'
  67. | 'swing'
  68. | 'tada'
  69. | 'wobble'
  70. | 'jello'
  71. | 'heart-beat'
  72. | 'hinge'
  73. | 'jack-in-the-box'
  74. | 'light-speed-in-left'
  75. | 'light-speed-in-right'
  76. | 'light-speed-out-left'
  77. | 'light-speed-out-right'
  78. | 'flip'
  79. | 'flip-in-x'
  80. | 'flip-in-y'
  81. | 'flip-out-x'
  82. | 'flip-out-y'
  83. | 'rotate-in'
  84. | 'rotate-in-down-left'
  85. | 'rotate-in-down-right'
  86. | 'rotate-in-up-left'
  87. | 'rotate-in-up-right'
  88. | 'rotate-out'
  89. | 'rotate-out-down-left'
  90. | 'rotate-out-down-right'
  91. | 'rotate-out-up-left'
  92. | 'rotate-out-up-right'
  93. | 'roll-in'
  94. | 'roll-out'
  95. | 'zoom-in'
  96. | 'zoom-in-down'
  97. | 'zoom-in-left'
  98. | 'zoom-in-right'
  99. | 'zoom-in-up'
  100. | 'zoom-out'
  101. | 'zoom-out-down'
  102. | 'zoom-out-left'
  103. | 'zoom-out-right'
  104. | 'zoom-out-up'
  105. | 'bounce-in'
  106. | 'bounce-in-down'
  107. | 'bounce-in-left'
  108. | 'bounce-in-right'
  109. | 'bounce-in-up'
  110. | 'bounce-out'
  111. | 'bounce-out-down'
  112. | 'bounce-out-left'
  113. | 'bounce-out-right'
  114. | 'bounce-out-up'
  115. | 'slide-in-down'
  116. | 'slide-in-left'
  117. | 'slide-in-right'
  118. | 'slide-in-up'
  119. | 'slide-out-down'
  120. | 'slide-out-left'
  121. | 'slide-out-right'
  122. | 'slide-out-up'
  123. | 'fade-in'
  124. | 'fade-in-down'
  125. | 'fade-in-down-big'
  126. | 'fade-in-left'
  127. | 'fade-in-left-big'
  128. | 'fade-in-right'
  129. | 'fade-in-right-big'
  130. | 'fade-in-up'
  131. | 'fade-in-up-big'
  132. | 'fade-in-top-left'
  133. | 'fade-in-top-right'
  134. | 'fade-in-bottom-left'
  135. | 'fade-in-bottom-right'
  136. | 'fade-out'
  137. | 'fade-out-down'
  138. | 'fade-out-down-big'
  139. | 'fade-out-left'
  140. | 'fade-out-left-big'
  141. | 'fade-out-right'
  142. | 'fade-out-right-big'
  143. | 'fade-out-up'
  144. | 'fade-out-up-big'
  145. | 'fade-out-top-left'
  146. | 'fade-out-top-right'
  147. | 'fade-out-bottom-left'
  148. | 'fade-out-bottom-right'
  149. | 'back-in-up'
  150. | 'back-in-down'
  151. | 'back-in-right'
  152. | 'back-in-left'
  153. | 'back-out-up'
  154. | 'back-out-down'
  155. | 'back-out-right'
  156. | 'back-out-left';
  157. }