@tmagic/form 1.6.0 → 1.7.0-beta.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.
Files changed (43) hide show
  1. package/dist/style.css +29 -3
  2. package/dist/tmagic-form.js +1788 -1581
  3. package/dist/tmagic-form.umd.cjs +1830 -1619
  4. package/package.json +6 -6
  5. package/src/Form.vue +18 -5
  6. package/src/containers/Container.vue +109 -134
  7. package/src/containers/Fieldset.vue +31 -7
  8. package/src/containers/FlexLayout.vue +59 -0
  9. package/src/containers/Tabs.vue +11 -1
  10. package/src/fields/Cascader.vue +25 -16
  11. package/src/fields/Checkbox.vue +3 -3
  12. package/src/fields/CheckboxGroup.vue +1 -1
  13. package/src/fields/ColorPicker.vue +2 -2
  14. package/src/fields/Date.vue +2 -2
  15. package/src/fields/DateTime.vue +2 -2
  16. package/src/fields/Daterange.vue +2 -2
  17. package/src/fields/Number.vue +2 -2
  18. package/src/fields/NumberRange.vue +6 -6
  19. package/src/fields/RadioGroup.vue +18 -16
  20. package/src/fields/Select.vue +2 -2
  21. package/src/fields/Switch.vue +2 -2
  22. package/src/fields/Text.vue +21 -9
  23. package/src/fields/Textarea.vue +2 -2
  24. package/src/fields/Time.vue +2 -2
  25. package/src/fields/Timerange.vue +2 -2
  26. package/src/index.ts +5 -2
  27. package/src/table/ActionsColumn.vue +97 -0
  28. package/src/table/SortColumn.vue +101 -0
  29. package/src/table/Table.vue +170 -0
  30. package/src/table/type.ts +18 -0
  31. package/src/table/useAdd.ts +111 -0
  32. package/src/table/useFullscreen.ts +28 -0
  33. package/src/table/useImport.ts +68 -0
  34. package/src/table/usePagination.ts +30 -0
  35. package/src/table/useSelection.ts +34 -0
  36. package/src/table/useSortable.ts +48 -0
  37. package/src/table/useTableColumns.ts +194 -0
  38. package/src/theme/container.scss +17 -0
  39. package/src/theme/form.scss +15 -3
  40. package/src/theme/text.scss +6 -0
  41. package/src/utils/form.ts +56 -2
  42. package/types/index.d.ts +103 -56
  43. package/src/containers/Table.vue +0 -681
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { App } from 'vue';
2
2
  import * as _tmagic_form_schema from '@tmagic/form-schema';
3
- import { FormState, FormConfig, TabPaneConfig, FormValue, FilterFunction, Rule, ChildConfig, FieldsetConfig, PanelConfig, RowConfig, TabConfig, TableConfig, GroupListConfig, FieldProps, TextConfig, NumberConfig, NumberRangeConfig, TextareaConfig, HiddenConfig, DateConfig, DateTimeConfig, TimeConfig, CheckboxConfig, SwitchConfig, DaterangeConfig, ColorPickConfig, CheckboxGroupConfig, RadioGroupConfig, DisplayConfig, LinkConfig, SelectConfig, SelectOption, SelectGroupOption, CascaderConfig, DynamicFieldConfig } from '@tmagic/form-schema';
3
+ import { FormState, FormConfig, TabPaneConfig, FormValue, FilterFunction, Rule, SortProp, ChildConfig, FieldsetConfig, FlexLayoutConfig, PanelConfig, RowConfig, TabConfig, TableConfig, GroupListConfig, FieldProps, TextConfig, NumberConfig, NumberRangeConfig, TextareaConfig, HiddenConfig, DateConfig, DateTimeConfig, TimeConfig, CheckboxConfig, SwitchConfig, DaterangeConfig, ColorPickConfig, CheckboxGroupConfig, RadioGroupConfig, DisplayConfig, LinkConfig, SelectConfig, SelectOption, SelectGroupOption, CascaderConfig, DynamicFieldConfig } from '@tmagic/form-schema';
4
4
  export * from '@tmagic/form-schema';
