Spin.d.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. import type { VNode, ExtractPropTypes, PropType } from 'vue';
  2. export declare type SpinSize = 'small' | 'default' | 'large';
  3. export declare const spinProps: () => {
  4. prefixCls: StringConstructor;
  5. spinning: {
  6. type: BooleanConstructor;
  7. default: any;
  8. };
  9. size: PropType<SpinSize>;
  10. wrapperClassName: StringConstructor;
  11. tip: import("vue-types").VueTypeValidableDef<any>;
  12. delay: NumberConstructor;
  13. indicator: import("vue-types").VueTypeValidableDef<any>;
  14. };
  15. export declare type SpinProps = Partial<ExtractPropTypes<ReturnType<typeof spinProps>>>;
  16. export declare function setDefaultIndicator(Content: any): void;
  17. declare const _default: import("vue").DefineComponent<{
  18. prefixCls: StringConstructor;
  19. spinning: {
  20. type: BooleanConstructor;
  21. default: any;
  22. };
  23. size: PropType<SpinSize>;
  24. wrapperClassName: StringConstructor;
  25. tip: import("vue-types").VueTypeValidableDef<any>;
  26. delay: NumberConstructor;
  27. indicator: import("vue-types").VueTypeValidableDef<any>;
  28. }, {
  29. originalUpdateSpinning: any;
  30. configProvider: {
  31. form?: {
  32. validateMessages?: {
  33. default?: string | (() => string);
  34. required?: string | (() => string);
  35. enum?: string | (() => string);
  36. whitespace?: string | (() => string);
  37. date?: {
  38. format?: string | (() => string);
  39. parse?: string | (() => string);
  40. invalid?: string | (() => string);
  41. };
  42. types?: {
  43. string?: string | (() => string);
  44. method?: string | (() => string);
  45. array?: string | (() => string);
  46. object?: string | (() => string);
  47. number?: string | (() => string);
  48. date?: string | (() => string);
  49. boolean?: string | (() => string);
  50. integer?: string | (() => string);
  51. float?: string | (() => string);
  52. regexp?: string | (() => string);
  53. email?: string | (() => string);
  54. url?: string | (() => string);
  55. hex?: string | (() => string);
  56. };
  57. string?: {
  58. len?: string | (() => string);
  59. min?: string | (() => string);
  60. max?: string | (() => string);
  61. range?: string | (() => string);
  62. };
  63. number?: {
  64. len?: string | (() => string);
  65. min?: string | (() => string);
  66. max?: string | (() => string);
  67. range?: string | (() => string);
  68. };
  69. array?: {
  70. len?: string | (() => string);
  71. min?: string | (() => string);
  72. max?: string | (() => string);
  73. range?: string | (() => string);
  74. };
  75. pattern?: {
  76. mismatch?: string | (() => string);
  77. };
  78. };
  79. requiredMark?: import("../form/Form").RequiredMark;
  80. colon?: boolean;
  81. };
  82. locale?: {
  83. locale: string;
  84. Pagination?: {
  85. items_per_page?: string;
  86. jump_to?: string;
  87. jump_to_confirm?: string;
  88. page?: string;
  89. prev_page?: string;
  90. next_page?: string;
  91. prev_5?: string;
  92. next_5?: string;
  93. prev_3?: string;
  94. next_3?: string;
  95. };
  96. Table?: {
  97. filterTitle?: string;
  98. filterConfirm?: any;
  99. filterReset?: any;
  100. filterEmptyText?: any;
  101. filterCheckall?: any;
  102. filterSearchPlaceholder?: any;
  103. emptyText?: any;
  104. selectAll?: any;
  105. selectNone?: any;
  106. selectInvert?: any;
  107. selectionAll?: any;
  108. sortTitle?: string;
  109. expand?: string;
  110. collapse?: string;
  111. triggerDesc?: string;
  112. triggerAsc?: string;
  113. cancelSort?: string;
  114. };
  115. Popconfirm?: Record<string, any>;
  116. Form?: {
  117. optional?: string;
  118. defaultValidateMessages: {
  119. default?: string | (() => string);
  120. required?: string | (() => string);
  121. enum?: string | (() => string);
  122. whitespace?: string | (() => string);
  123. date?: {
  124. format?: string | (() => string);
  125. parse?: string | (() => string);
  126. invalid?: string | (() => string);
  127. };
  128. types?: {
  129. string?: string | (() => string);
  130. method?: string | (() => string);
  131. array?: string | (() => string);
  132. object?: string | (() => string);
  133. number?: string | (() => string);
  134. date?: string | (() => string);
  135. boolean?: string | (() => string);
  136. integer?: string | (() => string);
  137. float?: string | (() => string);
  138. regexp?: string | (() => string);
  139. email?: string | (() => string);
  140. url?: string | (() => string);
  141. hex?: string | (() => string);
  142. };
  143. string?: {
  144. len?: string | (() => string);
  145. min?: string | (() => string);
  146. max?: string | (() => string);
  147. range?: string | (() => string);
  148. };
  149. number?: {
  150. len?: string | (() => string);
  151. min?: string | (() => string);
  152. max?: string | (() => string);
  153. range?: string | (() => string);
  154. };
  155. array?: {
  156. len?: string | (() => string);
  157. min?: string | (() => string);
  158. max?: string | (() => string);
  159. range?: string | (() => string);
  160. };
  161. pattern?: {
  162. mismatch?: string | (() => string);
  163. };
  164. };
  165. };
  166. Image?: {
  167. preview: string;
  168. };
  169. DatePicker?: {
  170. lang: {
  171. locale: string;
  172. monthBeforeYear?: boolean;
  173. yearFormat: string;
  174. monthFormat?: string;
  175. quarterFormat?: string;
  176. today: string;
  177. now: string;
  178. backToToday: string;
  179. ok: string;
  180. timeSelect: string;
  181. dateSelect: string;
  182. weekSelect?: string;
  183. clear: string;
  184. month: string;
  185. year: string;
  186. previousMonth: string;
  187. nextMonth: string;
  188. monthSelect: string;
  189. yearSelect: string;
  190. decadeSelect: string;
  191. dayFormat: string;
  192. dateFormat: string;
  193. dateTimeFormat: string;
  194. previousYear: string;
  195. nextYear: string;
  196. previousDecade: string;
  197. nextDecade: string;
  198. previousCentury: string;
  199. nextCentury: string;
  200. shortWeekDays?: string[];
  201. shortMonths?: string[];
  202. placeholder: string;
  203. yearPlaceholder?: string;
  204. quarterPlaceholder?: string;
  205. monthPlaceholder?: string;
  206. weekPlaceholder?: string;
  207. rangeYearPlaceholder?: [string, string];
  208. rangeQuarterPlaceholder?: [string, string];
  209. rangeMonthPlaceholder?: [string, string];
  210. rangeWeekPlaceholder?: [string, string];
  211. rangePlaceholder?: [string, string];
  212. };
  213. timePickerLocale: {
  214. placeholder?: string;
  215. rangePlaceholder?: [string, string];
  216. };
  217. dateFormat?: string;
  218. dateTimeFormat?: string;
  219. weekFormat?: string;
  220. monthFormat?: string;
  221. };
  222. TimePicker?: Record<string, any>;
  223. Calendar?: Record<string, any>;
  224. Modal?: {
  225. okText: string;
  226. cancelText: string;
  227. justOkText: string;
  228. };
  229. Transfer?: {
  230. titles?: ((string | number | boolean | void | VNode<import("vue").RendererNode, import("vue").RendererElement, {
  231. [key: string]: any;
  232. }>) | JSX.Element | (string | number | boolean | void | VNode<import("vue").RendererNode, import("vue").RendererElement, {
  233. [key: string]: any;
  234. }>)[])[];
  235. notFoundContent?: (string | number | boolean | void | VNode<import("vue").RendererNode, import("vue").RendererElement, {
  236. [key: string]: any;
  237. }>) | JSX.Element | (string | number | boolean | void | VNode<import("vue").RendererNode, import("vue").RendererElement, {
  238. [key: string]: any;
  239. }>)[];
  240. searchPlaceholder?: string;
  241. itemUnit?: string;
  242. itemsUnit?: string;
  243. remove?: string;
  244. selectAll?: string;
  245. selectCurrent?: string;
  246. selectInvert?: string;
  247. removeAll?: string;
  248. removeCurrent?: string;
  249. };
  250. Select?: Record<string, any>;
  251. Upload?: {
  252. uploading?: string;
  253. removeFile?: string;
  254. downloadFile?: string;
  255. uploadError?: string;
  256. previewFile?: string;
  257. };
  258. Empty?: {
  259. description: string;
  260. };
  261. global?: Record<string, any>;
  262. PageHeader?: {
  263. back: string;
  264. };
  265. Icon?: Record<string, any>;
  266. Text?: {
  267. edit?: any;
  268. copy?: any;
  269. copied?: any;
  270. expand?: any;
  271. };
  272. };
  273. csp?: {
  274. nonce?: string;
  275. };
  276. dropdownMatchSelectWidth?: number | boolean;
  277. notUpdateGlobalConfig?: boolean;
  278. prefixCls?: string;
  279. input?: {
  280. autocomplete: string;
  281. };
  282. space?: {
  283. size: number | import("../config-provider").SizeType;
  284. };
  285. direction?: "ltr" | "rtl";
  286. getTargetContainer?: () => HTMLElement;
  287. getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
  288. getPrefixCls?: (suffixCls?: string, customizePrefixCls?: string) => string;
  289. renderEmpty?: typeof import("../config-provider/renderEmpty").default;
  290. transformCellText?: (tableProps: import("../table/interface").TransformCellTextProps) => any;
  291. autoInsertSpaceInButton?: boolean;
  292. pageHeader?: {
  293. ghost: boolean;
  294. };
  295. componentSize?: import("../config-provider").SizeType;
  296. virtual?: boolean;
  297. };
  298. }, {
  299. sSpinning: boolean;
  300. }, {}, {
  301. debouncifyUpdateSpinning(props?: any): void;
  302. updateSpinning(): void;
  303. cancelExistingSpin(): void;
  304. renderIndicator(prefixCls: string): JSX.Element;
  305. }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
  306. prefixCls: StringConstructor;
  307. spinning: {
  308. type: BooleanConstructor;
  309. default: any;
  310. };
  311. size: PropType<SpinSize>;
  312. wrapperClassName: StringConstructor;
  313. tip: import("vue-types").VueTypeValidableDef<any>;
  314. delay: NumberConstructor;
  315. indicator: import("vue-types").VueTypeValidableDef<any>;
  316. }>>, {
  317. spinning: boolean;
  318. }>;
  319. export default _default;