@vue-start/element-pro 0.2.2 → 0.2.3

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/dist/index.d.ts CHANGED
@@ -250,6 +250,7 @@ interface FormProps {
250
250
  hideRequiredAsterisk?: boolean;
251
251
  scrollToError?: boolean;
252
252
  }
253
+ declare const FormMethods: string[];
253
254
  declare type ProFormProps = ProFormProps$1 & FormProps & Omit<ProGridProps, "items"> & {
254
255
  onFinish?: (showValues: Record<string, any>, values: Record<string, any>) => void;
255
256
  onFinishFailed?: (invalidFields: Record<string, any>) => void;
@@ -289,7 +290,21 @@ declare const ProFormText: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
289
290
  slots: {
290
291
  type: ObjectConstructor;
291
292
  };
292
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
293
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
294
+ readonly: {
295
+ type: BooleanConstructor;
296
+ default: undefined;
297
+ };
298
+ fieldProps: {
299
+ type: ObjectConstructor;
300
+ };
301
+ showProps: {
302
+ type: ObjectConstructor;
303
+ };
304
+ slots: {
305
+ type: ObjectConstructor;
306
+ };
307
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
293
308
  name: {
294
309
  type: vue.PropType<string | (string | number)[]>;
295
310
  };
@@ -320,7 +335,21 @@ declare const ProFormText: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
320
335
  slots: {
321
336
  type: ObjectConstructor;
322
337
  };
323
- }>> & Record<string, any>>>, {
338
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
339
+ readonly: {
340
+ type: BooleanConstructor;
341
+ default: undefined;
342
+ };
343
+ fieldProps: {
344
+ type: ObjectConstructor;
345
+ };
346
+ showProps: {
347
+ type: ObjectConstructor;
348
+ };
349
+ slots: {
350
+ type: ObjectConstructor;
351
+ };
352
+ }>>>>, {
324
353
  [x: string]: any;
325
354
  }>;
326
355
  declare const ProFormTextNumber: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -354,7 +383,21 @@ declare const ProFormTextNumber: vue.DefineComponent<Partial<vue.ExtractPropType
354
383
  slots: {
355
384
  type: ObjectConstructor;
356
385
  };
357
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
386
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
387
+ readonly: {
388
+ type: BooleanConstructor;
389
+ default: undefined;
390
+ };
391
+ fieldProps: {
392
+ type: ObjectConstructor;
393
+ };
394
+ showProps: {
395
+ type: ObjectConstructor;
396
+ };
397
+ slots: {
398
+ type: ObjectConstructor;
399
+ };
400
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
358
401
  name: {
359
402
  type: vue.PropType<string | (string | number)[]>;
360
403
  };
@@ -385,7 +428,21 @@ declare const ProFormTextNumber: vue.DefineComponent<Partial<vue.ExtractPropType
385
428
  slots: {
386
429
  type: ObjectConstructor;
387
430
  };
388
- }>> & Record<string, any>>>, {
431
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
432
+ readonly: {
433
+ type: BooleanConstructor;
434
+ default: undefined;
435
+ };
436
+ fieldProps: {
437
+ type: ObjectConstructor;
438
+ };
439
+ showProps: {
440
+ type: ObjectConstructor;
441
+ };
442
+ slots: {
443
+ type: ObjectConstructor;
444
+ };
445
+ }>>>>, {
389
446
  [x: string]: any;
390
447
  }>;
391
448
  declare const ProFormDatePicker: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -419,7 +476,21 @@ declare const ProFormDatePicker: vue.DefineComponent<Partial<vue.ExtractPropType
419
476
  slots: {
420
477
  type: ObjectConstructor;
421
478
  };
422
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
479
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
480
+ readonly: {
481
+ type: BooleanConstructor;
482
+ default: undefined;
483
+ };
484
+ fieldProps: {
485
+ type: ObjectConstructor;
486
+ };
487
+ showProps: {
488
+ type: ObjectConstructor;
489
+ };
490
+ slots: {
491
+ type: ObjectConstructor;
492
+ };
493
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
423
494
  name: {
424
495
  type: vue.PropType<string | (string | number)[]>;
425
496
  };
