@vue-start/pro 0.3.1 → 0.3.2
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +148 -363
- package/dist/index.es.js +795 -269
- package/dist/index.js +803 -270
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.3.2](https://github.com/zxeryu/vue-start/compare/@vue-start/pro@0.3.1...@vue-start/pro@0.3.2) (2022-08-29)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- bug ([766cfc0](https://github.com/zxeryu/vue-start/commit/766cfc00c621bc4a9b30087540043a96db2df9be))
|
|
11
|
+
|
|
6
12
|
## [0.3.1](https://github.com/zxeryu/vue-start/compare/@vue-start/pro@0.3.0...@vue-start/pro@0.3.1) (2022-08-23)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { ExtractPropTypes, PropType, VNode, Ref as Ref$1 } from 'vue';
|
|
3
3
|
import { Ref, UnwrapNestedRefs, ComputedRef } from '@vue/reactivity';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { IRequestActor } from '@vue-start/request';
|
|
6
6
|
|
|
7
|
+
declare const proGridProps: () => {
|
|
8
|
+
row: {
|
|
9
|
+
type: PropType<Record<string, any>>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
col: {
|
|
13
|
+
type: PropType<Record<string, any>>;
|
|
14
|
+
};
|
|
15
|
+
items: {
|
|
16
|
+
type: PropType<{
|
|
17
|
+
vNode: VNode;
|
|
18
|
+
rowKey?: string | number | undefined;
|
|
19
|
+
col?: Record<string, any> | undefined;
|
|
20
|
+
}[]>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
declare type GridProps = Partial<ExtractPropTypes<ReturnType<typeof proGridProps>>>;
|
|
24
|
+
declare const createGrid: (Row: any, Col: any) => any;
|
|
25
|
+
|
|
7
26
|
declare type TDefaultValueType = "text" | "textarea" | "password" | "digit" | "date" | "dateRange" | "time" | "timeRange" | "select" | "treeSelect" | "checkbox" | "radio" | "slider" | "switch" | "rate" | "cascader";
|
|
8
27
|
declare type TValueType = TDefaultValueType | string;
|
|
9
28
|
declare type TOption = {
|
|
@@ -67,7 +86,15 @@ declare type BooleanObjType = {
|
|
|
67
86
|
};
|
|
68
87
|
declare type BooleanRulesObjType = {
|
|
69
88
|
[key: string]: (record: any) => boolean;
|
|
70
|
-
};
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
interface FieldNames {
|
|
94
|
+
value?: string;
|
|
95
|
+
label?: string;
|
|
96
|
+
children?: string;
|
|
97
|
+
}
|
|
71
98
|
|
|
72
99
|
/**
|
|
73
100
|
* 获取Column的valueType,默认"text"
|
|
@@ -273,8 +300,9 @@ declare type TTableColumn = {
|
|
|
273
300
|
record: Record<string, any>;
|
|
274
301
|
index: number;
|
|
275
302
|
column: TTableColumn;
|
|
276
|
-
}) => VNode;
|
|
303
|
+
}) => VNode | string | number;
|
|
277
304
|
fixed?: boolean | string;
|
|
305
|
+
width?: number | string;
|
|
278
306
|
} & TColumn;
|
|
279
307
|
declare type TTableColumns = TTableColumn[];
|
|
280
308
|
/**
|
|
@@ -324,12 +352,6 @@ declare const proTableProps: () => {
|
|
|
324
352
|
elementMap: {
|
|
325
353
|
type: PropType<TElementMap>;
|
|
326
354
|
};
|
|
327
|
-
/**
|
|
328
|
-
* loading
|
|
329
|
-
*/
|
|
330
|
-
loading: {
|
|
331
|
-
type: BooleanConstructor;
|
|
332
|
-
};
|
|
333
355
|
/**
|
|
334
356
|
* 序号
|
|
335
357
|
*/
|
|
@@ -339,7 +361,7 @@ declare const proTableProps: () => {
|
|
|
339
361
|
/**
|
|
340
362
|
* 分页
|
|
341
363
|
*/
|
|
342
|
-
|
|
364
|
+
paginationState: {
|
|
343
365
|
type: PropType<{
|
|
344
366
|
page?: number | undefined;
|
|
345
367
|
pageSize?: number | undefined;
|
|
@@ -353,116 +375,13 @@ declare const proTableProps: () => {
|
|
|
353
375
|
};
|
|
354
376
|
};
|
|
355
377
|
declare type ProTableProps = Partial<ExtractPropTypes<ReturnType<typeof proTableProps>>>;
|
|
356
|
-
declare const
|
|
357
|
-
operate: {
|
|
358
|
-
type: PropType<ITableOperate>;
|
|
359
|
-
};
|
|
360
|
-
columnEmptyText: {
|
|
361
|
-
type: StringConstructor;
|
|
362
|
-
};
|
|
363
|
-
/**
|
|
364
|
-
* 公共column,会merge到columns item中
|
|
365
|
-
*/
|
|
366
|
-
column: {
|
|
367
|
-
type: PropType<TTableColumn>;
|
|
368
|
-
};
|
|
369
|
-
columns: {
|
|
370
|
-
type: PropType<TTableColumns>;
|
|
371
|
-
};
|
|
372
|
-
columnState: {
|
|
373
|
-
type: PropType<Record<string, any>>;
|
|
374
|
-
};
|
|
375
|
-
/**
|
|
376
|
-
* 展示控件集合,readonly模式下使用这些组件渲染
|
|
377
|
-
*/
|
|
378
|
-
elementMap: {
|
|
379
|
-
type: PropType<TElementMap>;
|
|
380
|
-
};
|
|
381
|
-
/**
|
|
382
|
-
* loading
|
|
383
|
-
*/
|
|
384
|
-
loading: {
|
|
385
|
-
type: BooleanConstructor;
|
|
386
|
-
};
|
|
387
|
-
/**
|
|
388
|
-
* 序号
|
|
389
|
-
*/
|
|
390
|
-
serialNumber: {
|
|
391
|
-
type: BooleanConstructor;
|
|
392
|
-
};
|
|
393
|
-
/**
|
|
394
|
-
* 分页
|
|
395
|
-
*/
|
|
396
|
-
pagination: {
|
|
397
|
-
type: PropType<{
|
|
398
|
-
page?: number | undefined;
|
|
399
|
-
pageSize?: number | undefined;
|
|
400
|
-
}>;
|
|
401
|
-
};
|
|
402
|
-
/**
|
|
403
|
-
* provide传递
|
|
404
|
-
*/
|
|
405
|
-
provideExtra: {
|
|
406
|
-
type: PropType<IProTableProvideExtra>;
|
|
407
|
-
};
|
|
408
|
-
}>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
|
|
409
|
-
operate: {
|
|
410
|
-
type: PropType<ITableOperate>;
|
|
411
|
-
};
|
|
412
|
-
columnEmptyText: {
|
|
413
|
-
type: StringConstructor;
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* 公共column,会merge到columns item中
|
|
417
|
-
*/
|
|
418
|
-
column: {
|
|
419
|
-
type: PropType<TTableColumn>;
|
|
420
|
-
};
|
|
421
|
-
columns: {
|
|
422
|
-
type: PropType<TTableColumns>;
|
|
423
|
-
};
|
|
424
|
-
columnState: {
|
|
425
|
-
type: PropType<Record<string, any>>;
|
|
426
|
-
};
|
|
427
|
-
/**
|
|
428
|
-
* 展示控件集合,readonly模式下使用这些组件渲染
|
|
429
|
-
*/
|
|
430
|
-
elementMap: {
|
|
431
|
-
type: PropType<TElementMap>;
|
|
432
|
-
};
|
|
433
|
-
/**
|
|
434
|
-
* loading
|
|
435
|
-
*/
|
|
436
|
-
loading: {
|
|
437
|
-
type: BooleanConstructor;
|
|
438
|
-
};
|
|
439
|
-
/**
|
|
440
|
-
* 序号
|
|
441
|
-
*/
|
|
442
|
-
serialNumber: {
|
|
443
|
-
type: BooleanConstructor;
|
|
444
|
-
};
|
|
445
|
-
/**
|
|
446
|
-
* 分页
|
|
447
|
-
*/
|
|
448
|
-
pagination: {
|
|
449
|
-
type: PropType<{
|
|
450
|
-
page?: number | undefined;
|
|
451
|
-
pageSize?: number | undefined;
|
|
452
|
-
}>;
|
|
453
|
-
};
|
|
454
|
-
/**
|
|
455
|
-
* provide传递
|
|
456
|
-
*/
|
|
457
|
-
provideExtra: {
|
|
458
|
-
type: PropType<IProTableProvideExtra>;
|
|
459
|
-
};
|
|
460
|
-
}>>>, {}>;
|
|
378
|
+
declare const createTable: (Table: any, Props?: any) => any;
|
|
461
379
|
|
|
462
|
-
declare
|
|
380
|
+
declare type TPageState = {
|
|
463
381
|
page: number;
|
|
464
382
|
pageSize: number;
|
|
465
383
|
};
|
|
384
|
+
declare const defaultPage: TPageState;
|
|
466
385
|
interface IListData extends Record<string, any> {
|
|
467
386
|
total: number;
|
|
468
387
|
dataSource: Record<string, any>[];
|
|
@@ -604,176 +523,104 @@ declare type PageCurdProps = Partial<ExtractPropTypes<ReturnType<typeof pageCurd
|
|
|
604
523
|
declare type ProPageCurdProps = PageCurdProps & ProCurdProps;
|
|
605
524
|
declare const ProPageCurd: vue.DefineComponent<ProPageCurdProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProPageCurdProps>, {}>;
|
|
606
525
|
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
showState: UnwrapNestedRefs<Record<string, any>>;
|
|
612
|
-
readonlyState: UnwrapNestedRefs<Record<string, any>>;
|
|
613
|
-
disableState: UnwrapNestedRefs<Record<string, any>>;
|
|
614
|
-
readonly: Ref<boolean | undefined>;
|
|
615
|
-
elementMap?: TElementMap;
|
|
616
|
-
formElementMap?: TElementMap;
|
|
617
|
-
columns: Ref<TColumns>;
|
|
618
|
-
}
|
|
619
|
-
declare const useProForm: () => IProFormProvide;
|
|
620
|
-
declare const proFormProps: () => {
|
|
621
|
-
/**
|
|
622
|
-
* 同 antd 或 element form中的model
|
|
623
|
-
*/
|
|
624
|
-
model: {
|
|
625
|
-
type: PropType<Record<string, any>>;
|
|
626
|
-
};
|
|
627
|
-
/**
|
|
628
|
-
* 子组件是否只读样式
|
|
629
|
-
*/
|
|
630
|
-
readonly: {
|
|
526
|
+
declare const createCurdDesc: (Descriptions: any, DescriptionsItem: any) => any;
|
|
527
|
+
|
|
528
|
+
declare const proCurdAddOrEditProps: () => {
|
|
529
|
+
operateBar: {
|
|
631
530
|
type: BooleanConstructor;
|
|
632
|
-
default:
|
|
633
|
-
};
|
|
634
|
-
/**
|
|
635
|
-
* FormComponent 根据此项来确定组件是否显示
|
|
636
|
-
* rules 根据rules中方法生成showState对象
|
|
637
|
-
*/
|
|
638
|
-
showState: {
|
|
639
|
-
type: PropType<BooleanObjType>;
|
|
640
|
-
};
|
|
641
|
-
showStateRules: {
|
|
642
|
-
type: PropType<BooleanRulesObjType>;
|
|
643
|
-
};
|
|
644
|
-
/**
|
|
645
|
-
* 是否只读
|
|
646
|
-
*/
|
|
647
|
-
readonlyState: {
|
|
648
|
-
type: PropType<BooleanObjType>;
|
|
649
|
-
};
|
|
650
|
-
readonlyStateRules: {
|
|
651
|
-
type: PropType<BooleanRulesObjType>;
|
|
652
|
-
};
|
|
653
|
-
/**
|
|
654
|
-
* 是否disabled
|
|
655
|
-
*/
|
|
656
|
-
disableState: {
|
|
657
|
-
type: PropType<BooleanObjType>;
|
|
531
|
+
default: boolean;
|
|
658
532
|
};
|
|
659
|
-
|
|
660
|
-
type:
|
|
533
|
+
showContinueAdd: {
|
|
534
|
+
type: BooleanConstructor;
|
|
535
|
+
default: boolean;
|
|
661
536
|
};
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
columns: {
|
|
666
|
-
type: PropType<TColumns>;
|
|
537
|
+
okText: {
|
|
538
|
+
type: StringConstructor;
|
|
539
|
+
default: string;
|
|
667
540
|
};
|
|
668
|
-
|
|
541
|
+
okButtonProps: {
|
|
669
542
|
type: PropType<Record<string, any>>;
|
|
670
543
|
};
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
elementMap: {
|
|
675
|
-
type: PropType<TElementMap>;
|
|
544
|
+
continueText: {
|
|
545
|
+
type: StringConstructor;
|
|
546
|
+
default: string;
|
|
676
547
|
};
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
*/
|
|
680
|
-
formElementMap: {
|
|
681
|
-
type: PropType<TElementMap>;
|
|
548
|
+
continueButtonProps: {
|
|
549
|
+
type: PropType<Record<string, any>>;
|
|
682
550
|
};
|
|
551
|
+
};
|
|
552
|
+
declare type ProCurdAddOrEditProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdAddOrEditProps>>>;
|
|
553
|
+
declare const createCurdForm: (Form: any, Button: any, convertFormProps?: ((curdState: ICurdState) => Record<string, any>) | undefined) => any;
|
|
554
|
+
|
|
555
|
+
declare const proCurdListProps: () => {
|
|
683
556
|
/**
|
|
684
|
-
*
|
|
557
|
+
* extra 是否放到SearchForm中
|
|
685
558
|
*/
|
|
686
|
-
|
|
559
|
+
extraInSearch: {
|
|
687
560
|
type: BooleanConstructor;
|
|
688
|
-
default:
|
|
561
|
+
default: undefined;
|
|
689
562
|
};
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
*/
|
|
693
|
-
provideExtra: {
|
|
694
|
-
type: PropType<IProFormProvideExtra>;
|
|
563
|
+
searchProps: {
|
|
564
|
+
type: PropType<Record<string, any>>;
|
|
695
565
|
};
|
|
696
|
-
|
|
697
|
-
declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormProps>>>;
|
|
698
|
-
declare const ProForm: vue.DefineComponent<{
|
|
699
|
-
/**
|
|
700
|
-
* 同 antd 或 element form中的model
|
|
701
|
-
*/
|
|
702
|
-
model: {
|
|
566
|
+
tableProps: {
|
|
703
567
|
type: PropType<Record<string, any>>;
|
|
704
568
|
};
|
|
569
|
+
pageState: {
|
|
570
|
+
type: PropType<TPageState>;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
declare type ProCurdListProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdListProps>>>;
|
|
574
|
+
declare const createCurdList: (SearchForm: any, Table: any) => vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
705
575
|
/**
|
|
706
|
-
*
|
|
576
|
+
* extra 是否放到SearchForm中
|
|
707
577
|
*/
|
|
708
|
-
|
|
578
|
+
extraInSearch: {
|
|
709
579
|
type: BooleanConstructor;
|
|
710
580
|
default: undefined;
|
|
711
581
|
};
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
* rules 根据rules中方法生成showState对象
|
|
715
|
-
*/
|
|
716
|
-
showState: {
|
|
717
|
-
type: PropType<BooleanObjType>;
|
|
718
|
-
};
|
|
719
|
-
showStateRules: {
|
|
720
|
-
type: PropType<BooleanRulesObjType>;
|
|
721
|
-
};
|
|
722
|
-
/**
|
|
723
|
-
* 是否只读
|
|
724
|
-
*/
|
|
725
|
-
readonlyState: {
|
|
726
|
-
type: PropType<BooleanObjType>;
|
|
727
|
-
};
|
|
728
|
-
readonlyStateRules: {
|
|
729
|
-
type: PropType<BooleanRulesObjType>;
|
|
582
|
+
searchProps: {
|
|
583
|
+
type: PropType<Record<string, any>>;
|
|
730
584
|
};
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
*/
|
|
734
|
-
disableState: {
|
|
735
|
-
type: PropType<BooleanObjType>;
|
|
585
|
+
tableProps: {
|
|
586
|
+
type: PropType<Record<string, any>>;
|
|
736
587
|
};
|
|
737
|
-
|
|
738
|
-
type: PropType<
|
|
588
|
+
pageState: {
|
|
589
|
+
type: PropType<TPageState>;
|
|
739
590
|
};
|
|
591
|
+
}>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
|
|
740
592
|
/**
|
|
741
|
-
*
|
|
593
|
+
* extra 是否放到SearchForm中
|
|
742
594
|
*/
|
|
743
|
-
|
|
744
|
-
type:
|
|
595
|
+
extraInSearch: {
|
|
596
|
+
type: BooleanConstructor;
|
|
597
|
+
default: undefined;
|
|
745
598
|
};
|
|
746
|
-
|
|
599
|
+
searchProps: {
|
|
747
600
|
type: PropType<Record<string, any>>;
|
|
748
601
|
};
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
*/
|
|
752
|
-
elementMap: {
|
|
753
|
-
type: PropType<TElementMap>;
|
|
754
|
-
};
|
|
755
|
-
/**
|
|
756
|
-
* 录入控件集合
|
|
757
|
-
*/
|
|
758
|
-
formElementMap: {
|
|
759
|
-
type: PropType<TElementMap>;
|
|
760
|
-
};
|
|
761
|
-
/**
|
|
762
|
-
* 是否启用rules验证
|
|
763
|
-
*/
|
|
764
|
-
needRules: {
|
|
765
|
-
type: BooleanConstructor;
|
|
766
|
-
default: boolean;
|
|
602
|
+
tableProps: {
|
|
603
|
+
type: PropType<Record<string, any>>;
|
|
767
604
|
};
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
*/
|
|
771
|
-
provideExtra: {
|
|
772
|
-
type: PropType<IProFormProvideExtra>;
|
|
605
|
+
pageState: {
|
|
606
|
+
type: PropType<TPageState>;
|
|
773
607
|
};
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
|
|
608
|
+
}>>>, {}>;
|
|
609
|
+
|
|
610
|
+
interface IProFormProvideExtra extends Record<string, any> {
|
|
611
|
+
}
|
|
612
|
+
interface IProFormProvide extends IProFormProvideExtra {
|
|
613
|
+
formState: UnwrapNestedRefs<Record<string, any>>;
|
|
614
|
+
showState: UnwrapNestedRefs<Record<string, any>>;
|
|
615
|
+
readonlyState: UnwrapNestedRefs<Record<string, any>>;
|
|
616
|
+
disableState: UnwrapNestedRefs<Record<string, any>>;
|
|
617
|
+
readonly: Ref<boolean | undefined>;
|
|
618
|
+
elementMap?: TElementMap;
|
|
619
|
+
formElementMap?: TElementMap;
|
|
620
|
+
columns: Ref<TColumns>;
|
|
621
|
+
}
|
|
622
|
+
declare const useProForm: () => IProFormProvide;
|
|
623
|
+
declare const proFormProps: () => {
|
|
777
624
|
/**
|
|
778
625
|
* 同 antd 或 element form中的model
|
|
779
626
|
*/
|
|
@@ -849,10 +696,9 @@ declare const ProForm: vue.DefineComponent<{
|
|
|
849
696
|
provideExtra: {
|
|
850
697
|
type: PropType<IProFormProvideExtra>;
|
|
851
698
|
};
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
}>;
|
|
699
|
+
};
|
|
700
|
+
declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormProps>>>;
|
|
701
|
+
declare const createForm: (Form: any, Grid: any) => any;
|
|
856
702
|
|
|
857
703
|
declare enum SearchMode {
|
|
858
704
|
AUTO = "AUTO",
|
|
@@ -894,6 +740,10 @@ declare const proSearchFormProps: () => {
|
|
|
894
740
|
debounceKeys: {
|
|
895
741
|
type: PropType<string[]>;
|
|
896
742
|
};
|
|
743
|
+
debounceTypes: {
|
|
744
|
+
type: PropType<string[]>;
|
|
745
|
+
default: string[];
|
|
746
|
+
};
|
|
897
747
|
debounceTime: {
|
|
898
748
|
type: NumberConstructor;
|
|
899
749
|
default: number;
|
|
@@ -904,85 +754,7 @@ declare type ProSearchFormProps = Partial<ExtractPropTypes<ReturnType<typeof pro
|
|
|
904
754
|
* 该组件只是个模式,最终返回null,不做任何渲染,应配合着ProForm的包装类一起使用
|
|
905
755
|
* 针对传入的model(监听对象)做相应的finish(回调)处理
|
|
906
756
|
*/
|
|
907
|
-
declare const
|
|
908
|
-
/**
|
|
909
|
-
* 需要监听的对象
|
|
910
|
-
*/
|
|
911
|
-
model: {
|
|
912
|
-
type: PropType<Record<string, any>>;
|
|
913
|
-
required: boolean;
|
|
914
|
-
};
|
|
915
|
-
/**
|
|
916
|
-
* 初始化触发 onFinish
|
|
917
|
-
*/
|
|
918
|
-
initEmit: {
|
|
919
|
-
type: BooleanConstructor;
|
|
920
|
-
default: boolean;
|
|
921
|
-
};
|
|
922
|
-
/**
|
|
923
|
-
* 模式 自动触发或者手动触发 onFinish
|
|
924
|
-
*/
|
|
925
|
-
searchMode: {
|
|
926
|
-
type: PropType<"AUTO" | "MANUAL">;
|
|
927
|
-
default: SearchMode;
|
|
928
|
-
};
|
|
929
|
-
/**
|
|
930
|
-
* 配置 同ProForm中的columns
|
|
931
|
-
* 可以根据column中valueType计算出默认的debounceKeys
|
|
932
|
-
*/
|
|
933
|
-
columns: {
|
|
934
|
-
type: PropType<TColumns>;
|
|
935
|
-
};
|
|
936
|
-
/**
|
|
937
|
-
* 需要debounce处理的字段
|
|
938
|
-
*/
|
|
939
|
-
debounceKeys: {
|
|
940
|
-
type: PropType<string[]>;
|
|
941
|
-
};
|
|
942
|
-
debounceTime: {
|
|
943
|
-
type: NumberConstructor;
|
|
944
|
-
default: number;
|
|
945
|
-
};
|
|
946
|
-
}>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
|
|
947
|
-
/**
|
|
948
|
-
* 需要监听的对象
|
|
949
|
-
*/
|
|
950
|
-
model: {
|
|
951
|
-
type: PropType<Record<string, any>>;
|
|
952
|
-
required: boolean;
|
|
953
|
-
};
|
|
954
|
-
/**
|
|
955
|
-
* 初始化触发 onFinish
|
|
956
|
-
*/
|
|
957
|
-
initEmit: {
|
|
958
|
-
type: BooleanConstructor;
|
|
959
|
-
default: boolean;
|
|
960
|
-
};
|
|
961
|
-
/**
|
|
962
|
-
* 模式 自动触发或者手动触发 onFinish
|
|
963
|
-
*/
|
|
964
|
-
searchMode: {
|
|
965
|
-
type: PropType<"AUTO" | "MANUAL">;
|
|
966
|
-
default: SearchMode;
|
|
967
|
-
};
|
|
968
|
-
/**
|
|
969
|
-
* 配置 同ProForm中的columns
|
|
970
|
-
* 可以根据column中valueType计算出默认的debounceKeys
|
|
971
|
-
*/
|
|
972
|
-
columns: {
|
|
973
|
-
type: PropType<TColumns>;
|
|
974
|
-
};
|
|
975
|
-
/**
|
|
976
|
-
* 需要debounce处理的字段
|
|
977
|
-
*/
|
|
978
|
-
debounceKeys: {
|
|
979
|
-
type: PropType<string[]>;
|
|
980
|
-
};
|
|
981
|
-
debounceTime: {
|
|
982
|
-
type: NumberConstructor;
|
|
983
|
-
default: number;
|
|
984
|
-
};
|
|
985
|
-
}>>>, {}>;
|
|
757
|
+
declare const createSearchForm: (Form: any, Props: any) => any;
|
|
986
758
|
|
|
987
759
|
interface FormItemProps {
|
|
988
760
|
name?: string | number | (string | number)[];
|
|
@@ -1096,25 +868,32 @@ declare const proFormListProps: () => {
|
|
|
1096
868
|
};
|
|
1097
869
|
};
|
|
1098
870
|
declare type ProFormListProps = Partial<ExtractPropTypes<ReturnType<typeof proFormListProps>>>;
|
|
1099
|
-
declare const
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
871
|
+
declare const createFormList: (FormItem: any) => any;
|
|
872
|
+
|
|
873
|
+
declare type TData = Record<string, any>;
|
|
874
|
+
/**
|
|
875
|
+
* 根据value从treeData中找到对象
|
|
876
|
+
* @param data
|
|
877
|
+
* @param value
|
|
878
|
+
* @param fieldNames
|
|
879
|
+
* @param cb 对象:同步 方法:回调,可以理解为异步
|
|
880
|
+
*/
|
|
881
|
+
declare const findTargetInTree: (data: TData[], value: TOption["value"], fieldNames: FieldNames, cb: {
|
|
882
|
+
target?: TData | undefined;
|
|
883
|
+
index?: number | undefined;
|
|
884
|
+
list?: TData[] | undefined;
|
|
885
|
+
} | ((index: number, target: TData, list: TData[]) => void)) => void;
|
|
886
|
+
/**
|
|
887
|
+
* 根据value从treeData中找出对象及父列表
|
|
888
|
+
* @param data
|
|
889
|
+
* @param value
|
|
890
|
+
* @param fieldNames
|
|
891
|
+
* @param cb
|
|
892
|
+
* @param parent
|
|
893
|
+
*/
|
|
894
|
+
declare const findTargetListInTree: (data: TData[], value: TOption["value"], fieldNames: FieldNames, cb: {
|
|
895
|
+
list?: TData[] | undefined;
|
|
896
|
+
} | ((list?: TData[] | undefined) => void), parent?: TData[]) => void;
|
|
1118
897
|
|
|
1119
898
|
/**
|
|
1120
899
|
* 剔除showState或showStateRules规则为!true的值
|
|
@@ -1128,17 +907,23 @@ declare const getValidValues: (values: Record<string, any>, showState?: BooleanO
|
|
|
1128
907
|
* @param path
|
|
1129
908
|
*/
|
|
1130
909
|
declare const convertPathToList: (path: undefined | string | number | (string | number)[]) => undefined | (string | number)[];
|
|
1131
|
-
/**
|
|
1132
|
-
* 唯一id
|
|
1133
|
-
*/
|
|
1134
|
-
declare const generateId: () => string;
|
|
1135
910
|
/**
|
|
1136
911
|
* 将listState 中的数据通过id merge到 list item中
|
|
1137
912
|
* ps:数组会替换
|
|
913
|
+
* 注意:mergeWith 会改变原始对象
|
|
1138
914
|
* @param list
|
|
1139
915
|
* @param listState
|
|
1140
916
|
* @param id
|
|
1141
917
|
*/
|
|
1142
918
|
declare const mergeStateToList: (list: Record<string, any>[], listState: Record<string, any>, id: string | number | ((item: Record<string, any>) => string | number)) => Record<string, any>[];
|
|
1143
919
|
|
|
1144
|
-
|
|
920
|
+
/**
|
|
921
|
+
* 唯一id
|
|
922
|
+
*/
|
|
923
|
+
declare const generateId: () => string;
|
|
924
|
+
/**
|
|
925
|
+
* ref 传递
|
|
926
|
+
*/
|
|
927
|
+
declare const createExpose: (methods: string[], targetRef: Ref$1) => {};
|
|
928
|
+
|
|
929
|
+
export { BooleanObjType, BooleanRulesObjType, CurdAction, CurdAddAction, CurdCurrentMode, CurdSubAction, FieldNames, FormItemProps, GridProps, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IListData, IOperateItem, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, ProCurd, ProCurdAddOrEditProps, ProCurdListProps, ProCurdProps, ProFormItemProps, ProFormListProps, ProFormProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProPageCurd, ProPageCurdProps, ProSearchFormProps, ProTableProps, RequestAction, SearchMode, TActionEvent, TActionState, TColumn, TColumns, TCurdActionEvent, TData, TDefaultValueType, TElementMap, TOption, TOptions, TPageState, TTableColumn, TTableColumns, TValueType, convertPathToList, createCurdDesc, createCurdForm, createCurdList, createExpose, createForm, createFormItemCompFn, createFormList, createGrid, createSearchForm, createTable, defaultPage, findTargetInTree, findTargetListInTree, generateId, getColumnFormItemName, getColumnValueType, getFormItemEl, getItemEl, getValidValues, mergeStateToList, provideProCurd, provideProModule, useComposeRequestActor, useDoneRequestActor, useFailedRequestActor, useModuleEvent, useProCurd, useProForm, useProFormList, useProModule, useProTable };
|