index.d.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. import type { App, ExtractPropTypes } from 'vue';
  2. import type { VueNode, CustomSlotsType } from '../_util/type';
  3. import type { Status, ProgressDotRender } from '../vc-steps/interface';
  4. import type { MouseEventHandler } from '../_util/EventInterface';
  5. export declare const stepsProps: () => {
  6. prefixCls: StringConstructor;
  7. iconPrefix: StringConstructor;
  8. current: NumberConstructor;
  9. initial: NumberConstructor;
  10. percent: NumberConstructor;
  11. responsive: {
  12. type: BooleanConstructor;
  13. default: boolean;
  14. };
  15. items: {
  16. type: import("vue").PropType<Partial<ExtractPropTypes<{
  17. description: {
  18. default: any;
  19. type: import("vue").PropType<any>;
  20. };
  21. icon: {
  22. default: any;
  23. type: import("vue").PropType<any>;
  24. };
  25. status: {
  26. type: import("vue").PropType<Status>;
  27. default: Status;
  28. };
  29. disabled: {
  30. type: BooleanConstructor;
  31. default: boolean;
  32. };
  33. title: {
  34. default: any;
  35. type: import("vue").PropType<any>;
  36. };
  37. subTitle: {
  38. default: any;
  39. type: import("vue").PropType<any>;
  40. };
  41. onClick: {
  42. type: import("vue").PropType<MouseEventHandler>;
  43. default: MouseEventHandler;
  44. };
  45. }>>[]>;
  46. default: Partial<ExtractPropTypes<{
  47. description: {
  48. default: any;
  49. type: import("vue").PropType<any>;
  50. };
  51. icon: {
  52. default: any;
  53. type: import("vue").PropType<any>;
  54. };
  55. status: {
  56. type: import("vue").PropType<Status>;
  57. default: Status;
  58. };
  59. disabled: {
  60. type: BooleanConstructor;
  61. default: boolean;
  62. };
  63. title: {
  64. default: any;
  65. type: import("vue").PropType<any>;
  66. };
  67. subTitle: {
  68. default: any;
  69. type: import("vue").PropType<any>;
  70. };
  71. onClick: {
  72. type: import("vue").PropType<MouseEventHandler>;
  73. default: MouseEventHandler;
  74. };
  75. }>>[];
  76. };
  77. labelPlacement: {
  78. type: import("vue").PropType<"vertical" | "horizontal">;
  79. default: "vertical" | "horizontal";
  80. };
  81. status: {
  82. type: import("vue").PropType<Status>;
  83. default: Status;
  84. };
  85. size: {
  86. type: import("vue").PropType<"default" | "small">;
  87. default: "default" | "small";
  88. };
  89. direction: {
  90. type: import("vue").PropType<"vertical" | "horizontal">;
  91. default: "vertical" | "horizontal";
  92. };
  93. progressDot: {
  94. type: import("vue").PropType<boolean | ProgressDotRender>;
  95. default: boolean | ProgressDotRender;
  96. };
  97. type: {
  98. type: import("vue").PropType<"default" | "inline" | "navigation">;
  99. default: "default" | "inline" | "navigation";
  100. };
  101. onChange: {
  102. type: import("vue").PropType<(current: number) => void>;
  103. default: (current: number) => void;
  104. };
  105. 'onUpdate:current': {
  106. type: import("vue").PropType<(current: number) => void>;
  107. default: (current: number) => void;
  108. };
  109. };
  110. export declare const stepProps: () => {
  111. description: {
  112. default: any;
  113. type: import("vue").PropType<any>;
  114. };
  115. icon: {
  116. default: any;
  117. type: import("vue").PropType<any>;
  118. };
  119. status: {
  120. type: import("vue").PropType<Status>;
  121. default: Status;
  122. };
  123. disabled: {
  124. type: BooleanConstructor;
  125. default: boolean;
  126. };
  127. title: {
  128. default: any;
  129. type: import("vue").PropType<any>;
  130. };
  131. subTitle: {
  132. default: any;
  133. type: import("vue").PropType<any>;
  134. };
  135. onClick: {
  136. type: import("vue").PropType<MouseEventHandler>;
  137. default: MouseEventHandler;
  138. };
  139. };
  140. export type StepsProps = Partial<ExtractPropTypes<ReturnType<typeof stepsProps>>>;
  141. export type StepProps = Partial<ExtractPropTypes<ReturnType<typeof stepProps>>>;
  142. export declare const Step: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
  143. declare const _default: {
  144. new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
  145. prefixCls: StringConstructor;
  146. iconPrefix: StringConstructor;
  147. current: NumberConstructor;
  148. initial: NumberConstructor;
  149. percent: NumberConstructor;
  150. responsive: {
  151. type: BooleanConstructor;
  152. default: boolean;
  153. };
  154. items: {
  155. type: import("vue").PropType<Partial<ExtractPropTypes<{
  156. description: {
  157. default: any;
  158. type: import("vue").PropType<any>;
  159. };
  160. icon: {
  161. default: any;
  162. type: import("vue").PropType<any>;
  163. };
  164. status: {
  165. type: import("vue").PropType<Status>;
  166. default: Status;
  167. };
  168. disabled: {
  169. type: BooleanConstructor;
  170. default: boolean;
  171. };
  172. title: {
  173. default: any;
  174. type: import("vue").PropType<any>;
  175. };
  176. subTitle: {
  177. default: any;
  178. type: import("vue").PropType<any>;
  179. };
  180. onClick: {
  181. type: import("vue").PropType<MouseEventHandler>;
  182. default: MouseEventHandler;
  183. };
  184. }>>[]>;
  185. default: Partial<ExtractPropTypes<{
  186. description: {
  187. default: any;
  188. type: import("vue").PropType<any>;
  189. };
  190. icon: {
  191. default: any;
  192. type: import("vue").PropType<any>;
  193. };
  194. status: {
  195. type: import("vue").PropType<Status>;
  196. default: Status;
  197. };
  198. disabled: {
  199. type: BooleanConstructor;
  200. default: boolean;
  201. };
  202. title: {
  203. default: any;
  204. type: import("vue").PropType<any>;
  205. };
  206. subTitle: {
  207. default: any;
  208. type: import("vue").PropType<any>;
  209. };
  210. onClick: {
  211. type: import("vue").PropType<MouseEventHandler>;
  212. default: MouseEventHandler;
  213. };
  214. }>>[];
  215. };
  216. labelPlacement: {
  217. type: import("vue").PropType<"vertical" | "horizontal">;
  218. default: "vertical" | "horizontal";
  219. };
  220. status: {
  221. type: import("vue").PropType<Status>;
  222. default: Status;
  223. };
  224. size: {
  225. type: import("vue").PropType<"default" | "small">;
  226. default: "default" | "small";
  227. };
  228. direction: {
  229. type: import("vue").PropType<"vertical" | "horizontal">;
  230. default: "vertical" | "horizontal";
  231. };
  232. progressDot: {
  233. type: import("vue").PropType<boolean | ProgressDotRender>;
  234. default: boolean | ProgressDotRender;
  235. };
  236. type: {
  237. type: import("vue").PropType<"default" | "inline" | "navigation">;
  238. default: "default" | "inline" | "navigation";
  239. };
  240. onChange: {
  241. type: import("vue").PropType<(current: number) => void>;
  242. default: (current: number) => void;
  243. };
  244. 'onUpdate:current': {
  245. type: import("vue").PropType<(current: number) => void>;
  246. default: (current: number) => void;
  247. };
  248. }>> & Readonly<{}>, () => VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
  249. size: "default" | "small";
  250. type: "default" | "inline" | "navigation";
  251. onChange: (current: number) => void;
  252. responsive: boolean;
  253. direction: "vertical" | "horizontal";
  254. status: Status;
  255. items: Partial<ExtractPropTypes<{
  256. description: {
  257. default: any;
  258. type: import("vue").PropType<any>;
  259. };
  260. icon: {
  261. default: any;
  262. type: import("vue").PropType<any>;
  263. };
  264. status: {
  265. type: import("vue").PropType<Status>;
  266. default: Status;
  267. };
  268. disabled: {
  269. type: BooleanConstructor;
  270. default: boolean;
  271. };
  272. title: {
  273. default: any;
  274. type: import("vue").PropType<any>;
  275. };
  276. subTitle: {
  277. default: any;
  278. type: import("vue").PropType<any>;
  279. };
  280. onClick: {
  281. type: import("vue").PropType<MouseEventHandler>;
  282. default: MouseEventHandler;
  283. };
  284. }>>[];
  285. 'onUpdate:current': (current: number) => void;
  286. progressDot: boolean | ProgressDotRender;
  287. labelPlacement: "vertical" | "horizontal";
  288. }, true, {}, CustomSlotsType<{
  289. progressDot: any;
  290. default: any;
  291. }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
  292. P: {};
  293. B: {};
  294. D: {};
  295. C: {};
  296. M: {};
  297. Defaults: {};
  298. }, Readonly<ExtractPropTypes<{
  299. prefixCls: StringConstructor;
  300. iconPrefix: StringConstructor;
  301. current: NumberConstructor;
  302. initial: NumberConstructor;
  303. percent: NumberConstructor;
  304. responsive: {
  305. type: BooleanConstructor;
  306. default: boolean;
  307. };
  308. items: {
  309. type: import("vue").PropType<Partial<ExtractPropTypes<{
  310. description: {
  311. default: any;
  312. type: import("vue").PropType<any>;
  313. };
  314. icon: {
  315. default: any;
  316. type: import("vue").PropType<any>;
  317. };
  318. status: {
  319. type: import("vue").PropType<Status>;
  320. default: Status;
  321. };
  322. disabled: {
  323. type: BooleanConstructor;
  324. default: boolean;
  325. };
  326. title: {
  327. default: any;
  328. type: import("vue").PropType<any>;
  329. };
  330. subTitle: {
  331. default: any;
  332. type: import("vue").PropType<any>;
  333. };
  334. onClick: {
  335. type: import("vue").PropType<MouseEventHandler>;
  336. default: MouseEventHandler;
  337. };
  338. }>>[]>;
  339. default: Partial<ExtractPropTypes<{
  340. description: {
  341. default: any;
  342. type: import("vue").PropType<any>;
  343. };
  344. icon: {
  345. default: any;
  346. type: import("vue").PropType<any>;
  347. };
  348. status: {
  349. type: import("vue").PropType<Status>;
  350. default: Status;
  351. };
  352. disabled: {
  353. type: BooleanConstructor;
  354. default: boolean;
  355. };
  356. title: {
  357. default: any;
  358. type: import("vue").PropType<any>;
  359. };
  360. subTitle: {
  361. default: any;
  362. type: import("vue").PropType<any>;
  363. };
  364. onClick: {
  365. type: import("vue").PropType<MouseEventHandler>;
  366. default: MouseEventHandler;
  367. };
  368. }>>[];
  369. };
  370. labelPlacement: {
  371. type: import("vue").PropType<"vertical" | "horizontal">;
  372. default: "vertical" | "horizontal";
  373. };
  374. status: {
  375. type: import("vue").PropType<Status>;
  376. default: Status;
  377. };
  378. size: {
  379. type: import("vue").PropType<"default" | "small">;
  380. default: "default" | "small";
  381. };
  382. direction: {
  383. type: import("vue").PropType<"vertical" | "horizontal">;
  384. default: "vertical" | "horizontal";
  385. };
  386. progressDot: {
  387. type: import("vue").PropType<boolean | ProgressDotRender>;
  388. default: boolean | ProgressDotRender;
  389. };
  390. type: {
  391. type: import("vue").PropType<"default" | "inline" | "navigation">;
  392. default: "default" | "inline" | "navigation";
  393. };
  394. onChange: {
  395. type: import("vue").PropType<(current: number) => void>;
  396. default: (current: number) => void;
  397. };
  398. 'onUpdate:current': {
  399. type: import("vue").PropType<(current: number) => void>;
  400. default: (current: number) => void;
  401. };
  402. }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
  403. size: "default" | "small";
  404. type: "default" | "inline" | "navigation";
  405. onChange: (current: number) => void;
  406. responsive: boolean;
  407. direction: "vertical" | "horizontal";
  408. status: Status;
  409. items: Partial<ExtractPropTypes<{
  410. description: {
  411. default: any;
  412. type: import("vue").PropType<any>;
  413. };
  414. icon: {
  415. default: any;
  416. type: import("vue").PropType<any>;
  417. };
  418. status: {
  419. type: import("vue").PropType<Status>;
  420. default: Status;
  421. };
  422. disabled: {
  423. type: BooleanConstructor;
  424. default: boolean;
  425. };
  426. title: {
  427. default: any;
  428. type: import("vue").PropType<any>;
  429. };
  430. subTitle: {
  431. default: any;
  432. type: import("vue").PropType<any>;
  433. };
  434. onClick: {
  435. type: import("vue").PropType<MouseEventHandler>;
  436. default: MouseEventHandler;
  437. };
  438. }>>[];
  439. 'onUpdate:current': (current: number) => void;
  440. progressDot: boolean | ProgressDotRender;
  441. labelPlacement: "vertical" | "horizontal";
  442. }>;
  443. __isFragment?: never;
  444. __isTeleport?: never;
  445. __isSuspense?: never;
  446. } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
  447. prefixCls: StringConstructor;
  448. iconPrefix: StringConstructor;
  449. current: NumberConstructor;
  450. initial: NumberConstructor;
  451. percent: NumberConstructor;
  452. responsive: {
  453. type: BooleanConstructor;
  454. default: boolean;
  455. };
  456. items: {
  457. type: import("vue").PropType<Partial<ExtractPropTypes<{
  458. description: {
  459. default: any;
  460. type: import("vue").PropType<any>;
  461. };
  462. icon: {
  463. default: any;
  464. type: import("vue").PropType<any>;
  465. };
  466. status: {
  467. type: import("vue").PropType<Status>;
  468. default: Status;
  469. };
  470. disabled: {
  471. type: BooleanConstructor;
  472. default: boolean;
  473. };
  474. title: {
  475. default: any;
  476. type: import("vue").PropType<any>;
  477. };
  478. subTitle: {
  479. default: any;
  480. type: import("vue").PropType<any>;
  481. };
  482. onClick: {
  483. type: import("vue").PropType<MouseEventHandler>;
  484. default: MouseEventHandler;
  485. };
  486. }>>[]>;
  487. default: Partial<ExtractPropTypes<{
  488. description: {
  489. default: any;
  490. type: import("vue").PropType<any>;
  491. };
  492. icon: {
  493. default: any;
  494. type: import("vue").PropType<any>;
  495. };
  496. status: {
  497. type: import("vue").PropType<Status>;
  498. default: Status;
  499. };
  500. disabled: {
  501. type: BooleanConstructor;
  502. default: boolean;
  503. };
  504. title: {
  505. default: any;
  506. type: import("vue").PropType<any>;
  507. };
  508. subTitle: {
  509. default: any;
  510. type: import("vue").PropType<any>;
  511. };
  512. onClick: {
  513. type: import("vue").PropType<MouseEventHandler>;
  514. default: MouseEventHandler;
  515. };
  516. }>>[];
  517. };
  518. labelPlacement: {
  519. type: import("vue").PropType<"vertical" | "horizontal">;
  520. default: "vertical" | "horizontal";
  521. };
  522. status: {
  523. type: import("vue").PropType<Status>;
  524. default: Status;
  525. };
  526. size: {
  527. type: import("vue").PropType<"default" | "small">;
  528. default: "default" | "small";
  529. };
  530. direction: {
  531. type: import("vue").PropType<"vertical" | "horizontal">;
  532. default: "vertical" | "horizontal";
  533. };
  534. progressDot: {
  535. type: import("vue").PropType<boolean | ProgressDotRender>;
  536. default: boolean | ProgressDotRender;
  537. };
  538. type: {
  539. type: import("vue").PropType<"default" | "inline" | "navigation">;
  540. default: "default" | "inline" | "navigation";
  541. };
  542. onChange: {
  543. type: import("vue").PropType<(current: number) => void>;
  544. default: (current: number) => void;
  545. };
  546. 'onUpdate:current': {
  547. type: import("vue").PropType<(current: number) => void>;
  548. default: (current: number) => void;
  549. };
  550. }>> & Readonly<{}>, () => VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  551. size: "default" | "small";
  552. type: "default" | "inline" | "navigation";
  553. onChange: (current: number) => void;
  554. responsive: boolean;
  555. direction: "vertical" | "horizontal";
  556. status: Status;
  557. items: Partial<ExtractPropTypes<{
  558. description: {
  559. default: any;
  560. type: import("vue").PropType<any>;
  561. };
  562. icon: {
  563. default: any;
  564. type: import("vue").PropType<any>;
  565. };
  566. status: {
  567. type: import("vue").PropType<Status>;
  568. default: Status;
  569. };
  570. disabled: {
  571. type: BooleanConstructor;
  572. default: boolean;
  573. };
  574. title: {
  575. default: any;
  576. type: import("vue").PropType<any>;
  577. };
  578. subTitle: {
  579. default: any;
  580. type: import("vue").PropType<any>;
  581. };
  582. onClick: {
  583. type: import("vue").PropType<MouseEventHandler>;
  584. default: MouseEventHandler;
  585. };
  586. }>>[];
  587. 'onUpdate:current': (current: number) => void;
  588. progressDot: boolean | ProgressDotRender;
  589. labelPlacement: "vertical" | "horizontal";
  590. }, {}, string, CustomSlotsType<{
  591. progressDot: any;
  592. default: any;
  593. }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
  594. Step: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
  595. install: (app: App) => App<any>;
  596. };
  597. export default _default;