@@ -450,7 +521,21 @@ declare const ProFormDatePicker: vue.DefineComponent<Partial<vue.ExtractPropType
450
521
  slots: {
451
522
  type: ObjectConstructor;
452
523
  };
453
- }>> & Record<string, any>>>, {
524
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
525
+ readonly: {
526
+ type: BooleanConstructor;
527
+ default: undefined;
528
+ };
529
+ fieldProps: {
530
+ type: ObjectConstructor;
531
+ };
532
+ showProps: {
533
+ type: ObjectConstructor;
534
+ };
535
+ slots: {
536
+ type: ObjectConstructor;
537
+ };
538
+ }>>>>, {
454
539
  [x: string]: any;
455
540
  }>;
456
541
  declare const ProFormTimePicker: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -484,7 +569,21 @@ declare const ProFormTimePicker: vue.DefineComponent<Partial<vue.ExtractPropType
484
569
  slots: {
485
570
  type: ObjectConstructor;
486
571
  };
487
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
572
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
573
+ readonly: {
574
+ type: BooleanConstructor;
575
+ default: undefined;
576
+ };
577
+ fieldProps: {
578
+ type: ObjectConstructor;
579
+ };
580
+ showProps: {
581
+ type: ObjectConstructor;
582
+ };
583
+ slots: {
584
+ type: ObjectConstructor;
585
+ };
586
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
488
587
  name: {
489
588
  type: vue.PropType<string | (string | number)[]>;
490
589
  };
@@ -515,7 +614,21 @@ declare const ProFormTimePicker: vue.DefineComponent<Partial<vue.ExtractPropType
515
614
  slots: {
516
615
  type: ObjectConstructor;
517
616
  };
518
- }>> & Record<string, any>>>, {
617
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
618
+ readonly: {
619
+ type: BooleanConstructor;
620
+ default: undefined;
621
+ };
622
+ fieldProps: {
623
+ type: ObjectConstructor;
624
+ };
625
+ showProps: {
626
+ type: ObjectConstructor;
627
+ };
628
+ slots: {
629
+ type: ObjectConstructor;
630
+ };
631
+ }>>>>, {
519
632
  [x: string]: any;
520
633
  }>;
521
634
  declare const ProFormSelect: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -549,7 +662,21 @@ declare const ProFormSelect: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
549
662
  slots: {
550
663
  type: ObjectConstructor;
551
664
  };
552
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
665
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
666
+ readonly: {
667
+ type: BooleanConstructor;
668
+ default: undefined;
669
+ };
670
+ fieldProps: {
671
+ type: ObjectConstructor;
672
+ };
673
+ showProps: {
674
+ type: ObjectConstructor;
675
+ };
676
+ slots: {
677
+ type: ObjectConstructor;
678
+ };
679
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
553
680
  name: {
554
681
  type: vue.PropType<string | (string | number)[]>;
555
682
  };
@@ -580,7 +707,21 @@ declare const ProFormSelect: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
580
707
  slots: {
581
708
  type: ObjectConstructor;
582
709
  };
583
- }>> & Record<string, any>>>, {
710
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
711
+ readonly: {
712
+ type: BooleanConstructor;
713
+ default: undefined;
714
+ };
715
+ fieldProps: {
716
+ type: ObjectConstructor;
717
+ };
718
+ showProps: {
719
+ type: ObjectConstructor;
720
+ };
721
+ slots: {
722
+ type: ObjectConstructor;
723
+ };
724
+ }>>>>, {
584
725
  [x: string]: any;
585
726
  }>;
586
727
  declare const ProFormTreeSelect: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -614,7 +755,21 @@ declare const ProFormTreeSelect: vue.DefineComponent<Partial<vue.ExtractPropType
614
755
  slots: {
615
756
  type: ObjectConstructor;
616
757
  };
617
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
758
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
759
+ readonly: {
760
+ type: BooleanConstructor;
761
+ default: undefined;
762
+ };
763
+ fieldProps: {
764
+ type: ObjectConstructor;
765
+ };
766
+ showProps: {
767
+ type: ObjectConstructor;
768
+ };
769
+ slots: {
770
+ type: ObjectConstructor;
771
+ };
772
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
618
773
  name: {
619
774
  type: vue.PropType<string | (string | number)[]>;
620
775
  };
