@fox-js/fox 3.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libs/index.cjs.js +3 -0
- package/libs/{index.d.ts → index.esm.d.ts} +1875 -1725
- package/libs/index.esm.js +5081 -0
- package/libs/index.umd.js +3 -0
- package/libs/style.css +1 -0
- package/package.json +26 -8
- package/libs/index.css +0 -144
- package/libs/index.js +0 -1
- package/main.js +0 -8
|
@@ -1,1725 +1,1875 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
declare
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
*
|
|
71
|
-
* @
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
*
|
|
194
|
-
*/
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
*
|
|
209
|
-
*/
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
*
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
*
|
|
221
|
-
*/
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
*
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
*
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
*
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
*
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
*
|
|
265
|
-
*/
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
*
|
|
281
|
-
*/
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
*
|
|
287
|
-
*/
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
*
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
*
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
*
|
|
312
|
-
*/
|
|
313
|
-
declare class
|
|
314
|
-
/**
|
|
315
|
-
*
|
|
316
|
-
*/
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
*
|
|
320
|
-
*/
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
*
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
*
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
*
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
*
|
|
357
|
-
*/
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
*
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
*
|
|
375
|
-
*/
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
declare
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
*
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
*
|
|
445
|
-
*/
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
declare
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
*
|
|
602
|
-
*/
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
declare const
|
|
611
|
-
|
|
612
|
-
declare
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
declare
|
|
618
|
-
/**
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
*
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
*
|
|
667
|
-
*/
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
*
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
*
|
|
677
|
-
* @param
|
|
678
|
-
* @param
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
*
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
*
|
|
718
|
-
*/
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
*
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
*
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
*
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
*
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
*
|
|
886
|
-
*/
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
*
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
*
|
|
942
|
-
*/
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
*
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
*
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
*
|
|
962
|
-
*/
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
(
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
declare
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
private
|
|
1101
|
-
/**
|
|
1102
|
-
*
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
*
|
|
1139
|
-
*/
|
|
1140
|
-
private [
|
|
1141
|
-
/**
|
|
1142
|
-
*
|
|
1143
|
-
*
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
*
|
|
1149
|
-
*/
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
*
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
*
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
*
|
|
1173
|
-
*/
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
*
|
|
1185
|
-
*/
|
|
1186
|
-
|
|
1187
|
-
/**
|
|
1188
|
-
*
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
*
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
*
|
|
1205
|
-
* @param
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
*
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
*
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
*
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
*
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
*
|
|
1250
|
-
*
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
*
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
*
|
|
1261
|
-
* @param
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
*
|
|
1267
|
-
* @param
|
|
1268
|
-
*/
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1271
|
-
*
|
|
1272
|
-
*
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
*
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
*
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
*
|
|
1288
|
-
*/
|
|
1289
|
-
|
|
1290
|
-
/**
|
|
1291
|
-
*
|
|
1292
|
-
*
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
*
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
*
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
*
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
*
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
*
|
|
1365
|
-
* @param
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
*
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
*
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
*
|
|
1392
|
-
* @param
|
|
1393
|
-
* @
|
|
1394
|
-
*/
|
|
1395
|
-
private [
|
|
1396
|
-
/**
|
|
1397
|
-
*
|
|
1398
|
-
* @param page
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
*
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
*
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
*
|
|
1411
|
-
* @param
|
|
1412
|
-
*
|
|
1413
|
-
* @returns
|
|
1414
|
-
*/
|
|
1415
|
-
[
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
*
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
*
|
|
1439
|
-
* @param
|
|
1440
|
-
* @param
|
|
1441
|
-
* @param
|
|
1442
|
-
* @
|
|
1443
|
-
*/
|
|
1444
|
-
|
|
1445
|
-
/**
|
|
1446
|
-
*
|
|
1447
|
-
* @param
|
|
1448
|
-
* @param
|
|
1449
|
-
* @
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
*
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
*
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
*
|
|
1488
|
-
* @param
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
/**
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
*
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
/**
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
declare
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
/**
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
/**
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
/**
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
declare
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
*
|
|
1650
|
-
*/
|
|
1651
|
-
|
|
1652
|
-
/**
|
|
1653
|
-
*
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
*
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
declare
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { ComponentInternalInstance } from 'vue';
|
|
3
|
+
import { ComponentPublicInstance } from 'vue';
|
|
4
|
+
import { InjectionKey } from 'vue';
|
|
5
|
+
import { Ref } from 'vue';
|
|
6
|
+
import { Require } from './require';
|
|
7
|
+
|
|
8
|
+
declare const _addRouteRecorder: unique symbol;
|
|
9
|
+
|
|
10
|
+
declare const _after: unique symbol;
|
|
11
|
+
|
|
12
|
+
declare const afterFiltersKey: unique symbol;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* after route update filter
|
|
16
|
+
*/
|
|
17
|
+
declare interface AfterRouteFilter {
|
|
18
|
+
(to: Route, from: Route, session: Record<string | number | symbol, any>): void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const argsKey: unique symbol;
|
|
22
|
+
|
|
23
|
+
declare const _before: unique symbol;
|
|
24
|
+
|
|
25
|
+
declare const beforeFiltersKey: unique symbol;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* before route restore filter(用于刷新还原)
|
|
29
|
+
*/
|
|
30
|
+
declare interface BeforeResotreFilter {
|
|
31
|
+
(route: Route, index: number, mark: string, routes: Route[]): boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* before route update filter
|
|
36
|
+
*/
|
|
37
|
+
declare interface BeforeRouteFilter {
|
|
38
|
+
(to: Route, from: Route, next: {
|
|
39
|
+
(pass?: boolean | Route): void;
|
|
40
|
+
}, session: Record<string | number | symbol, any>): void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare const _buildPage: unique symbol;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 导出Bus
|
|
47
|
+
*/
|
|
48
|
+
export declare const Bus: any;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Bus Interface
|
|
52
|
+
*/
|
|
53
|
+
export declare interface BusInterface extends Tree {
|
|
54
|
+
[propName: string | symbol | number]: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* callback function
|
|
59
|
+
*/
|
|
60
|
+
declare interface Callback {
|
|
61
|
+
(...args: any[]): void;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare const chainKey: unique symbol;
|
|
65
|
+
|
|
66
|
+
declare const childrenKey: unique symbol;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 克隆对象
|
|
70
|
+
* @param target
|
|
71
|
+
* @param source
|
|
72
|
+
* @param plain
|
|
73
|
+
*
|
|
74
|
+
* @returns
|
|
75
|
+
*/
|
|
76
|
+
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
77
|
+
|
|
78
|
+
declare const _cloneRouteRecorder: unique symbol;
|
|
79
|
+
|
|
80
|
+
declare const _constructRouteModel: unique symbol;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* 创建Fox
|
|
84
|
+
* @param options
|
|
85
|
+
* @returns
|
|
86
|
+
*/
|
|
87
|
+
export declare function createFox(options?: FoxOptions): Fox;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* 创建memory history
|
|
91
|
+
* @param base
|
|
92
|
+
* @param maxHistoryRecorderSize
|
|
93
|
+
* @returns
|
|
94
|
+
*/
|
|
95
|
+
export declare function createMemoryHistory(base?: string, maxHistoryRecorderSize?: number): RouterHistory;
|
|
96
|
+
|
|
97
|
+
declare const _createNextFn: unique symbol;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 创建web hash history
|
|
101
|
+
* @param navigateFirstRoute
|
|
102
|
+
* @param query
|
|
103
|
+
* @param historyMonitor
|
|
104
|
+
* @param traceless
|
|
105
|
+
* @param storage
|
|
106
|
+
* @returns
|
|
107
|
+
*/
|
|
108
|
+
export declare function createWebHashHistory(navigateFirstRoute?: boolean, query?: string, historyMonitor?: boolean | IfFunction, traceless?: boolean | IfFunction, storage?: Storage_2): RouterHistory;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 创建web history
|
|
112
|
+
* @param navigateFirstRoute
|
|
113
|
+
* @param base
|
|
114
|
+
* @param query
|
|
115
|
+
* @param historyMonitor
|
|
116
|
+
* @param traceless
|
|
117
|
+
* @param storage
|
|
118
|
+
* @returns
|
|
119
|
+
*/
|
|
120
|
+
export declare function createWebHistory(navigateFirstRoute?: boolean, base?: string | null, query?: string, historyMonitor?: boolean | IfFunction, traceless?: boolean | IfFunction, storage?: Storage_2): RouterHistory;
|
|
121
|
+
|
|
122
|
+
declare const currentKey: unique symbol;
|
|
123
|
+
|
|
124
|
+
declare const currentRoutes: unique symbol;
|
|
125
|
+
|
|
126
|
+
declare const cursorKey: unique symbol;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 删除 context value
|
|
130
|
+
* @param proxy
|
|
131
|
+
* @param key
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
export declare function deleteContextValue(proxy: ComponentPublicInstance, key: KeyType_2): void;
|
|
135
|
+
|
|
136
|
+
declare const _destroy: unique symbol;
|
|
137
|
+
|
|
138
|
+
declare const destroyFiltersKey: unique symbol;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* destroy route update filter
|
|
142
|
+
*/
|
|
143
|
+
declare interface DestroyRouteFilter {
|
|
144
|
+
(to: Route, session: Record<string | number | symbol, any>): void;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 完成Task类型(Exception,Finish, Wait)
|
|
149
|
+
*/
|
|
150
|
+
declare interface EndTask {
|
|
151
|
+
(context: {
|
|
152
|
+
session: EventChainSession;
|
|
153
|
+
}, ...args: any[]): void;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare const errorCallback: unique symbol;
|
|
157
|
+
|
|
158
|
+
declare const errorFnsKey: unique symbol;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* 任务链路
|
|
162
|
+
*/
|
|
163
|
+
export declare class EventChain {
|
|
164
|
+
/**
|
|
165
|
+
* 事件链路
|
|
166
|
+
*/
|
|
167
|
+
private [chainKey];
|
|
168
|
+
/**
|
|
169
|
+
* 游标
|
|
170
|
+
*/
|
|
171
|
+
private [cursorKey];
|
|
172
|
+
/**
|
|
173
|
+
* 是否持久模式(该状态为true的情况,已经执行的任务会继续保存在队列中)
|
|
174
|
+
*/
|
|
175
|
+
private [persistentModeKey];
|
|
176
|
+
/**
|
|
177
|
+
* 状态
|
|
178
|
+
*/
|
|
179
|
+
private [statusKey];
|
|
180
|
+
/**
|
|
181
|
+
* 参数
|
|
182
|
+
*/
|
|
183
|
+
private [argsKey];
|
|
184
|
+
/**
|
|
185
|
+
* 异常参数
|
|
186
|
+
*/
|
|
187
|
+
private [exArgsKey];
|
|
188
|
+
/**
|
|
189
|
+
* 移除函数
|
|
190
|
+
*/
|
|
191
|
+
private [successFnsKey];
|
|
192
|
+
/**
|
|
193
|
+
* 错误函数
|
|
194
|
+
*/
|
|
195
|
+
private [errorFnsKey];
|
|
196
|
+
/**
|
|
197
|
+
* 链路session
|
|
198
|
+
*/
|
|
199
|
+
private [sessionKey]?;
|
|
200
|
+
/**
|
|
201
|
+
* 获取session
|
|
202
|
+
*/
|
|
203
|
+
get session(): EventChainSession | undefined;
|
|
204
|
+
/**
|
|
205
|
+
* 构造函数
|
|
206
|
+
*
|
|
207
|
+
* @param session
|
|
208
|
+
* @param persistentMode
|
|
209
|
+
*/
|
|
210
|
+
constructor(session?: EventChainSession, persistentMode?: boolean);
|
|
211
|
+
/**
|
|
212
|
+
* 触发链路的下一个任务
|
|
213
|
+
* @param step
|
|
214
|
+
* @param params
|
|
215
|
+
*/
|
|
216
|
+
private [_go];
|
|
217
|
+
/**
|
|
218
|
+
* 跳转
|
|
219
|
+
* @param step
|
|
220
|
+
* @param params
|
|
221
|
+
*/
|
|
222
|
+
go(step: number, ...params: any[]): EventChain;
|
|
223
|
+
/**
|
|
224
|
+
* 结束事件链调用,直接触发wait函数(success方法)
|
|
225
|
+
* @param params
|
|
226
|
+
*/
|
|
227
|
+
finish(...params: any[]): EventChain;
|
|
228
|
+
/**
|
|
229
|
+
* 结束事件链调用,直接触发wait函数(error方法)
|
|
230
|
+
* @param params
|
|
231
|
+
*/
|
|
232
|
+
reject(...params: any[]): EventChain;
|
|
233
|
+
/**
|
|
234
|
+
* 结束事件链调用,直接触发error函数
|
|
235
|
+
* @param params
|
|
236
|
+
*/
|
|
237
|
+
throw(...params: any[]): EventChain;
|
|
238
|
+
/**
|
|
239
|
+
* 重置事件链,直接触发wait函数
|
|
240
|
+
* @param params
|
|
241
|
+
*/
|
|
242
|
+
reset(...params: any[]): EventChain;
|
|
243
|
+
/**
|
|
244
|
+
* 加入任务
|
|
245
|
+
* @param task
|
|
246
|
+
* @returns {EventChain}
|
|
247
|
+
*/
|
|
248
|
+
post(task: Task): EventChain;
|
|
249
|
+
/**
|
|
250
|
+
* 加入等待任务
|
|
251
|
+
* @param successFn
|
|
252
|
+
* @param errorFn
|
|
253
|
+
* @returns
|
|
254
|
+
*/
|
|
255
|
+
wait(successFn: EndTask, errorFn: EndTask): EventChain;
|
|
256
|
+
/**
|
|
257
|
+
* 加入异常处理任务
|
|
258
|
+
* @param errorFn
|
|
259
|
+
* @returns
|
|
260
|
+
*/
|
|
261
|
+
exception(errorFn: EndTask): EventChain;
|
|
262
|
+
/**
|
|
263
|
+
* 判断事件链是否已经执行完成
|
|
264
|
+
* @returns {boolean}
|
|
265
|
+
*/
|
|
266
|
+
isFinish(): boolean;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* event chain 上下文
|
|
271
|
+
*/
|
|
272
|
+
export declare interface EventChainContext {
|
|
273
|
+
/**
|
|
274
|
+
* 任务跳转
|
|
275
|
+
*/
|
|
276
|
+
go: {
|
|
277
|
+
(step: number, ...args: any[]): void;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* 触发链路
|
|
281
|
+
*/
|
|
282
|
+
resolve: {
|
|
283
|
+
(...args: any[]): void;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* 中断链路
|
|
287
|
+
*/
|
|
288
|
+
reject: {
|
|
289
|
+
(...args: any[]): void;
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* 插入任务
|
|
293
|
+
*/
|
|
294
|
+
insert: {
|
|
295
|
+
(...args: any[]): void;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* chain session
|
|
299
|
+
*/
|
|
300
|
+
session: EventChainSession;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Session类型
|
|
305
|
+
*/
|
|
306
|
+
export declare interface EventChainSession {
|
|
307
|
+
[propName: string]: any;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* 事件代理
|
|
312
|
+
*/
|
|
313
|
+
export declare class EventProxy {
|
|
314
|
+
/**
|
|
315
|
+
* 注册表
|
|
316
|
+
*/
|
|
317
|
+
private [registerKey_2];
|
|
318
|
+
/**
|
|
319
|
+
* 构造函数
|
|
320
|
+
*/
|
|
321
|
+
constructor();
|
|
322
|
+
/**
|
|
323
|
+
* 绑定事件
|
|
324
|
+
* @param key
|
|
325
|
+
* @param callback
|
|
326
|
+
* @param once
|
|
327
|
+
* @returns
|
|
328
|
+
*/
|
|
329
|
+
on(key: string, callback: Callback, once?: boolean): EventProxy;
|
|
330
|
+
/**
|
|
331
|
+
* 解除绑定
|
|
332
|
+
* @param key
|
|
333
|
+
* @param callback
|
|
334
|
+
* @returns
|
|
335
|
+
*/
|
|
336
|
+
off(key: string, callback: Callback): EventProxy;
|
|
337
|
+
/**
|
|
338
|
+
* 绑定事件
|
|
339
|
+
* @param key
|
|
340
|
+
* @param callback
|
|
341
|
+
* @param once
|
|
342
|
+
* @returns
|
|
343
|
+
*/
|
|
344
|
+
bind(key: string, callback: Callback, once?: boolean): EventProxy;
|
|
345
|
+
/**
|
|
346
|
+
* 解除绑定
|
|
347
|
+
* @param key
|
|
348
|
+
* @param callback
|
|
349
|
+
* @returns
|
|
350
|
+
*/
|
|
351
|
+
unbind(key: string, callback: Callback): EventProxy;
|
|
352
|
+
/**
|
|
353
|
+
* 绑定一次性触发函数
|
|
354
|
+
* @param key
|
|
355
|
+
* @param callback
|
|
356
|
+
* @returns
|
|
357
|
+
*/
|
|
358
|
+
once(key: string, callback: Callback): EventProxy;
|
|
359
|
+
/**
|
|
360
|
+
* 绑定多条件触发函数
|
|
361
|
+
* @param args
|
|
362
|
+
*/
|
|
363
|
+
all(...args: any[]): this;
|
|
364
|
+
/**
|
|
365
|
+
* 触发函数
|
|
366
|
+
* @param key
|
|
367
|
+
* @param value
|
|
368
|
+
*/
|
|
369
|
+
emit(key: string, ...value: any[]): this;
|
|
370
|
+
/**
|
|
371
|
+
* 触发函数
|
|
372
|
+
* @param key
|
|
373
|
+
* @param value
|
|
374
|
+
* @returns
|
|
375
|
+
*/
|
|
376
|
+
trigger(key: string, ...value: any[]): EventProxy;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
declare const exArgsKey: unique symbol;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
383
|
+
*
|
|
384
|
+
* @returns
|
|
385
|
+
*/
|
|
386
|
+
export declare function extend(...args: any[]): any;
|
|
387
|
+
|
|
388
|
+
declare const _findRootView: unique symbol;
|
|
389
|
+
|
|
390
|
+
declare const _findRouteModel: unique symbol;
|
|
391
|
+
|
|
392
|
+
declare const forestKey: unique symbol;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Fox接口
|
|
396
|
+
*/
|
|
397
|
+
export declare interface Fox {
|
|
398
|
+
/**
|
|
399
|
+
* 返回router
|
|
400
|
+
*/
|
|
401
|
+
get router(): Router;
|
|
402
|
+
/**
|
|
403
|
+
* 返回全局Bus
|
|
404
|
+
*/
|
|
405
|
+
get bus(): BusInterface;
|
|
406
|
+
/**
|
|
407
|
+
* 返回Bus构造函数
|
|
408
|
+
*/
|
|
409
|
+
get Bus(): typeof Bus;
|
|
410
|
+
/**
|
|
411
|
+
* 返回event proxy构造函数
|
|
412
|
+
*/
|
|
413
|
+
get EventProxy(): typeof EventProxy;
|
|
414
|
+
/**
|
|
415
|
+
* 返回全局event proxy
|
|
416
|
+
*/
|
|
417
|
+
get eventproxy(): EventProxy;
|
|
418
|
+
/**
|
|
419
|
+
* 返回event chain构造函数
|
|
420
|
+
*/
|
|
421
|
+
get EventChain(): typeof EventChain;
|
|
422
|
+
/**
|
|
423
|
+
* 获取require构造函数
|
|
424
|
+
*/
|
|
425
|
+
get Require(): typeof Require;
|
|
426
|
+
/**
|
|
427
|
+
* 获取require
|
|
428
|
+
*/
|
|
429
|
+
get require(): Require;
|
|
430
|
+
/**
|
|
431
|
+
* 返回extend
|
|
432
|
+
*/
|
|
433
|
+
get extend(): Function;
|
|
434
|
+
/**
|
|
435
|
+
* 返回clone
|
|
436
|
+
*/
|
|
437
|
+
get clone(): Function;
|
|
438
|
+
/**
|
|
439
|
+
* 判断是否为es模块
|
|
440
|
+
*/
|
|
441
|
+
get isESModule(): Function;
|
|
442
|
+
/**
|
|
443
|
+
* 安装
|
|
444
|
+
* @param app
|
|
445
|
+
*/
|
|
446
|
+
install(app: App): void;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* 全局Bus
|
|
451
|
+
*/
|
|
452
|
+
export declare const foxBusKey: FoxInjectionKey<Tree>;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* 全局Event Proxy
|
|
456
|
+
*/
|
|
457
|
+
export declare const foxEventProxyKey: FoxInjectionKey<EventProxy>;
|
|
458
|
+
|
|
459
|
+
declare interface FoxInjectionKey<T> extends InjectionKey<T> {
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* 全局Fox
|
|
464
|
+
*/
|
|
465
|
+
export declare const foxKey: FoxInjectionKey<Fox>;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* 参数
|
|
469
|
+
*/
|
|
470
|
+
export declare interface FoxOptions extends RouterOptions {
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* 通用函数接口
|
|
475
|
+
*/
|
|
476
|
+
export declare interface GenericFunction {
|
|
477
|
+
(...args: any[]): any;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
declare const _getFirstView: unique symbol;
|
|
481
|
+
|
|
482
|
+
declare const _go: unique symbol;
|
|
483
|
+
|
|
484
|
+
declare const growKey: unique symbol;
|
|
485
|
+
|
|
486
|
+
declare const _handleError: unique symbol;
|
|
487
|
+
|
|
488
|
+
declare const _handleHistoryChange: unique symbol;
|
|
489
|
+
|
|
490
|
+
declare const _handleRouteUpdated: unique symbol;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* history change handler
|
|
494
|
+
*/
|
|
495
|
+
declare interface HistoryChangeHandler {
|
|
496
|
+
(args: Array<Route> | string): void;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
declare const historyKey: unique symbol;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* 历史更新策略
|
|
503
|
+
*/
|
|
504
|
+
declare type HistoryUpdatePolicy = 'push' | 'replace' | 'traceless';
|
|
505
|
+
|
|
506
|
+
declare const idKey: unique symbol;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* If Function
|
|
510
|
+
*/
|
|
511
|
+
declare interface IfFunction {
|
|
512
|
+
(...args: any[]): boolean;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
declare const initKey: unique symbol;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* inject context value
|
|
519
|
+
* @param proxy
|
|
520
|
+
* @returns
|
|
521
|
+
*/
|
|
522
|
+
export declare function injectContextValue(proxy: ComponentPublicInstance, key: KeyType_2): unknown;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* 是否数组
|
|
526
|
+
*/
|
|
527
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* 是否为Date
|
|
531
|
+
* @param val
|
|
532
|
+
* @returns
|
|
533
|
+
*/
|
|
534
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* 判断两个对象是否一致
|
|
538
|
+
* @param x
|
|
539
|
+
* @param y
|
|
540
|
+
* @return
|
|
541
|
+
*/
|
|
542
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* 是否为es module
|
|
546
|
+
* @param obj
|
|
547
|
+
* @returns
|
|
548
|
+
*/
|
|
549
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* 是否为函数
|
|
553
|
+
* @param val
|
|
554
|
+
* @returns
|
|
555
|
+
*/
|
|
556
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* 是否为Map
|
|
560
|
+
* @param val
|
|
561
|
+
* @returns
|
|
562
|
+
*/
|
|
563
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* 是否为空对象
|
|
567
|
+
* @param val
|
|
568
|
+
* @returns
|
|
569
|
+
*/
|
|
570
|
+
export declare const isNil: (val: unknown) => val is null;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* 是否为object
|
|
574
|
+
*/
|
|
575
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* 是否为plain对象
|
|
579
|
+
* @param val
|
|
580
|
+
* @returns
|
|
581
|
+
*/
|
|
582
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* 是否为promise
|
|
586
|
+
* @param val
|
|
587
|
+
* @returns
|
|
588
|
+
*/
|
|
589
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* 是否为Set
|
|
593
|
+
* @param val
|
|
594
|
+
* @returns
|
|
595
|
+
*/
|
|
596
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* 是否为字符串
|
|
600
|
+
* @param val
|
|
601
|
+
* @returns
|
|
602
|
+
*/
|
|
603
|
+
export declare const isString: (val: unknown) => val is string;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* 是否为symbol
|
|
607
|
+
* @param val
|
|
608
|
+
* @returns
|
|
609
|
+
*/
|
|
610
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
611
|
+
|
|
612
|
+
declare type KeyType_2 = string | number | Symbol;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* 层
|
|
616
|
+
*/
|
|
617
|
+
declare class Layer {
|
|
618
|
+
/**
|
|
619
|
+
* 节点(view集合)
|
|
620
|
+
*/
|
|
621
|
+
views: View[];
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
declare const _load: unique symbol;
|
|
625
|
+
|
|
626
|
+
declare const mainDispatcherKey: unique symbol;
|
|
627
|
+
|
|
628
|
+
declare const _markReady: unique symbol;
|
|
629
|
+
|
|
630
|
+
declare class MarkRecord {
|
|
631
|
+
currentRoute: Route;
|
|
632
|
+
routes: Array<Route>;
|
|
633
|
+
/**
|
|
634
|
+
* 构造函数
|
|
635
|
+
* @param currentRoute
|
|
636
|
+
* @param routes
|
|
637
|
+
*/
|
|
638
|
+
constructor(currentRoute: Route, routes: Array<Route>);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
declare const _merge: unique symbol;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* model (RouteModel > ModelLayer > Model)
|
|
645
|
+
*/
|
|
646
|
+
declare class Model {
|
|
647
|
+
/**
|
|
648
|
+
* 唯一ID(用于区分model)
|
|
649
|
+
*/
|
|
650
|
+
id: number;
|
|
651
|
+
/**
|
|
652
|
+
* 名称
|
|
653
|
+
*/
|
|
654
|
+
name: string;
|
|
655
|
+
/**
|
|
656
|
+
* 属性
|
|
657
|
+
*/
|
|
658
|
+
props: Record<string | number | symbol, any> | boolean | {
|
|
659
|
+
(route: Route): any;
|
|
660
|
+
} | undefined;
|
|
661
|
+
/**
|
|
662
|
+
* 元数据
|
|
663
|
+
*/
|
|
664
|
+
meta?: Record<string | number | symbol, any>;
|
|
665
|
+
/**
|
|
666
|
+
* 原始组件数据
|
|
667
|
+
*/
|
|
668
|
+
src: any;
|
|
669
|
+
/**
|
|
670
|
+
* 组件(解析后组件)
|
|
671
|
+
*/
|
|
672
|
+
component: any;
|
|
673
|
+
/**
|
|
674
|
+
* 构造函数
|
|
675
|
+
*
|
|
676
|
+
* @param name
|
|
677
|
+
* @param src
|
|
678
|
+
* @param props
|
|
679
|
+
* @param meta
|
|
680
|
+
*/
|
|
681
|
+
constructor(name: string, src: any, props?: Record<string | number | symbol, any> | {
|
|
682
|
+
(route: Route): any;
|
|
683
|
+
} | boolean, meta?: Record<string | number | symbol, any>);
|
|
684
|
+
/**
|
|
685
|
+
* 是否已经解析完成
|
|
686
|
+
*/
|
|
687
|
+
get isResolved(): boolean;
|
|
688
|
+
/**
|
|
689
|
+
* 解析组件
|
|
690
|
+
*/
|
|
691
|
+
resolve(): Promise<void>;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* 层(RouteModel > ModelLayer > Model)
|
|
696
|
+
*/
|
|
697
|
+
declare class ModelLayer {
|
|
698
|
+
/**
|
|
699
|
+
* 节点
|
|
700
|
+
*/
|
|
701
|
+
models: Model[];
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* model插槽
|
|
706
|
+
*/
|
|
707
|
+
declare class ModelSlot {
|
|
708
|
+
/**
|
|
709
|
+
* 实例
|
|
710
|
+
*/
|
|
711
|
+
instance: ComponentInternalInstance | null;
|
|
712
|
+
/**
|
|
713
|
+
* model
|
|
714
|
+
*/
|
|
715
|
+
model: Model;
|
|
716
|
+
/**
|
|
717
|
+
* route
|
|
718
|
+
*/
|
|
719
|
+
route: Route | null;
|
|
720
|
+
/**
|
|
721
|
+
* 是否激活状态
|
|
722
|
+
*/
|
|
723
|
+
active: boolean;
|
|
724
|
+
/**
|
|
725
|
+
* 索引
|
|
726
|
+
*/
|
|
727
|
+
index: number;
|
|
728
|
+
/**
|
|
729
|
+
* 构造函数
|
|
730
|
+
* @param route
|
|
731
|
+
* @param model
|
|
732
|
+
* @param index
|
|
733
|
+
* @param active
|
|
734
|
+
*/
|
|
735
|
+
constructor(route: Route | null, model: Model, index?: number, active?: boolean);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
declare const nameKey: unique symbol;
|
|
739
|
+
|
|
740
|
+
declare const notFoundKey: unique symbol;
|
|
741
|
+
|
|
742
|
+
declare const notFoundPathKey: unique symbol;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* 路由更新后执行
|
|
746
|
+
* @param callback
|
|
747
|
+
*/
|
|
748
|
+
export declare function onAfterRouteUpdate(callback: {
|
|
749
|
+
(to: Route, from?: Route): void;
|
|
750
|
+
}): void;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* 路由更新前执行
|
|
754
|
+
* @param callback
|
|
755
|
+
*/
|
|
756
|
+
export declare function onBeforeRouteUpdate(callback: {
|
|
757
|
+
(to: Route, from?: Route): void;
|
|
758
|
+
}): void;
|
|
759
|
+
|
|
760
|
+
export declare const onFoxActivated: (hook: GenericFunction) => void;
|
|
761
|
+
|
|
762
|
+
export declare const onFoxInactivated: (hook: GenericFunction) => void;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* 操作类型
|
|
766
|
+
* @type Enum
|
|
767
|
+
*/
|
|
768
|
+
export declare enum OperationType {
|
|
769
|
+
/**
|
|
770
|
+
* Push策略(生产历史记录)
|
|
771
|
+
*/
|
|
772
|
+
Push = 0,
|
|
773
|
+
/**
|
|
774
|
+
* 替换策略(替换当前历史记录)
|
|
775
|
+
*/
|
|
776
|
+
Replace = 1,
|
|
777
|
+
/**
|
|
778
|
+
* 修改策略(不影响历史记录)
|
|
779
|
+
*/
|
|
780
|
+
Put = 2,
|
|
781
|
+
/**
|
|
782
|
+
* 增加策略(生成历史记录)
|
|
783
|
+
*/
|
|
784
|
+
Append = 3,
|
|
785
|
+
/**
|
|
786
|
+
* 打开策略,如果不存在则打开,否则切换(生成历史记录)
|
|
787
|
+
*/
|
|
788
|
+
Open = 4
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* page
|
|
793
|
+
*/
|
|
794
|
+
declare class Page {
|
|
795
|
+
/**
|
|
796
|
+
* 层
|
|
797
|
+
*/
|
|
798
|
+
layers: Layer[];
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
declare const parentNodeKey: unique symbol;
|
|
802
|
+
|
|
803
|
+
declare const persistentModeKey: unique symbol;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* 属性过滤器
|
|
807
|
+
*/
|
|
808
|
+
declare interface PropsFilter {
|
|
809
|
+
(props: Record<string | symbol, any>): Record<string | symbol, any>;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
declare const propsFilterKey: unique symbol;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* provide context value
|
|
816
|
+
* @param proxy
|
|
817
|
+
* @param key
|
|
818
|
+
* @param value
|
|
819
|
+
*/
|
|
820
|
+
export declare function provideContextValue(proxy: ComponentPublicInstance, key: KeyType_2, value: any): void;
|
|
821
|
+
|
|
822
|
+
declare type Proxy_2 = ComponentPublicInstance | null;
|
|
823
|
+
|
|
824
|
+
declare const readyHandlersKey: unique symbol;
|
|
825
|
+
|
|
826
|
+
declare const readyKey: unique symbol;
|
|
827
|
+
|
|
828
|
+
declare const registerKey: unique symbol;
|
|
829
|
+
|
|
830
|
+
declare const registerKey_2: unique symbol;
|
|
831
|
+
|
|
832
|
+
declare const _removeRouteRecorder: unique symbol;
|
|
833
|
+
|
|
834
|
+
declare const _removeView: unique symbol;
|
|
835
|
+
|
|
836
|
+
declare const _resolveComponent: unique symbol;
|
|
837
|
+
|
|
838
|
+
declare const resolveRoute: unique symbol;
|
|
839
|
+
|
|
840
|
+
declare const rootKey: unique symbol;
|
|
841
|
+
|
|
842
|
+
declare const rootNodeKey: unique symbol;
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* 路由(跳转目标)
|
|
846
|
+
*/
|
|
847
|
+
export declare class Route {
|
|
848
|
+
/**
|
|
849
|
+
* 路径
|
|
850
|
+
*/
|
|
851
|
+
path?: string;
|
|
852
|
+
/**
|
|
853
|
+
* 返回full path
|
|
854
|
+
*/
|
|
855
|
+
get fullPath(): string;
|
|
856
|
+
/**
|
|
857
|
+
* 别名路径(设置了该属性后,url的route mark优先使用别名显示)
|
|
858
|
+
*/
|
|
859
|
+
alias?: string;
|
|
860
|
+
/**
|
|
861
|
+
* 名称
|
|
862
|
+
*/
|
|
863
|
+
name?: string;
|
|
864
|
+
/**
|
|
865
|
+
* 嵌入root节点
|
|
866
|
+
*/
|
|
867
|
+
root?: string;
|
|
868
|
+
/**
|
|
869
|
+
* 参数
|
|
870
|
+
*/
|
|
871
|
+
params?: Record<string | number | symbol, any>;
|
|
872
|
+
/**
|
|
873
|
+
* 查询
|
|
874
|
+
*/
|
|
875
|
+
query?: any;
|
|
876
|
+
/**
|
|
877
|
+
* 无痕迹模式
|
|
878
|
+
*/
|
|
879
|
+
traceless?: boolean;
|
|
880
|
+
/**
|
|
881
|
+
* 模版path(设置了该属性后,设置了template属性后,会使用template指向的ruteModel作为模版创建新的ruote页面)
|
|
882
|
+
*/
|
|
883
|
+
template?: string;
|
|
884
|
+
/**
|
|
885
|
+
* 获取匹配的元数组列表
|
|
886
|
+
*/
|
|
887
|
+
matched?: {
|
|
888
|
+
meta: Record<string | number | symbol, any>;
|
|
889
|
+
}[];
|
|
890
|
+
/**
|
|
891
|
+
* route本身的元数据
|
|
892
|
+
*/
|
|
893
|
+
meta?: Record<string | number | symbol, any>;
|
|
894
|
+
/**
|
|
895
|
+
* 成功回调函数
|
|
896
|
+
*/
|
|
897
|
+
success?: {
|
|
898
|
+
(...arg: any[]): void;
|
|
899
|
+
};
|
|
900
|
+
/**
|
|
901
|
+
* 失败回调函数
|
|
902
|
+
*/
|
|
903
|
+
error?: {
|
|
904
|
+
(...arg: any[]): void;
|
|
905
|
+
};
|
|
906
|
+
/**
|
|
907
|
+
* 页面销毁回答函数
|
|
908
|
+
*/
|
|
909
|
+
destroy?: {
|
|
910
|
+
(...arg: any[]): void;
|
|
911
|
+
};
|
|
912
|
+
/**
|
|
913
|
+
* 操作类型(Push, Replace, Put, Append)
|
|
914
|
+
*/
|
|
915
|
+
opsType?: OperationType;
|
|
916
|
+
/**
|
|
917
|
+
* 更新类型(All,Part)
|
|
918
|
+
*/
|
|
919
|
+
updateType?: UpdateType;
|
|
920
|
+
/**
|
|
921
|
+
* 历史更新策略
|
|
922
|
+
*/
|
|
923
|
+
historyUpdatePolicy?: HistoryUpdatePolicy;
|
|
924
|
+
/**
|
|
925
|
+
* view属性集合(用于multi view的tab view属性)
|
|
926
|
+
*/
|
|
927
|
+
viewTagAttrs?: any;
|
|
928
|
+
/**
|
|
929
|
+
* 索引(用于opsType为Append的情况下,可以精确卸载的需求)
|
|
930
|
+
*/
|
|
931
|
+
index?: number;
|
|
932
|
+
/**
|
|
933
|
+
* 是否激活状态(用于多视图,Open操作的情况下,标志view是否为激活状态)
|
|
934
|
+
*/
|
|
935
|
+
active?: boolean;
|
|
936
|
+
/**
|
|
937
|
+
* 插槽(用于历史还原)
|
|
938
|
+
*/
|
|
939
|
+
slot?: Slot;
|
|
940
|
+
/**
|
|
941
|
+
* session(router执行链路session)
|
|
942
|
+
*/
|
|
943
|
+
session?: Session;
|
|
944
|
+
/**
|
|
945
|
+
* 克隆
|
|
946
|
+
* @param target
|
|
947
|
+
* @param plain 是否只克隆plain对象
|
|
948
|
+
*/
|
|
949
|
+
static clone(target: Route, plain: boolean): Route;
|
|
950
|
+
/**
|
|
951
|
+
* 判断路由是否相同
|
|
952
|
+
* @param x
|
|
953
|
+
* @param y
|
|
954
|
+
* @returns
|
|
955
|
+
*/
|
|
956
|
+
static isSame(x: Route, y: Route): boolean;
|
|
957
|
+
/**
|
|
958
|
+
* 判断路由对应的route model是否一致
|
|
959
|
+
* @param x
|
|
960
|
+
* @param y
|
|
961
|
+
* @returns
|
|
962
|
+
*/
|
|
963
|
+
static isSameForRouteModel(x: Route, y: Route): boolean;
|
|
964
|
+
/**
|
|
965
|
+
* 由对象生成路由
|
|
966
|
+
* @param obj
|
|
967
|
+
* @returns
|
|
968
|
+
*/
|
|
969
|
+
static from(obj: any): Route;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* 路由配置
|
|
974
|
+
*/
|
|
975
|
+
export declare interface RouteConfig {
|
|
976
|
+
/**
|
|
977
|
+
* 路径
|
|
978
|
+
*/
|
|
979
|
+
path?: string;
|
|
980
|
+
/**
|
|
981
|
+
* 名称
|
|
982
|
+
*/
|
|
983
|
+
name?: string;
|
|
984
|
+
/**
|
|
985
|
+
* 转发路径
|
|
986
|
+
*/
|
|
987
|
+
redirect?: string;
|
|
988
|
+
/**
|
|
989
|
+
* 组件
|
|
990
|
+
*/
|
|
991
|
+
component?: any;
|
|
992
|
+
/**
|
|
993
|
+
* 组件映射
|
|
994
|
+
*/
|
|
995
|
+
components?: {
|
|
996
|
+
[propName: string]: any;
|
|
997
|
+
};
|
|
998
|
+
/**
|
|
999
|
+
* 孩子节点
|
|
1000
|
+
*/
|
|
1001
|
+
children?: any[];
|
|
1002
|
+
/**
|
|
1003
|
+
* 属性
|
|
1004
|
+
*/
|
|
1005
|
+
props?: Record<string | number | symbol, any> | boolean | {
|
|
1006
|
+
(route: Route): any;
|
|
1007
|
+
};
|
|
1008
|
+
/**
|
|
1009
|
+
* 元数据
|
|
1010
|
+
*/
|
|
1011
|
+
meta?: Record<string | number | symbol, any>;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Route Model(RouteModel > ModelLayer > Model)
|
|
1016
|
+
*/
|
|
1017
|
+
declare class RouteModel {
|
|
1018
|
+
/**
|
|
1019
|
+
* 路径
|
|
1020
|
+
*/
|
|
1021
|
+
path?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* 路径match
|
|
1024
|
+
*/
|
|
1025
|
+
match: any;
|
|
1026
|
+
/**
|
|
1027
|
+
* 转发路径
|
|
1028
|
+
*/
|
|
1029
|
+
redirect?: string;
|
|
1030
|
+
/**
|
|
1031
|
+
* 名称
|
|
1032
|
+
*/
|
|
1033
|
+
name?: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* layer集合
|
|
1036
|
+
*/
|
|
1037
|
+
layers: ModelLayer[];
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
export declare class Router {
|
|
1041
|
+
/**
|
|
1042
|
+
* 注册表
|
|
1043
|
+
*/
|
|
1044
|
+
private [registerKey];
|
|
1045
|
+
/**
|
|
1046
|
+
* not found route
|
|
1047
|
+
*/
|
|
1048
|
+
private [notFoundKey]?;
|
|
1049
|
+
/**
|
|
1050
|
+
* not found route path
|
|
1051
|
+
*/
|
|
1052
|
+
private [notFoundPathKey];
|
|
1053
|
+
/**
|
|
1054
|
+
* ready
|
|
1055
|
+
*/
|
|
1056
|
+
private [readyKey];
|
|
1057
|
+
/**
|
|
1058
|
+
* ready handlers
|
|
1059
|
+
*/
|
|
1060
|
+
private [readyHandlersKey];
|
|
1061
|
+
/**
|
|
1062
|
+
* 页面根节点
|
|
1063
|
+
*/
|
|
1064
|
+
private [forestKey];
|
|
1065
|
+
/**
|
|
1066
|
+
* 历史记录控制器
|
|
1067
|
+
*/
|
|
1068
|
+
private [historyKey]?;
|
|
1069
|
+
/**
|
|
1070
|
+
* 当前路由集合
|
|
1071
|
+
*/
|
|
1072
|
+
private [currentRoutes];
|
|
1073
|
+
/**
|
|
1074
|
+
* 错误回调
|
|
1075
|
+
*/
|
|
1076
|
+
private [errorCallback];
|
|
1077
|
+
/**
|
|
1078
|
+
* 全局route更新监听器
|
|
1079
|
+
*/
|
|
1080
|
+
private [routeUpdatedCallback];
|
|
1081
|
+
/**
|
|
1082
|
+
* before过滤器队列
|
|
1083
|
+
*/
|
|
1084
|
+
private [beforeFiltersKey];
|
|
1085
|
+
/**
|
|
1086
|
+
* after过滤器队列
|
|
1087
|
+
*/
|
|
1088
|
+
private [afterFiltersKey];
|
|
1089
|
+
/**
|
|
1090
|
+
* destroy过滤器队列
|
|
1091
|
+
*/
|
|
1092
|
+
private [destroyFiltersKey];
|
|
1093
|
+
/**
|
|
1094
|
+
* 属性传递过滤器
|
|
1095
|
+
*/
|
|
1096
|
+
private [propsFilterKey];
|
|
1097
|
+
/**
|
|
1098
|
+
* 主任务分发器
|
|
1099
|
+
*/
|
|
1100
|
+
private [mainDispatcherKey];
|
|
1101
|
+
/**
|
|
1102
|
+
* 路由守护者
|
|
1103
|
+
*/
|
|
1104
|
+
private [routerGuardKey];
|
|
1105
|
+
/**
|
|
1106
|
+
* 是否初始化
|
|
1107
|
+
*/
|
|
1108
|
+
private [initKey];
|
|
1109
|
+
/**
|
|
1110
|
+
* 当前最新路由
|
|
1111
|
+
*/
|
|
1112
|
+
private [currentKey];
|
|
1113
|
+
/**
|
|
1114
|
+
* 获取当前最新route
|
|
1115
|
+
*/
|
|
1116
|
+
get current(): Route | null;
|
|
1117
|
+
private options;
|
|
1118
|
+
/**
|
|
1119
|
+
* 构造函数
|
|
1120
|
+
* @param options
|
|
1121
|
+
*/
|
|
1122
|
+
constructor(options: RouterOptions);
|
|
1123
|
+
/**
|
|
1124
|
+
* 记录错误日志
|
|
1125
|
+
* @param error
|
|
1126
|
+
* @param route
|
|
1127
|
+
*/
|
|
1128
|
+
private [_handleError];
|
|
1129
|
+
/**
|
|
1130
|
+
* 初始化
|
|
1131
|
+
*/
|
|
1132
|
+
init(): void;
|
|
1133
|
+
/**
|
|
1134
|
+
* 第一次导航是否完成
|
|
1135
|
+
*/
|
|
1136
|
+
isReady(): Promise<void>;
|
|
1137
|
+
/**
|
|
1138
|
+
* 设置第一导航完成
|
|
1139
|
+
*/
|
|
1140
|
+
private [_markReady];
|
|
1141
|
+
/**
|
|
1142
|
+
* 处理历史记录
|
|
1143
|
+
* @param record
|
|
1144
|
+
*/
|
|
1145
|
+
private [_handleHistoryChange];
|
|
1146
|
+
/**
|
|
1147
|
+
* 处理route updated事件
|
|
1148
|
+
* @param route
|
|
1149
|
+
*/
|
|
1150
|
+
private [_handleRouteUpdated];
|
|
1151
|
+
/**
|
|
1152
|
+
* 加入路由记录
|
|
1153
|
+
* @param route
|
|
1154
|
+
*/
|
|
1155
|
+
private [_addRouteRecorder];
|
|
1156
|
+
/**
|
|
1157
|
+
* 克隆路由记录
|
|
1158
|
+
* @returns
|
|
1159
|
+
*/
|
|
1160
|
+
private [_cloneRouteRecorder];
|
|
1161
|
+
/**
|
|
1162
|
+
* 移除路由记录
|
|
1163
|
+
*
|
|
1164
|
+
* @param route
|
|
1165
|
+
*/
|
|
1166
|
+
private [_removeRouteRecorder];
|
|
1167
|
+
/**
|
|
1168
|
+
* 设置history monitor是否启动
|
|
1169
|
+
*/
|
|
1170
|
+
set historyMonitor(val: boolean | IfFunction);
|
|
1171
|
+
/**
|
|
1172
|
+
* 获取history monitor
|
|
1173
|
+
*/
|
|
1174
|
+
get historyMonitor(): boolean | IfFunction;
|
|
1175
|
+
/**
|
|
1176
|
+
* 设置无痕模式,不改变历史记录
|
|
1177
|
+
*/
|
|
1178
|
+
set traceless(val: boolean | IfFunction);
|
|
1179
|
+
/**
|
|
1180
|
+
* 获取无痕模式(不改变历史记录)
|
|
1181
|
+
*/
|
|
1182
|
+
get traceless(): boolean | IfFunction;
|
|
1183
|
+
/**
|
|
1184
|
+
* 设置属性传递过滤器
|
|
1185
|
+
*/
|
|
1186
|
+
set propsFilter(filter: PropsFilter | null);
|
|
1187
|
+
/**
|
|
1188
|
+
* 获取属性传递过滤器
|
|
1189
|
+
*/
|
|
1190
|
+
get propsFilter(): PropsFilter | null;
|
|
1191
|
+
/**
|
|
1192
|
+
* 设置还原点
|
|
1193
|
+
*
|
|
1194
|
+
*/
|
|
1195
|
+
setRestorePoint(): void;
|
|
1196
|
+
/**
|
|
1197
|
+
* 注册route updated处理函数
|
|
1198
|
+
* @param callback
|
|
1199
|
+
*/
|
|
1200
|
+
onRouteUpdated(callback: {
|
|
1201
|
+
(route?: Route | null): void;
|
|
1202
|
+
} | null): void;
|
|
1203
|
+
/**
|
|
1204
|
+
* 注册全局异常处理函数
|
|
1205
|
+
* @param callback
|
|
1206
|
+
*/
|
|
1207
|
+
onError(callback: {
|
|
1208
|
+
(...args: any[]): void;
|
|
1209
|
+
} | null): void;
|
|
1210
|
+
/**
|
|
1211
|
+
* 添加before filter
|
|
1212
|
+
* @param filter
|
|
1213
|
+
*/
|
|
1214
|
+
beforeEach(filter: BeforeRouteFilter): void;
|
|
1215
|
+
/**
|
|
1216
|
+
* 移除before filter
|
|
1217
|
+
* @param filter
|
|
1218
|
+
*/
|
|
1219
|
+
removeBeforeEach(filter: BeforeRouteFilter): boolean;
|
|
1220
|
+
/**
|
|
1221
|
+
* 添加after filter
|
|
1222
|
+
* @param filter
|
|
1223
|
+
*/
|
|
1224
|
+
afterEach(filter: AfterRouteFilter): void;
|
|
1225
|
+
/**
|
|
1226
|
+
* 移除after filter
|
|
1227
|
+
* @param filter
|
|
1228
|
+
* @returns
|
|
1229
|
+
*/
|
|
1230
|
+
removeAfterEach(filter: AfterRouteFilter): boolean;
|
|
1231
|
+
/**
|
|
1232
|
+
* 添加destroy filter
|
|
1233
|
+
* @param filter
|
|
1234
|
+
*/
|
|
1235
|
+
destroyEach(filter: DestroyRouteFilter): void;
|
|
1236
|
+
/**
|
|
1237
|
+
* 移除after filter
|
|
1238
|
+
* @param filter
|
|
1239
|
+
* @returns
|
|
1240
|
+
*/
|
|
1241
|
+
removeDestroyEach(filter: DestroyRouteFilter): boolean;
|
|
1242
|
+
/**
|
|
1243
|
+
* 添加before restore filter
|
|
1244
|
+
* @param filter
|
|
1245
|
+
*/
|
|
1246
|
+
beforeRestoreEach(filter: BeforeResotreFilter): void;
|
|
1247
|
+
/**
|
|
1248
|
+
* 移除before restore filter
|
|
1249
|
+
* @param filter
|
|
1250
|
+
* @returns
|
|
1251
|
+
*/
|
|
1252
|
+
removeBeforeRestoreEach(filter: BeforeResotreFilter): boolean;
|
|
1253
|
+
/**
|
|
1254
|
+
* 加入路由配置列表
|
|
1255
|
+
* @param routeConfigs
|
|
1256
|
+
*/
|
|
1257
|
+
addRoutes(routeConfigs: RouteConfig[]): void;
|
|
1258
|
+
/**
|
|
1259
|
+
* 加入路由配置
|
|
1260
|
+
* @param routeConfig
|
|
1261
|
+
* @param index
|
|
1262
|
+
*/
|
|
1263
|
+
addRoute(routeConfig: RouteConfig, index?: number): void;
|
|
1264
|
+
/**
|
|
1265
|
+
* 移除路由
|
|
1266
|
+
*
|
|
1267
|
+
* @param route
|
|
1268
|
+
*/
|
|
1269
|
+
removeRoute(route: Route | string): boolean;
|
|
1270
|
+
/**
|
|
1271
|
+
* 判断路由是否存在
|
|
1272
|
+
*
|
|
1273
|
+
* @param route
|
|
1274
|
+
*/
|
|
1275
|
+
hasRoute(route: Route | string): boolean;
|
|
1276
|
+
/**
|
|
1277
|
+
* 配置not found路由路径
|
|
1278
|
+
* @param path
|
|
1279
|
+
*/
|
|
1280
|
+
setNotFoundPath(path: string): void;
|
|
1281
|
+
/**
|
|
1282
|
+
* 配置not found路由配置
|
|
1283
|
+
* @param routeConfig
|
|
1284
|
+
*/
|
|
1285
|
+
setNotFoundRoute(routeConfig: RouteConfig): void;
|
|
1286
|
+
/**
|
|
1287
|
+
* 返回目前加载的routes
|
|
1288
|
+
*/
|
|
1289
|
+
getRoutes(): RouteModel[];
|
|
1290
|
+
/**
|
|
1291
|
+
* 根据路由构建route model
|
|
1292
|
+
*
|
|
1293
|
+
* @param routeConfig
|
|
1294
|
+
*/
|
|
1295
|
+
private [_constructRouteModel];
|
|
1296
|
+
/**
|
|
1297
|
+
* 查找route model
|
|
1298
|
+
* @param cite
|
|
1299
|
+
*/
|
|
1300
|
+
private [_findRouteModel];
|
|
1301
|
+
/**
|
|
1302
|
+
* 解释路由
|
|
1303
|
+
* @param args
|
|
1304
|
+
* @returns
|
|
1305
|
+
*/
|
|
1306
|
+
[resolveRoute](args: any): Route | null;
|
|
1307
|
+
/**
|
|
1308
|
+
* 路由跳转(operation类型为Push)
|
|
1309
|
+
* @param args
|
|
1310
|
+
*/
|
|
1311
|
+
push(...args: any[]): Router;
|
|
1312
|
+
/**
|
|
1313
|
+
* 路由跳转(operation类型为Put)
|
|
1314
|
+
* @param args
|
|
1315
|
+
*/
|
|
1316
|
+
put(...args: any[]): Router;
|
|
1317
|
+
/**
|
|
1318
|
+
* 路由跳转(operation类型为Replace)
|
|
1319
|
+
* @param args
|
|
1320
|
+
*/
|
|
1321
|
+
replace(...args: any[]): Router;
|
|
1322
|
+
/**
|
|
1323
|
+
* 路由跳转(operation类型为Append)
|
|
1324
|
+
* @param args
|
|
1325
|
+
*/
|
|
1326
|
+
append(...args: any[]): Router;
|
|
1327
|
+
/**
|
|
1328
|
+
* 移除
|
|
1329
|
+
* @param term
|
|
1330
|
+
* @param changeHistory
|
|
1331
|
+
*/
|
|
1332
|
+
remove(term?: any, changeHistory?: boolean): Promise<boolean>;
|
|
1333
|
+
/**
|
|
1334
|
+
* 路由跳转(operation类型为Open)
|
|
1335
|
+
* @param args
|
|
1336
|
+
*/
|
|
1337
|
+
open(...args: any[]): Router;
|
|
1338
|
+
/**
|
|
1339
|
+
* 关闭路由跳转的页面
|
|
1340
|
+
* @param args
|
|
1341
|
+
*/
|
|
1342
|
+
close(args: any): Router;
|
|
1343
|
+
/**
|
|
1344
|
+
* 路由跳转
|
|
1345
|
+
* @param args
|
|
1346
|
+
*/
|
|
1347
|
+
to(...args: any[]): Router;
|
|
1348
|
+
/**
|
|
1349
|
+
* 历史回退
|
|
1350
|
+
* @param delta
|
|
1351
|
+
*/
|
|
1352
|
+
back(delta?: number): void;
|
|
1353
|
+
/**
|
|
1354
|
+
* 创建next函数
|
|
1355
|
+
*/
|
|
1356
|
+
private [_createNextFn];
|
|
1357
|
+
/**
|
|
1358
|
+
* 开始链路
|
|
1359
|
+
* @param route
|
|
1360
|
+
* @returns {EventChain}
|
|
1361
|
+
*/
|
|
1362
|
+
private [_start];
|
|
1363
|
+
/**
|
|
1364
|
+
* 执行before事件
|
|
1365
|
+
* @param chain
|
|
1366
|
+
*/
|
|
1367
|
+
private [_before];
|
|
1368
|
+
/**
|
|
1369
|
+
* 执行after事件
|
|
1370
|
+
* @param chain
|
|
1371
|
+
*/
|
|
1372
|
+
private [_after];
|
|
1373
|
+
/**
|
|
1374
|
+
* 执行销毁事件
|
|
1375
|
+
* @param route
|
|
1376
|
+
* @param session
|
|
1377
|
+
*/
|
|
1378
|
+
private [_destroy];
|
|
1379
|
+
/**
|
|
1380
|
+
* 加载路由
|
|
1381
|
+
* @param chain
|
|
1382
|
+
*/
|
|
1383
|
+
private [_load];
|
|
1384
|
+
/**
|
|
1385
|
+
* 卸载(只能用于卸载多视图上的view)
|
|
1386
|
+
*
|
|
1387
|
+
* @param routes
|
|
1388
|
+
*/
|
|
1389
|
+
private [_unload];
|
|
1390
|
+
/**
|
|
1391
|
+
* 查找root view索引
|
|
1392
|
+
* @param page
|
|
1393
|
+
* @param route
|
|
1394
|
+
*/
|
|
1395
|
+
private [_findRootView];
|
|
1396
|
+
/**
|
|
1397
|
+
* 查找first view
|
|
1398
|
+
* @param page
|
|
1399
|
+
*/
|
|
1400
|
+
private [_getFirstView];
|
|
1401
|
+
/**
|
|
1402
|
+
* 移除view
|
|
1403
|
+
* @param page
|
|
1404
|
+
* @param pos
|
|
1405
|
+
* @param indexList
|
|
1406
|
+
* @param retainRoot
|
|
1407
|
+
*/
|
|
1408
|
+
private [_removeView];
|
|
1409
|
+
/**
|
|
1410
|
+
* 恢复
|
|
1411
|
+
* @param routes
|
|
1412
|
+
*
|
|
1413
|
+
* @returns
|
|
1414
|
+
*/
|
|
1415
|
+
restore(routes?: Route[]): Promise<void>;
|
|
1416
|
+
/**
|
|
1417
|
+
* build page
|
|
1418
|
+
* @param route
|
|
1419
|
+
* @param routeModel
|
|
1420
|
+
* @returns
|
|
1421
|
+
*/
|
|
1422
|
+
private [_buildPage];
|
|
1423
|
+
/**
|
|
1424
|
+
* 解析组件
|
|
1425
|
+
*/
|
|
1426
|
+
private [_resolveComponent];
|
|
1427
|
+
/**
|
|
1428
|
+
* 更新页面
|
|
1429
|
+
* @param routeModel
|
|
1430
|
+
* @param route
|
|
1431
|
+
* @param session
|
|
1432
|
+
* @param updateType
|
|
1433
|
+
* @returns
|
|
1434
|
+
*/
|
|
1435
|
+
private [_update];
|
|
1436
|
+
/**
|
|
1437
|
+
* 合并view
|
|
1438
|
+
* @param page
|
|
1439
|
+
* @param startViewLevel
|
|
1440
|
+
* @param routeModel
|
|
1441
|
+
* @param startModelLevel
|
|
1442
|
+
* @param rootNodeRef
|
|
1443
|
+
*/
|
|
1444
|
+
[_merge](page: Page, startViewLevel: number, routeModel: RouteModel, startModelLevel: number, rootNodeRef: ViewPlace): void;
|
|
1445
|
+
/**
|
|
1446
|
+
* router view与view同步数据
|
|
1447
|
+
* @param name
|
|
1448
|
+
* @param level
|
|
1449
|
+
* @param rootView
|
|
1450
|
+
* @param rootViewIndex
|
|
1451
|
+
* @param parentView
|
|
1452
|
+
* @param parentViewIndex
|
|
1453
|
+
* @returns
|
|
1454
|
+
*/
|
|
1455
|
+
[sync](name: string, level: number, rootView: View | null, rootViewIndex: number, parentView: View | null, parentViewIndex: number): View | null;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
declare const routerGuardKey: unique symbol;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Router History
|
|
1462
|
+
*/
|
|
1463
|
+
declare interface RouterHistory {
|
|
1464
|
+
/**
|
|
1465
|
+
* 基础路径
|
|
1466
|
+
*/
|
|
1467
|
+
base: string;
|
|
1468
|
+
/**
|
|
1469
|
+
* 是否监听history change
|
|
1470
|
+
*/
|
|
1471
|
+
historyMonitor: boolean | IfFunction;
|
|
1472
|
+
/**
|
|
1473
|
+
* 是否支持无痕模式
|
|
1474
|
+
*/
|
|
1475
|
+
traceless: boolean | IfFunction;
|
|
1476
|
+
/**
|
|
1477
|
+
* 初始化
|
|
1478
|
+
* @param firstNavigate
|
|
1479
|
+
* @returns
|
|
1480
|
+
*/
|
|
1481
|
+
init(firstNavigate: boolean): Promise<void>;
|
|
1482
|
+
/**
|
|
1483
|
+
* 销毁
|
|
1484
|
+
*/
|
|
1485
|
+
destroy(): void;
|
|
1486
|
+
/**
|
|
1487
|
+
* 添加before restore filter
|
|
1488
|
+
* @param filter
|
|
1489
|
+
*/
|
|
1490
|
+
beforeRestoreEach(filter: BeforeResotreFilter): void;
|
|
1491
|
+
/**
|
|
1492
|
+
* 移除before restore filter
|
|
1493
|
+
* @param filter
|
|
1494
|
+
* @returns
|
|
1495
|
+
*/
|
|
1496
|
+
removeBeforeRestoreEach(filter: BeforeResotreFilter): boolean;
|
|
1497
|
+
/**
|
|
1498
|
+
* 监听历史记录改变
|
|
1499
|
+
* @param handler
|
|
1500
|
+
*/
|
|
1501
|
+
listen(handler: HistoryChangeHandler): void;
|
|
1502
|
+
/**
|
|
1503
|
+
* 跳转
|
|
1504
|
+
* @param delta
|
|
1505
|
+
* @param consume 是否消费事件
|
|
1506
|
+
*/
|
|
1507
|
+
go(delta: number, consume?: boolean | {
|
|
1508
|
+
(): boolean;
|
|
1509
|
+
}): void;
|
|
1510
|
+
/**
|
|
1511
|
+
* 回退到指定路由
|
|
1512
|
+
* @param target
|
|
1513
|
+
* @param trigger
|
|
1514
|
+
*/
|
|
1515
|
+
goBack(target: Route | null, trigger: Function): void;
|
|
1516
|
+
/**
|
|
1517
|
+
* 加入记录
|
|
1518
|
+
* @param record
|
|
1519
|
+
*/
|
|
1520
|
+
push(record: MarkRecord): void;
|
|
1521
|
+
/**
|
|
1522
|
+
* 替换当前记录
|
|
1523
|
+
* @param record
|
|
1524
|
+
*/
|
|
1525
|
+
replace(record: MarkRecord): void;
|
|
1526
|
+
/**
|
|
1527
|
+
* 改变route标识
|
|
1528
|
+
* @param record
|
|
1529
|
+
*/
|
|
1530
|
+
setRouteMark(record: MarkRecord): void;
|
|
1531
|
+
/**
|
|
1532
|
+
* 设置还原点
|
|
1533
|
+
*
|
|
1534
|
+
* @param routes 路由记录
|
|
1535
|
+
*/
|
|
1536
|
+
setRestorePoint(routes?: Array<Route>): void;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* router options
|
|
1541
|
+
*/
|
|
1542
|
+
export declare interface RouterOptions {
|
|
1543
|
+
/**
|
|
1544
|
+
* 默认操作类型
|
|
1545
|
+
*/
|
|
1546
|
+
defaultOperationType?: OperationType;
|
|
1547
|
+
/**
|
|
1548
|
+
* 模块路径解释
|
|
1549
|
+
*/
|
|
1550
|
+
modulePathResolve?: {
|
|
1551
|
+
(route: Route): string;
|
|
1552
|
+
};
|
|
1553
|
+
/**
|
|
1554
|
+
* router history
|
|
1555
|
+
*/
|
|
1556
|
+
history?: RouterHistory;
|
|
1557
|
+
/**
|
|
1558
|
+
* 路由配置列表
|
|
1559
|
+
*/
|
|
1560
|
+
routes?: RouteConfig[];
|
|
1561
|
+
/**
|
|
1562
|
+
* not found 路由
|
|
1563
|
+
*/
|
|
1564
|
+
notFound?: RouteConfig;
|
|
1565
|
+
/**
|
|
1566
|
+
* not found 路由路径
|
|
1567
|
+
*/
|
|
1568
|
+
notFoundPath?: string;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
declare const routeUpdatedCallback: unique symbol;
|
|
1572
|
+
|
|
1573
|
+
declare class Session {
|
|
1574
|
+
/**
|
|
1575
|
+
* 目标路由
|
|
1576
|
+
*/
|
|
1577
|
+
to?: Route;
|
|
1578
|
+
/**
|
|
1579
|
+
* 目标路由
|
|
1580
|
+
*/
|
|
1581
|
+
routeModel?: RouteModel;
|
|
1582
|
+
/**
|
|
1583
|
+
* 来源路由
|
|
1584
|
+
*/
|
|
1585
|
+
from?: Route;
|
|
1586
|
+
/**
|
|
1587
|
+
* 流程数据
|
|
1588
|
+
*/
|
|
1589
|
+
data: {
|
|
1590
|
+
[propName: string]: any;
|
|
1591
|
+
};
|
|
1592
|
+
/**
|
|
1593
|
+
* 构造函数
|
|
1594
|
+
* @param to
|
|
1595
|
+
* @param from
|
|
1596
|
+
*/
|
|
1597
|
+
constructor(to?: Route, from?: Route);
|
|
1598
|
+
/**
|
|
1599
|
+
* 转换为session
|
|
1600
|
+
* @param src
|
|
1601
|
+
* @returns
|
|
1602
|
+
*/
|
|
1603
|
+
static from(src: {
|
|
1604
|
+
[propName: string]: any;
|
|
1605
|
+
}): Session;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
export declare const sessionKey: unique symbol;
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* 插槽
|
|
1612
|
+
*/
|
|
1613
|
+
declare class Slot {
|
|
1614
|
+
/**
|
|
1615
|
+
* 插槽名称
|
|
1616
|
+
*/
|
|
1617
|
+
name: string;
|
|
1618
|
+
/**
|
|
1619
|
+
* 层次
|
|
1620
|
+
*/
|
|
1621
|
+
level: number;
|
|
1622
|
+
/**
|
|
1623
|
+
* root插槽节点名称
|
|
1624
|
+
*/
|
|
1625
|
+
rootName: string | undefined;
|
|
1626
|
+
/**
|
|
1627
|
+
* root插槽节点index
|
|
1628
|
+
*/
|
|
1629
|
+
rootIndex: number;
|
|
1630
|
+
/**
|
|
1631
|
+
* 构造函数
|
|
1632
|
+
* @param name
|
|
1633
|
+
* @param level
|
|
1634
|
+
* @param rootName
|
|
1635
|
+
*/
|
|
1636
|
+
constructor(name: string, level: number, rootName: string | undefined, rootIndex: number);
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
declare const _start: unique symbol;
|
|
1640
|
+
|
|
1641
|
+
declare const statusKey: unique symbol;
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* storage
|
|
1645
|
+
*/
|
|
1646
|
+
declare interface Storage_2 {
|
|
1647
|
+
/**
|
|
1648
|
+
* 获取item
|
|
1649
|
+
* @param key
|
|
1650
|
+
*/
|
|
1651
|
+
getItem(key: string): string | null;
|
|
1652
|
+
/**
|
|
1653
|
+
* 设置item
|
|
1654
|
+
* @param key
|
|
1655
|
+
* @param value
|
|
1656
|
+
*/
|
|
1657
|
+
setItem(key: string, value: string): void;
|
|
1658
|
+
/**
|
|
1659
|
+
* remove item
|
|
1660
|
+
* @param key
|
|
1661
|
+
*/
|
|
1662
|
+
removeItem(key: string): void;
|
|
1663
|
+
}
|
|
1664
|
+
export { Storage_2 as Storage }
|
|
1665
|
+
|
|
1666
|
+
declare const successFnsKey: unique symbol;
|
|
1667
|
+
|
|
1668
|
+
declare const sync: unique symbol;
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Task类型
|
|
1672
|
+
*/
|
|
1673
|
+
export declare interface Task {
|
|
1674
|
+
(context: EventChainContext, ...args: any[]): void;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* 转换为boolean值
|
|
1679
|
+
* @param val
|
|
1680
|
+
* @returns
|
|
1681
|
+
*/
|
|
1682
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* 转换为number值
|
|
1686
|
+
* @param val
|
|
1687
|
+
* @returns
|
|
1688
|
+
*/
|
|
1689
|
+
export declare function toNumber(val: unknown): number;
|
|
1690
|
+
|
|
1691
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* tree接口
|
|
1695
|
+
*/
|
|
1696
|
+
declare interface Tree extends TreeNode {
|
|
1697
|
+
/**
|
|
1698
|
+
* 加入数据
|
|
1699
|
+
* @param args
|
|
1700
|
+
* @returns {boolean}
|
|
1701
|
+
*/
|
|
1702
|
+
put(...args: any[]): boolean;
|
|
1703
|
+
/**
|
|
1704
|
+
* 获取内容
|
|
1705
|
+
* @param args
|
|
1706
|
+
* @returns {any}
|
|
1707
|
+
*/
|
|
1708
|
+
get(...args: any[]): any | undefined;
|
|
1709
|
+
/**
|
|
1710
|
+
* 移除数据
|
|
1711
|
+
* @param args
|
|
1712
|
+
* @returns {boolean}
|
|
1713
|
+
*/
|
|
1714
|
+
remove(...args: any[]): boolean;
|
|
1715
|
+
/**
|
|
1716
|
+
* 判断是否包含数据
|
|
1717
|
+
* @param args
|
|
1718
|
+
* @returns {boolean}
|
|
1719
|
+
*/
|
|
1720
|
+
contains(...args: any[]): boolean;
|
|
1721
|
+
/**
|
|
1722
|
+
* 清空所以数据
|
|
1723
|
+
*/
|
|
1724
|
+
clear(): void;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* tree node
|
|
1729
|
+
*/
|
|
1730
|
+
declare interface TreeNode {
|
|
1731
|
+
[propName: string]: any;
|
|
1732
|
+
[idKey]: string;
|
|
1733
|
+
[valueKey]: any;
|
|
1734
|
+
[growKey]: boolean;
|
|
1735
|
+
[childrenKey]: Map<string, TreeNode>;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* 判断类型
|
|
1740
|
+
* @param obj
|
|
1741
|
+
* @returns any
|
|
1742
|
+
*/
|
|
1743
|
+
export declare function typeOf(obj: any): string;
|
|
1744
|
+
|
|
1745
|
+
declare const _unload: unique symbol;
|
|
1746
|
+
|
|
1747
|
+
declare const _update: unique symbol;
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* 更新类型
|
|
1751
|
+
*/
|
|
1752
|
+
declare enum UpdateType {
|
|
1753
|
+
/**
|
|
1754
|
+
* 部分替换
|
|
1755
|
+
*/
|
|
1756
|
+
Part = 0,
|
|
1757
|
+
/**
|
|
1758
|
+
* 整体替换
|
|
1759
|
+
*/
|
|
1760
|
+
All = 1
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Returns the global bus
|
|
1765
|
+
* @param proxy
|
|
1766
|
+
* @returns
|
|
1767
|
+
*/
|
|
1768
|
+
export declare function useBus(proxy?: Proxy_2): Tree;
|
|
1769
|
+
|
|
1770
|
+
/**
|
|
1771
|
+
* Returns the global event proxy
|
|
1772
|
+
* @param proxy
|
|
1773
|
+
* @returns
|
|
1774
|
+
*/
|
|
1775
|
+
export declare function useEventProxy(proxy?: Proxy_2): EventProxy;
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* Returns the current fox
|
|
1779
|
+
* @param proxy
|
|
1780
|
+
* @returns
|
|
1781
|
+
*/
|
|
1782
|
+
export declare function useFox(proxy?: Proxy_2): Fox;
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* Returns the current route
|
|
1786
|
+
* @param proxy
|
|
1787
|
+
* @returns
|
|
1788
|
+
*/
|
|
1789
|
+
export declare function useRoute(proxy?: Proxy_2): Route | null;
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* Returns the current router
|
|
1793
|
+
* @returns
|
|
1794
|
+
*/
|
|
1795
|
+
export declare function useRouter(proxy?: Proxy_2): Router;
|
|
1796
|
+
|
|
1797
|
+
declare const valueKey: unique symbol;
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* 视图
|
|
1801
|
+
*/
|
|
1802
|
+
declare class View {
|
|
1803
|
+
/**
|
|
1804
|
+
* model slots列表
|
|
1805
|
+
*/
|
|
1806
|
+
private _slots?;
|
|
1807
|
+
/**
|
|
1808
|
+
* getter for models
|
|
1809
|
+
*/
|
|
1810
|
+
get slots(): Ref<ModelSlot[]>;
|
|
1811
|
+
/**
|
|
1812
|
+
* 是否为空视图
|
|
1813
|
+
*/
|
|
1814
|
+
get empty(): boolean;
|
|
1815
|
+
/**
|
|
1816
|
+
* name
|
|
1817
|
+
*/
|
|
1818
|
+
[nameKey]: string;
|
|
1819
|
+
/**
|
|
1820
|
+
* 是否分支根节点标志(true/false)
|
|
1821
|
+
*/
|
|
1822
|
+
[rootKey]: boolean;
|
|
1823
|
+
/**
|
|
1824
|
+
* view的所在的root(最近一个)
|
|
1825
|
+
*/
|
|
1826
|
+
[rootNodeKey]: ViewPlace | null;
|
|
1827
|
+
/**
|
|
1828
|
+
* view的父亲记得引用(会在router的[sync]方法中建立关系)
|
|
1829
|
+
*/
|
|
1830
|
+
[parentNodeKey]: ViewPlace | null;
|
|
1831
|
+
/**
|
|
1832
|
+
* 名称
|
|
1833
|
+
*/
|
|
1834
|
+
get name(): string;
|
|
1835
|
+
/**
|
|
1836
|
+
* 构造函数
|
|
1837
|
+
* @param name
|
|
1838
|
+
* @param isRoot
|
|
1839
|
+
* @param rootNodeRef
|
|
1840
|
+
*/
|
|
1841
|
+
constructor(name: string, isRoot: boolean, rootNodeRef?: ViewPlace | null);
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* view place
|
|
1846
|
+
*/
|
|
1847
|
+
declare class ViewPlace {
|
|
1848
|
+
/**
|
|
1849
|
+
* view
|
|
1850
|
+
*/
|
|
1851
|
+
view: View;
|
|
1852
|
+
/**
|
|
1853
|
+
* 索引
|
|
1854
|
+
*/
|
|
1855
|
+
index: number;
|
|
1856
|
+
/**
|
|
1857
|
+
* 层次
|
|
1858
|
+
*/
|
|
1859
|
+
level: number;
|
|
1860
|
+
/**
|
|
1861
|
+
* 构造函数
|
|
1862
|
+
* @param view
|
|
1863
|
+
* @param index
|
|
1864
|
+
* @param level
|
|
1865
|
+
*/
|
|
1866
|
+
constructor(view: View, index: number, level: number);
|
|
1867
|
+
/**
|
|
1868
|
+
* 判断是否在队列中
|
|
1869
|
+
* @param list
|
|
1870
|
+
* @param view
|
|
1871
|
+
*/
|
|
1872
|
+
static include(list: ViewPlace[], viewPlace: ViewPlace): boolean;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
export { }
|