5
5
  import * as _vue_runtime_core from '@vue/runtime-core';
6
6
  import * as _vue_reactivity from '@vue/reactivity';
@@ -28,6 +28,9 @@ declare const initValue: (mForm: FormState | undefined, { initValues, config }:
28
28
  config: FormConfig;
29
29
  }) => Promise<FormValue>;
30
30
  declare const datetimeFormatter: (v: string | Date, defaultValue?: string, format?: string) => string | number;
31
+ declare const getDataByPage: (data: any[] | undefined, pagecontext: number, pagesize: number) => any[];
32
+ declare const sortArray: (data: any[], newIndex: number, oldIndex: number, sortKey?: string) => any[];
33
+ declare const sortChange: (data: any[], { prop, order }: SortProp) => void;
31
34
 
32
35
  declare const useAddField: (prop?: string) => void;
33
36
 
@@ -53,7 +56,7 @@ type __VLS_Props$u = {
53
56
  preventSubmitDefault?: boolean;
54
57
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
55
58
  };
56
- declare const _default$v: _vue_runtime_core.DefineComponent<__VLS_Props$u, {
59
+ declare const __VLS_export$v: _vue_runtime_core.DefineComponent<__VLS_Props$u, {
57
60
  values: _vue_reactivity.Ref<FormValue, FormValue>;
58
61
  lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
59
62
  formState: FormState;
@@ -88,6 +91,7 @@ declare const _default$v: _vue_runtime_core.DefineComponent<__VLS_Props$u, {
88
91
  parentValues: Record<string, any>;
89
92
  stepActive: string | number;
90
93
  }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
94
+ declare const _default$w: typeof __VLS_export$v;
91
95
 
92
96
  type __VLS_Props$t = {
93
97
  config?: FormConfig;
@@ -115,7 +119,7 @@ type __VLS_Slots$4 = {} & {
115
119
  } & {
116
120
  footer?: (props: typeof __VLS_39) => any;
117
121
  };
118
- declare const __VLS_component$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
122
+ declare const __VLS_base$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
119
123
  form: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
120
124
  config: FormConfig;
121
125
  initValues: Record<string, any>;
@@ -344,7 +348,8 @@ declare const __VLS_component$4: _vue_runtime_core.DefineComponent<__VLS_Props$t
344
348
  config: FormConfig;
345
349
  confirmText: string;
346
350
  }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
347
- declare const _default$u: __VLS_WithSlots$4<typeof __VLS_component$4, __VLS_Slots$4>;
351
+ declare const __VLS_export$u: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
352
+ declare const _default$v: typeof __VLS_export$u;
348
353
 
349
354
  type __VLS_WithSlots$4<T, S> = T & {
350
355
  new (): {
@@ -380,7 +385,7 @@ type __VLS_Slots$3 = {} & {
380
385
  } & {
381
386
  footer?: (props: typeof __VLS_43) => any;
382
387
  };
383
- declare const __VLS_component$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
388
+ declare const __VLS_base$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
384
389
  form: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
385
390
  config: FormConfig;
386
391
  initValues: Record<string, any>;
@@ -615,7 +620,8 @@ declare const __VLS_component$3: _vue_runtime_core.DefineComponent<__VLS_Props$s
615
620
  config: FormConfig;
616
621
  confirmText: string;
617
622
  }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
618
- declare const _default$t: __VLS_WithSlots$3<typeof __VLS_component$3, __VLS_Slots$3>;
623
+ declare const __VLS_export$t: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
624
+ declare const _default$u: typeof __VLS_export$t;
619
625
 
620
626
  type __VLS_WithSlots$3<T, S> = T & {
621
627
  new (): {
@@ -647,7 +653,7 @@ type __VLS_Slots$2 = {} & {
647
653
  } & {
648
654
  footer?: (props: typeof __VLS_19) => any;
649
655
  };
650
- declare const __VLS_component$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
656
+ declare const __VLS_base$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
651
657
  form: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
652
658
  config: FormConfig;
653
659
  initValues: Record<string, any>;
@@ -871,7 +877,8 @@ declare const __VLS_component$2: _vue_runtime_core.DefineComponent<__VLS_Props$r
871
877
  config: FormConfig;
872
878
  confirmText: string;
873
879
  }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
874
- declare const _default$s: __VLS_WithSlots$2<typeof __VLS_component$2, __VLS_Slots$2>;
880
+ declare const __VLS_export$s: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
881
+ declare const _default$t: typeof __VLS_export$s;
875
882
 
876
883
  type __VLS_WithSlots$2<T, S> = T & {
877
884
  new (): {
@@ -894,7 +901,7 @@ type __VLS_Props$q = {
894
901
  /** 是否开启对比模式 */
895
902
  isCompare?: boolean;
896
903
  };
897
- declare const _default$r: _vue_runtime_core.DefineComponent<__VLS_Props$q, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
904
+ declare const __VLS_export$r: _vue_runtime_core.DefineComponent<__VLS_Props$q, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
898
905
  change: (v: any, eventData: ContainerChangeEventData) => any;
899
906
  addDiffCount: () => any;
900
907
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$q> & Readonly<{
@@ -907,6 +914,7 @@ declare const _default$r: _vue_runtime_core.DefineComponent<__VLS_Props$q, {}, {
907
914
  isCompare: boolean;
908
915
  expandMore: boolean;
909
916
  }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
917
+ declare const _default$s: typeof __VLS_export$r;
910
918
 
911
919
  type __VLS_Props$p = {
912
920
  labelWidth?: string;
@@ -919,7 +927,7 @@ type __VLS_Props$p = {
919
927
  rules?: any;
920
928
  disabled?: boolean;
921
929
  };
922
- declare const _default$q: _vue_runtime_core.DefineComponent<__VLS_Props$p, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
930
+ declare const __VLS_export$q: _vue_runtime_core.DefineComponent<__VLS_Props$p, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
923
931
  change: (v: any, eventData: ContainerChangeEventData) => any;
924
932
  addDiffCount: () => any;
925
933
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$p> & Readonly<{
@@ -931,8 +939,29 @@ declare const _default$q: _vue_runtime_core.DefineComponent<__VLS_Props$p, {}, {
931
939
  lastValues: Record<string, any>;
932
940
  isCompare: boolean;
933
941
  }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
942
+ declare const _default$r: typeof __VLS_export$q;
934
943
 
935
944
  type __VLS_Props$o = {
945
+ model: any;
946
+ lastValues?: any;
947
+ isCompare?: boolean;
948
+ config: FlexLayoutConfig;
949
+ name?: string;
950
+ labelWidth?: string;
951
+ prop?: string;
952
+ size?: string;
953
+ disabled?: boolean;
954
+ };
955
+ declare const __VLS_export$p: _vue_runtime_core.DefineComponent<__VLS_Props$o, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
956
+ change: (v: any, eventData: ContainerChangeEventData) => any;
957
+ addDiffCount: () => any;
958
+ }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$o> & Readonly<{
959
+ onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
960
+ onAddDiffCount?: (() => any) | undefined;
961
+ }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
962
+ declare const _default$q: typeof __VLS_export$p;
963
+
964
+ type __VLS_Props$n = {
936
965
  model: any;
937
966
  lastValues?: any;
938
967
  isCompare?: boolean;
@@ -950,14 +979,15 @@ type __VLS_Slots$1 = {} & {
950
979
  } & {
951
980
  default?: (props: typeof __VLS_18) => any;
952
981
  };
953
- declare const __VLS_component$1: _vue_runtime_core.DefineComponent<__VLS_Props$o, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
982
+ declare const __VLS_base$1: _vue_runtime_core.DefineComponent<__VLS_Props$n, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
954
983
  change: (v: any, eventData: ContainerChangeEventData) => any;
955
984
  addDiffCount: () => any;
956
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$o> & Readonly<{
985
+ }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$n> & Readonly<{
957
986
  onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
958
987
  onAddDiffCount?: (() => any) | undefined;
959
988
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
960
- declare const _default$p: __VLS_WithSlots$1<typeof __VLS_component$1, __VLS_Slots$1>;
989
+ declare const __VLS_export$o: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
990
+ declare const _default$p: typeof __VLS_export$o;
961
991
 
962
992
  type __VLS_WithSlots$1<T, S> = T & {
963
993
  new (): {
@@ -965,7 +995,7 @@ type __VLS_WithSlots$1<T, S> = T & {
965
995
  };
966
996
  };
967
997
 
968
- type __VLS_Props$n = {
998
+ type __VLS_Props$m = {
969
999
  model: any;
970
1000
  lastValues?: any;
971
1001
  isCompare?: boolean;
@@ -977,15 +1007,16 @@ type __VLS_Props$n = {
977
1007
  expandMore?: boolean;
978
1008
  disabled?: boolean;
979
1009
  };
980
- declare const _default$o: _vue_runtime_core.DefineComponent<__VLS_Props$n, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1010
+ declare const __VLS_export$n: _vue_runtime_core.DefineComponent<__VLS_Props$m, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
981
1011
  change: (v: any, eventData: ContainerChangeEventData) => any;
982
1012
  addDiffCount: () => any;
983
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$n> & Readonly<{
1013
+ }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$m> & Readonly<{
984
1014
  onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
985
1015
  onAddDiffCount?: (() => any) | undefined;
986
1016
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1017
+ declare const _default$o: typeof __VLS_export$n;
987
1018
 
988
- type __VLS_Props$m = {
1019
+ type __VLS_Props$l = {
989
1020
  model: any;
990
1021
  lastValues?: any;
991
1022
  isCompare?: boolean;
@@ -997,18 +1028,19 @@ type __VLS_Props$m = {
997
1028
  expandMore?: boolean;
998
1029
  disabled?: boolean;
999
1030
  };
1000
- declare const _default$n: _vue_runtime_core.DefineComponent<__VLS_Props$m, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1031
+ declare const __VLS_export$m: _vue_runtime_core.DefineComponent<__VLS_Props$l, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1001
1032
  change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
1002
1033
  addDiffCount: () => any;
1003
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$m> & Readonly<{
1034
+ }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$l> & Readonly<{
1004
1035
  onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
1005
1036
  onAddDiffCount?: (() => any) | undefined;
1006
1037
  }>, {
1007
1038
  lastValues: any;
1008
1039
  isCompare: boolean;
1009
1040
  }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1041
+ declare const _default$n: typeof __VLS_export$m;
1010
1042
 
1011
- type __VLS_Props$l = {
1043
+ interface TableProps {
1012
1044
  model: any;
1013
1045
  lastValues?: any;
1014
1046
  isCompare?: boolean;
@@ -1023,26 +1055,19 @@ type __VLS_Props$l = {
1023
1055
  size?: string;
1024
1056
  enableToggleMode?: boolean;
1025
1057
  showIndex?: boolean;
1026
- };
1027
- declare var __VLS_34: {
1028
- scope: {
1029
- $index: any;
1030
- row: any;
1031
- };
1032
- };
1033
- declare var __VLS_111: {};
1058
+ }
1059
+
1060
+ declare var __VLS_22: {};
1034
1061
  type __VLS_Slots = {} & {
1035
- operateCol?: (props: typeof __VLS_34) => any;
1036
- } & {
1037
- default?: (props: typeof __VLS_111) => any;
1062
+ default?: (props: typeof __VLS_22) => any;
1038
1063
  };
1039
- declare const __VLS_component: _vue_runtime_core.DefineComponent<__VLS_Props$l, {
1064
+ declare const __VLS_base: _vue_runtime_core.DefineComponent<TableProps, {
1040
1065
  toggleRowSelection: (row: any, selected: boolean) => void;
1041
1066
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1042
1067
  change: (...args: any[]) => void;
1043
1068
  select: (...args: any[]) => void;
1044
1069
  addDiffCount: (...args: any[]) => void;
1045
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$l> & Readonly<{
1070
+ }, string, _vue_runtime_core.PublicProps, Readonly<TableProps> & Readonly<{
1046
1071
  onChange?: ((...args: any[]) => any) | undefined;
1047
1072
  onSelect?: ((...args: any[]) => any) | undefined;
1048
1073
  onAddDiffCount?: ((...args: any[]) => any) | undefined;
@@ -1054,7 +1079,8 @@ declare const __VLS_component: _vue_runtime_core.DefineComponent<__VLS_Props$l,
1054
1079
  showIndex: boolean;
1055
1080
  sortKey: string;
1056
1081
  }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1057
- declare const _default$m: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
1082
+ declare const __VLS_export$l: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1083
+ declare const _default$m: typeof __VLS_export$l;
1058
1084
 
1059
1085
  type __VLS_WithSlots<T, S> = T & {
1060
1086
  new (): {
@@ -1073,133 +1099,151 @@ type __VLS_Props$k = {
1073
1099
  size?: string;
1074
1100
  disabled?: boolean;
1075
1101
  };
1076
- declare const _default$l: _vue_runtime_core.DefineComponent<__VLS_Props$k, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1102
+ declare const __VLS_export$k: _vue_runtime_core.DefineComponent<__VLS_Props$k, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1077
1103
  change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
1078
1104
  addDiffCount: () => any;
1079
1105
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$k> & Readonly<{
1080
1106
  onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
1081
1107
  onAddDiffCount?: (() => any) | undefined;
1082
1108
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1109
+ declare const _default$l: typeof __VLS_export$k;
1083
1110
 
1084
1111
  type __VLS_Props$j = FieldProps<TextConfig>;
1085
- declare const _default$k: _vue_runtime_core.DefineComponent<__VLS_Props$j, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1112
+ declare const __VLS_export$j: _vue_runtime_core.DefineComponent<__VLS_Props$j, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1086
1113
  change: (value: string) => any;
1087
1114
  input: (value: string) => any;
1088
1115
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$j> & Readonly<{
1089
1116
  onChange?: ((value: string) => any) | undefined;
1090
1117
  onInput?: ((value: string) => any) | undefined;
1091
1118
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1119
+ declare const _default$k: typeof __VLS_export$j;
1092
1120
 
1093
1121
  type __VLS_Props$i = FieldProps<NumberConfig>;
1094
- declare const _default$j: _vue_runtime_core.DefineComponent<__VLS_Props$i, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1122
+ declare const __VLS_export$i: _vue_runtime_core.DefineComponent<__VLS_Props$i, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1095
1123
  change: (values: number) => any;
1096
1124
  input: (values: number) => any;
1097
1125
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$i> & Readonly<{
1098
1126
  onChange?: ((values: number) => any) | undefined;
1099
1127
  onInput?: ((values: number) => any) | undefined;
1100
1128
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1129
+ declare const _default$j: typeof __VLS_export$i;
1101
1130
 
1102
1131
  type __VLS_Props$h = FieldProps<NumberRangeConfig>;
1103
- declare const _default$i: _vue_runtime_core.DefineComponent<__VLS_Props$h, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1132
+ declare const __VLS_export$h: _vue_runtime_core.DefineComponent<__VLS_Props$h, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1104
1133
  change: (values: [number, number]) => any;
1105
1134
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$h> & Readonly<{
1106
1135
  onChange?: ((values: [number, number]) => any) | undefined;
1107
1136
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1137
+ declare const _default$i: typeof __VLS_export$h;
1108
1138
 
1109
1139
  type __VLS_Props$g = FieldProps<TextareaConfig>;
1110
- declare const _default$h: _vue_runtime_core.DefineComponent<__VLS_Props$g, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1140
+ declare const __VLS_export$g: _vue_runtime_core.DefineComponent<__VLS_Props$g, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1111
1141
  change: (value: string) => any;
1112
1142
  input: (value: string) => any;
1113
1143
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$g> & Readonly<{
1114
1144
  onChange?: ((value: string) => any) | undefined;
1115
1145
  onInput?: ((value: string) => any) | undefined;
1116
1146
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1147
+ declare const _default$h: typeof __VLS_export$g;
1117
1148
 
1118
1149
  type __VLS_Props$f = FieldProps<HiddenConfig>;
1119
- declare const _default$g: _vue_runtime_core.DefineComponent<__VLS_Props$f, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$f> & Readonly<{}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1150
+ declare const __VLS_export$f: _vue_runtime_core.DefineComponent<__VLS_Props$f, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$f> & Readonly<{}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1151
+ declare const _default$g: typeof __VLS_export$f;
1120
1152
 
1121
1153
  type __VLS_Props$e = FieldProps<DateConfig>;
1122
- declare const _default$f: _vue_runtime_core.DefineComponent<__VLS_Props$e, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1154
+ declare const __VLS_export$e: _vue_runtime_core.DefineComponent<__VLS_Props$e, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1123
1155
  change: (value: string) => any;
1124
1156
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$e> & Readonly<{
1125
1157
  onChange?: ((value: string) => any) | undefined;
1126
1158
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1159
+ declare const _default$f: typeof __VLS_export$e;
1127
1160
 
1128
1161
  type __VLS_Props$d = FieldProps<DateTimeConfig>;
1129
- declare const _default$e: _vue_runtime_core.DefineComponent<__VLS_Props$d, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1162
+ declare const __VLS_export$d: _vue_runtime_core.DefineComponent<__VLS_Props$d, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1130
1163
  change: (value: string) => any;
1131
1164
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$d> & Readonly<{
1132
1165
  onChange?: ((value: string) => any) | undefined;
1133
1166
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1167
+ declare const _default$e: typeof __VLS_export$d;
1134
1168
 
1135
1169
  type __VLS_Props$c = FieldProps<TimeConfig>;
1136
- declare const _default$d: _vue_runtime_core.DefineComponent<__VLS_Props$c, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1170
+ declare const __VLS_export$c: _vue_runtime_core.DefineComponent<__VLS_Props$c, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1137
1171
  change: (value: string) => any;
1138
1172
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$c> & Readonly<{
1139
1173
  onChange?: ((value: string) => any) | undefined;
1140
1174
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1175
+ declare const _default$d: typeof __VLS_export$c;
1141
1176
 
1142
1177
  type __VLS_Props$b = FieldProps<CheckboxConfig>;
1143
- declare const _default$c: _vue_runtime_core.DefineComponent<__VLS_Props$b, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1178
+ declare const __VLS_export$b: _vue_runtime_core.DefineComponent<__VLS_Props$b, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1144
1179
  change: (...args: any[]) => void;
1145
1180
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$b> & Readonly<{
1146
1181
  onChange?: ((...args: any[]) => any) | undefined;
1147
1182
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1183
+ declare const _default$c: typeof __VLS_export$b;
1148
1184
 
1149
1185
  type __VLS_Props$a = FieldProps<SwitchConfig>;
1150
- declare const _default$b: _vue_runtime_core.DefineComponent<__VLS_Props$a, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1186
+ declare const __VLS_export$a: _vue_runtime_core.DefineComponent<__VLS_Props$a, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1151
1187
  change: (value: any) => any;
1152
1188
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$a> & Readonly<{
1153
1189
  onChange?: ((value: any) => any) | undefined;
1154
1190
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1191
+ declare const _default$b: typeof __VLS_export$a;
1155
1192
 
1156
1193
  type __VLS_Props$9 = FieldProps<DaterangeConfig>;
1157
- declare const _default$a: _vue_runtime_core.DefineComponent<__VLS_Props$9, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1194
+ declare const __VLS_export$9: _vue_runtime_core.DefineComponent<__VLS_Props$9, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1158
1195
  change: (...args: any[]) => void;
1159
1196
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$9> & Readonly<{
1160
1197
  onChange?: ((...args: any[]) => any) | undefined;
1161
1198
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1199
+ declare const _default$a: typeof __VLS_export$9;
1162
1200
 
1163
1201
  type __VLS_Props$8 = FieldProps<DaterangeConfig>;
1164
- declare const _default$9: _vue_runtime_core.DefineComponent<__VLS_Props$8, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1202
+ declare const __VLS_export$8: _vue_runtime_core.DefineComponent<__VLS_Props$8, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1165
1203
  change: (...args: any[]) => void;
1166
1204
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$8> & Readonly<{
1167
1205
  onChange?: ((...args: any[]) => any) | undefined;
1168
1206
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1207
+ declare const _default$9: typeof __VLS_export$8;
1169
1208
 
1170
1209
  type __VLS_Props$7 = FieldProps<ColorPickConfig>;
1171
- declare const _default$8: _vue_runtime_core.DefineComponent<__VLS_Props$7, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1210
+ declare const __VLS_export$7: _vue_runtime_core.DefineComponent<__VLS_Props$7, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1172
1211
  change: (value: string) => any;
1173
1212
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$7> & Readonly<{
1174
1213
  onChange?: ((value: string) => any) | undefined;
1175
1214
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1215
+ declare const _default$8: typeof __VLS_export$7;
1176
1216
 
1177
1217
  type __VLS_Props$6 = FieldProps<CheckboxGroupConfig>;
1178
- declare const _default$7: _vue_runtime_core.DefineComponent<__VLS_Props$6, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1218
+ declare const __VLS_export$6: _vue_runtime_core.DefineComponent<__VLS_Props$6, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1179
1219
  change: (...args: any[]) => void;
1180
1220
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$6> & Readonly<{
1181
1221
  onChange?: ((...args: any[]) => any) | undefined;
1182
1222
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1223
+ declare const _default$7: typeof __VLS_export$6;
1183
1224
 
1184
1225
  type __VLS_Props$5 = FieldProps<RadioGroupConfig>;
1185
- declare const _default$6: _vue_runtime_core.DefineComponent<__VLS_Props$5, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1226
+ declare const __VLS_export$5: _vue_runtime_core.DefineComponent<__VLS_Props$5, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1186
1227
  change: (...args: any[]) => void;
1187
1228
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$5> & Readonly<{
1188
1229
  onChange?: ((...args: any[]) => any) | undefined;
1189
1230
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1231
+ declare const _default$6: typeof __VLS_export$5;
1190
1232
 
1191
1233
  type __VLS_Props$4 = FieldProps<DisplayConfig>;
1192
- declare const _default$5: _vue_runtime_core.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$4> & Readonly<{}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1234
+ declare const __VLS_export$4: _vue_runtime_core.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {}, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$4> & Readonly<{}>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1235
+ declare const _default$5: typeof __VLS_export$4;
1193
1236
 
1194
1237
  type __VLS_Props$3 = FieldProps<LinkConfig>;
1195
- declare const _default$4: _vue_runtime_core.DefineComponent<__VLS_Props$3, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1238
+ declare const __VLS_export$3: _vue_runtime_core.DefineComponent<__VLS_Props$3, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1196
1239
  change: (...args: any[]) => void;
1197
1240
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$3> & Readonly<{
1198
1241
  onChange?: ((...args: any[]) => any) | undefined;
1199
1242
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1243
+ declare const _default$4: typeof __VLS_export$3;
1200
1244
 
1201
1245
  type __VLS_Props$2 = FieldProps<SelectConfig>;
1202
- declare const _default$3: _vue_runtime_core.DefineComponent<__VLS_Props$2, {
1246
+ declare const __VLS_export$2: _vue_runtime_core.DefineComponent<__VLS_Props$2, {
1203
1247
  options: _vue_reactivity.Ref<{
1204
1248
  text: string;
1205
1249
  value: any;
@@ -1233,20 +1277,23 @@ declare const _default$3: _vue_runtime_core.DefineComponent<__VLS_Props$2, {
1233
1277
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$2> & Readonly<{
1234
1278
  onChange?: ((...args: any[]) => any) | undefined;
1235
1279
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1280
+ declare const _default$3: typeof __VLS_export$2;
1236
1281
 
1237
1282
  type __VLS_Props$1 = FieldProps<CascaderConfig>;
1238
- declare const _default$2: _vue_runtime_core.DefineComponent<__VLS_Props$1, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1283
+ declare const __VLS_export$1: _vue_runtime_core.DefineComponent<__VLS_Props$1, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1239
1284
  change: (...args: any[]) => void;
1240
1285
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$1> & Readonly<{
1241
1286
  onChange?: ((...args: any[]) => any) | undefined;
1242
1287
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1288
+ declare const _default$2: typeof __VLS_export$1;
1243
1289
 
1244
1290
  type __VLS_Props = FieldProps<DynamicFieldConfig>;
1245
- declare const _default$1: _vue_runtime_core.DefineComponent<__VLS_Props, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1291
+ declare const __VLS_export: _vue_runtime_core.DefineComponent<__VLS_Props, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1246
1292
  change: (...args: any[]) => void;
1247
1293
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props> & Readonly<{
1248
1294
  onChange?: ((...args: any[]) => any) | undefined;
1249
1295
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1296
+ declare const _default$1: typeof __VLS_export;
1250
1297
 
1251
1298
  declare const createForm: <T extends [] = []>(config: FormConfig | T) => FormConfig | T;
1252
1299
  interface FormInstallOptions {
@@ -1256,5 +1303,5 @@ declare const _default: {
1256
1303
  install(app: App, opt?: FormInstallOptions): void;
1257
1304
  };
1258
1305
 
1259
- export { _default$2 as MCascader, _default$c as MCheckbox, _default$7 as MCheckboxGroup, _default$8 as MColorPicker, _default$r as MContainer, _default$f as MDate, _default$e as MDateTime, _default$a as MDaterange, _default$5 as MDisplay, _default$1 as MDynamicField, _default$q as MFieldset, _default$v as MForm, _default$s as MFormBox, _default$u as MFormDialog, _default$t as MFormDrawer, _default$l as MGroupList, _default$g as MHidden, _default$4 as MLink, _default$j as MNumber, _default$i as MNumberRange, _default$p as MPanel, _default$6 as MRadioGroup, _default$o as MRow, _default$3 as MSelect, _default$b as MSwitch, _default$m as MTable, _default$n as MTabs, _default$k as MText, _default$h as MTextarea, _default$d as MTime, _default$9 as MTimerange, createForm, createValues, datetimeFormatter, _default as default, display, filterFunction, getRules, initValue, useAddField };
1306
+ export { _default$2 as MCascader, _default$c as MCheckbox, _default$7 as MCheckboxGroup, _default$8 as MColorPicker, _default$s as MContainer, _default$f as MDate, _default$e as MDateTime, _default$a as MDaterange, _default$5 as MDisplay, _default$1 as MDynamicField, _default$r as MFieldset, _default$q as MFlexLayout, _default$w as MForm, _default$t as MFormBox, _default$v as MFormDialog, _default$u as MFormDrawer, _default$l as MGroupList, _default$g as MHidden, _default$4 as MLink, _default$j as MNumber, _default$i as MNumberRange, _default$p as MPanel, _default$6 as MRadioGroup, _default$o as MRow, _default$3 as MSelect, _default$b as MSwitch, _default$m as MTable, _default$n as MTabs, _default$k as MText, _default$h as MTextarea, _default$d as MTime, _default$9 as MTimerange, createForm, createValues, datetimeFormatter, _default as default, display, filterFunction, getDataByPage, getRules, initValue, sortArray, sortChange, useAddField };
1260
1307
  export type { ChangeRecord, ContainerChangeEventData, FormInstallOptions, ValidateError };