@@ -645,7 +800,21 @@ declare const ProFormTreeSelect: vue.DefineComponent<Partial<vue.ExtractPropType
645
800
  slots: {
646
801
  type: ObjectConstructor;
647
802
  };
648
- }>> & Record<string, any>>>, {
803
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
804
+ readonly: {
805
+ type: BooleanConstructor;
806
+ default: undefined;
807
+ };
808
+ fieldProps: {
809
+ type: ObjectConstructor;
810
+ };
811
+ showProps: {
812
+ type: ObjectConstructor;
813
+ };
814
+ slots: {
815
+ type: ObjectConstructor;
816
+ };
817
+ }>>>>, {
649
818
  [x: string]: any;
650
819
  }>;
651
820
  declare const ProFormCheckbox: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -679,7 +848,21 @@ declare const ProFormCheckbox: vue.DefineComponent<Partial<vue.ExtractPropTypes<
679
848
  slots: {
680
849
  type: ObjectConstructor;
681
850
  };
682
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
851
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
852
+ readonly: {
853
+ type: BooleanConstructor;
854
+ default: undefined;
855
+ };
856
+ fieldProps: {
857
+ type: ObjectConstructor;
858
+ };
859
+ showProps: {
860
+ type: ObjectConstructor;
861
+ };
862
+ slots: {
863
+ type: ObjectConstructor;
864
+ };
865
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
683
866
  name: {
684
867
  type: vue.PropType<string | (string | number)[]>;
685
868
  };
@@ -710,7 +893,21 @@ declare const ProFormCheckbox: vue.DefineComponent<Partial<vue.ExtractPropTypes<
710
893
  slots: {
711
894
  type: ObjectConstructor;
712
895
  };
713
- }>> & Record<string, any>>>, {
896
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
897
+ readonly: {
898
+ type: BooleanConstructor;
899
+ default: undefined;
900
+ };
901
+ fieldProps: {
902
+ type: ObjectConstructor;
903
+ };
904
+ showProps: {
905
+ type: ObjectConstructor;
906
+ };
907
+ slots: {
908
+ type: ObjectConstructor;
909
+ };
910
+ }>>>>, {
714
911
  [x: string]: any;
715
912
  }>;
716
913
  declare const ProFormRadio: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -744,7 +941,21 @@ declare const ProFormRadio: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
744
941
  slots: {
745
942
  type: ObjectConstructor;
746
943
  };
747
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
944
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
945
+ readonly: {
946
+ type: BooleanConstructor;
947
+ default: undefined;
948
+ };
949
+ fieldProps: {
950
+ type: ObjectConstructor;
951
+ };
952
+ showProps: {
953
+ type: ObjectConstructor;
954
+ };
955
+ slots: {
956
+ type: ObjectConstructor;
957
+ };
958
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
748
959
  name: {
749
960
  type: vue.PropType<string | (string | number)[]>;
750
961
  };
@@ -775,7 +986,21 @@ declare const ProFormRadio: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
775
986
  slots: {
776
987
  type: ObjectConstructor;
777
988
  };
778
- }>> & Record<string, any>>>, {
989
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
990
+ readonly: {
991
+ type: BooleanConstructor;
992
+ default: undefined;
993
+ };
994
+ fieldProps: {
995
+ type: ObjectConstructor;
996
+ };
997
+ showProps: {
998
+ type: ObjectConstructor;
999
+ };
1000
+ slots: {
1001
+ type: ObjectConstructor;
1002
+ };
1003
+ }>>>>, {
779
1004
  [x: string]: any;
780
1005
  }>;
781
1006
  declare const ProFormSwitch: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -809,7 +1034,21 @@ declare const ProFormSwitch: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
809
1034
  slots: {
810
1035
  type: ObjectConstructor;
811
1036
  };
812
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
1037
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
1038
+ readonly: {
1039
+ type: BooleanConstructor;
1040
+ default: undefined;
1041
+ };
1042
+ fieldProps: {
1043
+ type: ObjectConstructor;
1044
+ };
1045
+ showProps: {
1046
+ type: ObjectConstructor;
1047
+ };
1048
+ slots: {
1049
+ type: ObjectConstructor;
1050
+ };
1051
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
813
1052
  name: {
814
1053
  type: vue.PropType<string | (string | number)[]>;
815
1054
  };
@@ -840,7 +1079,21 @@ declare const ProFormSwitch: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
840
1079
  slots: {
841
1080
  type: ObjectConstructor;
842
1081
  };
843
- }>> & Record<string, any>>>, {
1082
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
1083
+ readonly: {
1084
+ type: BooleanConstructor;
1085
+ default: undefined;
1086
+ };
1087
+ fieldProps: {
1088
+ type: ObjectConstructor;
1089
+ };
1090
+ showProps: {
1091
+ type: ObjectConstructor;
1092
+ };
1093
+ slots: {
1094
+ type: ObjectConstructor;
1095
+ };
1096
+ }>>>>, {
844
1097
  [x: string]: any;
845
1098
  }>;
846
1099
  declare const ProFormCascader: vue.DefineComponent<Partial<vue.ExtractPropTypes<{
@@ -874,7 +1127,21 @@ declare const ProFormCascader: vue.DefineComponent<Partial<vue.ExtractPropTypes<
874
1127
  slots: {
875
1128
  type: ObjectConstructor;
876
1129
  };
877
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
1130
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
1131
+ readonly: {
1132
+ type: BooleanConstructor;
1133
+ default: undefined;
1134
+ };
1135
+ fieldProps: {
1136
+ type: ObjectConstructor;
1137
+ };
1138
+ showProps: {
1139
+ type: ObjectConstructor;
1140
+ };
1141
+ slots: {
1142
+ type: ObjectConstructor;
1143
+ };
1144
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
878
1145
  name: {
879
1146
  type: vue.PropType<string | (string | number)[]>;
880
1147
  };
@@ -905,7 +1172,21 @@ declare const ProFormCascader: vue.DefineComponent<Partial<vue.ExtractPropTypes<
905
1172
  slots: {
906
1173
  type: ObjectConstructor;
907
1174
  };
908
- }>> & Record<string, any>>>, {
1175
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
1176
+ readonly: {
1177
+ type: BooleanConstructor;
1178
+ default: undefined;
1179
+ };
1180
+ fieldProps: {
1181
+ type: ObjectConstructor;
1182
+ };
1183
+ showProps: {
1184
+ type: ObjectConstructor;
1185
+ };
1186
+ slots: {
1187
+ type: ObjectConstructor;
1188
+ };
1189
+ }>>>>, {
909
1190
  [x: string]: any;
910
1191
  }>;
911
1192
  interface ButtonProps {
@@ -983,7 +1264,21 @@ declare const createFormItemComponent: ({ InputComp, valueType, name }: {
983
1264
  slots: {
984
1265
  type: ObjectConstructor;
985
1266
  };
986
- }>> & Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
1267
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
1268
+ readonly: {
1269
+ type: BooleanConstructor;
1270
+ default: undefined;
1271
+ };
1272
+ fieldProps: {
1273
+ type: ObjectConstructor;
1274
+ };
1275
+ showProps: {
1276
+ type: ObjectConstructor;
1277
+ };
1278
+ slots: {
1279
+ type: ObjectConstructor;
1280
+ };
1281
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Partial<vue.ExtractPropTypes<{
987
1282
  name: {
988
1283
  type: vue.PropType<string | (string | number)[]>;
989
1284
  };
@@ -1014,7 +1309,21 @@ declare const createFormItemComponent: ({ InputComp, valueType, name }: {
1014
1309
  slots: {
1015
1310
  type: ObjectConstructor;
1016
1311
  };
1017
- }>> & Record<string, any>>>, {
1312
+ }>> & Record<string, any> & Partial<vue.ExtractPropTypes<{
1313
+ readonly: {
1314
+ type: BooleanConstructor;
1315
+ default: undefined;
1316
+ };
1317
+ fieldProps: {
1318
+ type: ObjectConstructor;
1319
+ };
1320
+ showProps: {
1321
+ type: ObjectConstructor;
1322
+ };
1323
+ slots: {
1324
+ type: ObjectConstructor;
1325
+ };
1326
+ }>>>>, {
1018
1327
  [x: string]: any;
1019
1328
  }>;
1020
1329
 
@@ -1026,6 +1335,7 @@ declare type ProTableProps = Omit<ProTableProps$1, "columns"> & {
1026
1335
  data?: any;
1027
1336
  loading?: boolean;
1028
1337
  };
1338
+ declare const TableMethods: string[];
1029
1339
  declare const ProTable: DefineComponent<ProTableProps>;
1030
1340
 
1031
1341
  declare type ProCurdFormProps = ProFormProps & ProCurdAddOrEditProps;
@@ -1101,4 +1411,4 @@ declare const proRadioProps: () => {
1101
1411
  declare type ProRadioProps = Partial<ExtractPropTypes<ReturnType<typeof proRadioProps>>> & RadioGroupProps;
1102
1412
  declare const ProRadio: vue.DefineComponent<ProRadioProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProRadioProps>, {}>;
1103
1413
 
1104
- export { ButtonProps, DescriptionsProps, ModalProps, PaginationProps, ProCurdDesc, ProCurdDescConnect, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListProps, ProCurdModal, ProCurdModalConnect, ProForm, ProFormCascader, ProFormCheckbox, ProFormDatePicker, ProFormItem, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProFormRadio, ProFormSelect, ProFormSwitch, ProFormText, ProFormTextNumber, ProFormTimePicker, ProFormTreeSelect, ProGrid, ProGridProps, ProLoading, ProLoadingProps, ProRadio, ProRadioProps, ProSearchForm, ProSearchFormProps, ProSelect, ProSelectProps, ProSubmitButton, ProTable, ProTableProps, createFormItemComponent, createLoadingId };
1414
+ export { ButtonProps, DescriptionsProps, FormMethods, ModalProps, PaginationProps, ProCurdDesc, ProCurdDescConnect, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListProps, ProCurdModal, ProCurdModalConnect, ProForm, ProFormCascader, ProFormCheckbox, ProFormDatePicker, ProFormItem, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProFormRadio, ProFormSelect, ProFormSwitch, ProFormText, ProFormTextNumber, ProFormTimePicker, ProFormTreeSelect, ProGrid, ProGridProps, ProLoading, ProLoadingProps, ProRadio, ProRadioProps, ProSearchForm, ProSearchFormProps, ProSelect, ProSelectProps, ProSubmitButton, ProTable, ProTableProps, TableMethods, createFormItemComponent, createLoadingId };
package/dist/index.es.js CHANGED
@@ -191,6 +191,7 @@ var ProFormItem = defineComponent({
191
191
  };
192
192
  }
193
193
  });
194
+ var FormMethods = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"];
194
195
  var Form = defineComponent({
195
196
  props: _objectSpread2({}, ElForm.props),
196
197
  setup: function setup(props, _ref2) {
@@ -199,7 +200,6 @@ var Form = defineComponent({
199
200
  expose = _ref2.expose;
200
201
  var formState = props.model || reactive({});
201
202
  var formRef = ref();
202
- var formMethods = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"];
203
203
  useEffect(function () {
204
204
  if (!formRef.value) {
205
205
  return;
@@ -217,7 +217,7 @@ var Form = defineComponent({
217
217
  });
218
218
  };
219
219
  }, []);
220
- expose(createExpose(formMethods, formRef));
220
+ expose(createExpose(FormMethods, formRef));
221
221
  return function () {
222
222
  return createVNode(ElForm, mergeProps({
223
223
  "ref": formRef
@@ -228,7 +228,7 @@ var Form = defineComponent({
228
228
  }
229
229
  });
230
230
  //emit;
231
- var ProForm = createForm(Form, ProGrid);
231
+ var ProForm = createForm(Form, ProGrid, FormMethods);
232
232
  var ProSearchForm = createSearchForm(ProForm, {
233
233
  needRules: {
234
234
  type: Boolean,
@@ -238,7 +238,7 @@ var ProSearchForm = createSearchForm(ProForm, {
238
238
  type: Boolean,
239
239
  "default": true
240
240
  }
241
- });
241
+ }, FormMethods);
242
242
 
243
243
  var createFormItemComponent = createFormItemCompFn(ProFormItem, function (value, setValue, disabled) {
244
244
  return {
@@ -463,6 +463,7 @@ var ProFormList = defineComponent({
463
463
  }
464
464
  });
465
465
 
466
+ var TableMethods = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"];
466
467
  var Table = defineComponent({
467
468
  props: _objectSpread2(_objectSpread2({}, ElTable.props), {}, {
468
469
  columns: {
@@ -476,12 +477,16 @@ var Table = defineComponent({
476
477
  }
477
478
  }),
478
479
  setup: function setup(props, _ref) {
479
- var slots = _ref.slots;
480
+ var slots = _ref.slots,
481
+ expose = _ref.expose;
482
+ var tableRef = ref();
480
483
  var id = createLoadingId("table");
484
+ expose(createExpose(TableMethods, tableRef));
481
485
  return function () {
482
486
  var _slots$start, _slots$default;
483
487
 
484
488
  return createVNode(ElTable, mergeProps({
489
+ "ref": tableRef,
485
490
  "id": id
486
491
  }, omit(props, "columns", "dataSource", "loading"), {
487
492
  "data": props.dataSource || props.data
@@ -519,13 +524,13 @@ var Table = defineComponent({
519
524
  };
520
525
  }
521
526
  });
522
- var ProTable = createTable(Table);
527
+ var ProTable = createTable(Table, undefined, TableMethods);
523
528
 
524
529
  var ProCurdForm = createCurdForm(ProForm, ElButton, function (curdState) {
525
530
  return {
526
531
  hideRequiredAsterisk: curdState.mode === CurdCurrentMode.DETAIL
527
532
  };
528
- });
533
+ }, FormMethods);
529
534
  var ProCurdFormConnect = defineComponent({
530
535
  setup: function setup() {
531
536
  var _useProCurd = useProCurd(),
@@ -652,4 +657,4 @@ var ProCurdModalConnect = defineComponent({
652
657
  }
653
658
  });
654
659
 
655
- export { ProCurdDesc, ProCurdDescConnect, ProCurdForm, ProCurdFormConnect, ProCurdList, ProCurdListConnect, ProCurdModal, ProCurdModalConnect, ProForm, ProFormCascader, ProFormCheckbox, ProFormDatePicker, ProFormItem, ProFormList, ProFormRadio, ProFormSelect, ProFormSwitch, ProFormText, ProFormTextNumber, ProFormTimePicker, ProFormTreeSelect, ProGrid, ProLoading, ProRadio, ProSearchForm, ProSelect, ProSubmitButton, ProTable, createFormItemComponent, createLoadingId };
660
+ export { FormMethods, ProCurdDesc, ProCurdDescConnect, ProCurdForm, ProCurdFormConnect, ProCurdList, ProCurdListConnect, ProCurdModal, ProCurdModalConnect, ProForm, ProFormCascader, ProFormCheckbox, ProFormDatePicker, ProFormItem, ProFormList, ProFormRadio, ProFormSelect, ProFormSwitch, ProFormText, ProFormTextNumber, ProFormTimePicker, ProFormTreeSelect, ProGrid, ProLoading, ProRadio, ProSearchForm, ProSelect, ProSubmitButton, ProTable, TableMethods, createFormItemComponent, createLoadingId };
package/dist/index.js CHANGED
@@ -195,6 +195,7 @@ var ProFormItem = vue.defineComponent({
195
195
  };
196
196
  }
197
197
  });
198
+ var FormMethods = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"];
198
199
  var Form = vue.defineComponent({
199
200
  props: _objectSpread2({}, elementPlus.ElForm.props),
200
201
  setup: function setup(props, _ref2) {
@@ -203,7 +204,6 @@ var Form = vue.defineComponent({
203
204
  expose = _ref2.expose;
204
205
  var formState = props.model || vue.reactive({});
205
206
  var formRef = vue.ref();
206
- var formMethods = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"];
207
207
  hooks.useEffect(function () {
208
208
  if (!formRef.value) {
209
209
  return;
@@ -221,7 +221,7 @@ var Form = vue.defineComponent({
221
221
  });
222
222
  };
223
223
  }, []);
224
- expose(pro.createExpose(formMethods, formRef));
224
+ expose(pro.createExpose(FormMethods, formRef));
225
225
  return function () {
226
226
  return vue.createVNode(elementPlus.ElForm, vue.mergeProps({
227
227
  "ref": formRef
@@ -232,7 +232,7 @@ var Form = vue.defineComponent({
232
232
  }
233
233
  });
234
234
  //emit;
235
- var ProForm = pro.createForm(Form, ProGrid);
235
+ var ProForm = pro.createForm(Form, ProGrid, FormMethods);
236
236
  var ProSearchForm = pro.createSearchForm(ProForm, {
237
237
  needRules: {
238
238
  type: Boolean,
@@ -242,7 +242,7 @@ var ProSearchForm = pro.createSearchForm(ProForm, {
242
242
  type: Boolean,
243
243
  "default": true
244
244
  }
245
- });
245
+ }, FormMethods);
246
246
 
247
247
  var createFormItemComponent = pro.createFormItemCompFn(ProFormItem, function (value, setValue, disabled) {
248
248
  return {
@@ -467,6 +467,7 @@ var ProFormList = vue.defineComponent({
467
467
  }
468
468
  });
469
469
 
470
+ var TableMethods = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"];
470
471
  var Table = vue.defineComponent({
471
472
  props: _objectSpread2(_objectSpread2({}, elementPlus.ElTable.props), {}, {
472
473
  columns: {
@@ -480,12 +481,16 @@ var Table = vue.defineComponent({
480
481
  }
481
482
  }),
482
483
  setup: function setup(props, _ref) {
483
- var slots = _ref.slots;
484
+ var slots = _ref.slots,
485
+ expose = _ref.expose;
486
+ var tableRef = vue.ref();
484
487
  var id = createLoadingId("table");
488
+ expose(pro.createExpose(TableMethods, tableRef));
485
489
  return function () {
486
490
  var _slots$start, _slots$default;
487
491
 
488
492
  return vue.createVNode(elementPlus.ElTable, vue.mergeProps({
493
+ "ref": tableRef,
489
494
  "id": id
490
495
  }, lodash.omit(props, "columns", "dataSource", "loading"), {
491
496
  "data": props.dataSource || props.data
@@ -523,13 +528,13 @@ var Table = vue.defineComponent({
523
528
  };
524
529
  }
525
530
  });
526
- var ProTable = pro.createTable(Table);
531
+ var ProTable = pro.createTable(Table, undefined, TableMethods);
527
532
 
528
533
  var ProCurdForm = pro.createCurdForm(ProForm, elementPlus.ElButton, function (curdState) {
529
534
  return {
530
535
  hideRequiredAsterisk: curdState.mode === pro.CurdCurrentMode.DETAIL
531
536
  };
532
- });
537
+ }, FormMethods);
533
538
  var ProCurdFormConnect = vue.defineComponent({
534
539
  setup: function setup() {
535
540
  var _useProCurd = pro.useProCurd(),
@@ -656,6 +661,7 @@ var ProCurdModalConnect = vue.defineComponent({
656
661
  }
657
662
  });
658
663
 
664
+ exports.FormMethods = FormMethods;
659
665
  exports.ProCurdDesc = ProCurdDesc;
660
666
  exports.ProCurdDescConnect = ProCurdDescConnect;
661
667
  exports.ProCurdForm = ProCurdForm;
@@ -684,5 +690,6 @@ exports.ProSearchForm = ProSearchForm;
684
690
  exports.ProSelect = ProSelect;
685
691
  exports.ProSubmitButton = ProSubmitButton;
686
692
  exports.ProTable = ProTable;
693
+ exports.TableMethods = TableMethods;
687
694
  exports.createFormItemComponent = createFormItemComponent;
688
695
  exports.createLoadingId = createLoadingId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-start/element-pro",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "> TODO: description",
5
5
  "author": "zx <zxpstudy@163.com>",
6
6
  "homepage": "https://github.com/zxeryu/vue-start#readme",
@@ -32,5 +32,5 @@
32
32
  "rxjs": ">=7.x",
33
33
  "vue": ">= 3.x"
34
34
  },
35
- "gitHead": "adf3a978c60ccb84172c2287b67d2e5ead0d0dcf"
35
+ "gitHead": "27924381a78de86f608be261da28b77c720f7b6e"
36
36
  }