cnhis-design-vue 3.1.57-beta.1 → 3.1.57-beta.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/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +0 -3
- package/es/components/expand-field/index.d.ts +95 -23
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +95 -23
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +95 -23
- package/es/components/expand-field/src/components/form.vue.d.ts +95 -23
- package/es/components/expand-field/src/index.vue.d.ts +95 -23
- package/es/components/form-config/index.d.ts +24 -12
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -12
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +5 -2
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +5 -2
- package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +2 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +16 -12
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +12 -0
- package/es/components/index.css +1 -1
- package/es/components/select-person/index.d.ts +95 -23
- package/es/components/select-person/src/SelectPerson.vue.d.ts +84 -17
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +9 -0
- package/es/components/select-person/src/types/enums.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -829,7 +829,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
829
829
|
type: PropType<((string | number) | {
|
|
830
830
|
[key: string]: any;
|
|
831
831
|
key: string | number;
|
|
832
|
-
name: string;
|
|
833
832
|
})[]>;
|
|
834
833
|
default: () => never[];
|
|
835
834
|
};
|
|
@@ -849,6 +848,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
849
848
|
};
|
|
850
849
|
wordbook: {
|
|
851
850
|
type: PropType<{
|
|
851
|
+
[key: string]: any;
|
|
852
852
|
parent_id_obj: string | number;
|
|
853
853
|
parent_name_obj: string | number;
|
|
854
854
|
user_count_obj?: string | number | undefined;
|
|
@@ -898,6 +898,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
898
898
|
type: PropType<(keyWork: string) => Promise<AnyObject[]>>;
|
|
899
899
|
default: () => Promise<never[]>;
|
|
900
900
|
};
|
|
901
|
+
showSelectType: {
|
|
902
|
+
type: BooleanConstructor;
|
|
903
|
+
default: boolean;
|
|
904
|
+
};
|
|
905
|
+
roleData: {
|
|
906
|
+
type: PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
907
|
+
[k: string]: unknown;
|
|
908
|
+
} & AnyObject)[]>;
|
|
909
|
+
default: () => never[];
|
|
910
|
+
};
|
|
911
|
+
roleFields: {
|
|
912
|
+
type: ObjectConstructor;
|
|
913
|
+
default: () => {
|
|
914
|
+
label: string;
|
|
915
|
+
key: string;
|
|
916
|
+
children: string;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
901
919
|
}, {
|
|
902
920
|
searchFilterBase: {
|
|
903
921
|
isOpen: boolean;
|
|
@@ -905,12 +923,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
905
923
|
customTitles: string[];
|
|
906
924
|
itemHeight: number;
|
|
907
925
|
};
|
|
926
|
+
labelList: {
|
|
927
|
+
key: string;
|
|
928
|
+
label: string;
|
|
929
|
+
}[];
|
|
930
|
+
labelListName: {
|
|
931
|
+
dept: string;
|
|
932
|
+
role: string;
|
|
933
|
+
};
|
|
908
934
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
909
935
|
defaultList: {
|
|
910
936
|
type: PropType<((string | number) | {
|
|
911
937
|
[key: string]: any;
|
|
912
938
|
key: string | number;
|
|
913
|
-
name: string;
|
|
914
939
|
})[]>;
|
|
915
940
|
default: () => never[];
|
|
916
941
|
};
|
|
@@ -930,6 +955,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
930
955
|
};
|
|
931
956
|
wordbook: {
|
|
932
957
|
type: PropType<{
|
|
958
|
+
[key: string]: any;
|
|
933
959
|
parent_id_obj: string | number;
|
|
934
960
|
parent_name_obj: string | number;
|
|
935
961
|
user_count_obj?: string | number | undefined;
|
|
@@ -979,6 +1005,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
979
1005
|
type: PropType<(keyWork: string) => Promise<AnyObject[]>>;
|
|
980
1006
|
default: () => Promise<never[]>;
|
|
981
1007
|
};
|
|
1008
|
+
showSelectType: {
|
|
1009
|
+
type: BooleanConstructor;
|
|
1010
|
+
default: boolean;
|
|
1011
|
+
};
|
|
1012
|
+
roleData: {
|
|
1013
|
+
type: PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
1014
|
+
[k: string]: unknown;
|
|
1015
|
+
} & AnyObject)[]>;
|
|
1016
|
+
default: () => never[];
|
|
1017
|
+
};
|
|
1018
|
+
roleFields: {
|
|
1019
|
+
type: ObjectConstructor;
|
|
1020
|
+
default: () => {
|
|
1021
|
+
label: string;
|
|
1022
|
+
key: string;
|
|
1023
|
+
children: string;
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
982
1026
|
}>> & {
|
|
983
1027
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
984
1028
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -1002,19 +1046,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1002
1046
|
tagData: import("vue").Ref<{
|
|
1003
1047
|
[x: string]: any;
|
|
1004
1048
|
key: string | number;
|
|
1005
|
-
name: string;
|
|
1006
1049
|
}[]>;
|
|
1007
1050
|
initTagData: import("vue").Ref<{
|
|
1008
1051
|
[x: string]: any;
|
|
1009
1052
|
key: string | number;
|
|
1010
|
-
name: string;
|
|
1011
1053
|
}[]>;
|
|
1012
1054
|
isSearch: import("vue").Ref<boolean>;
|
|
1013
|
-
|
|
1014
|
-
|
|
1055
|
+
tempData: import("naive-ui").TreeOption[];
|
|
1056
|
+
allCheckedTreeKeys: import("vue").Ref<(string | number)[]>;
|
|
1015
1057
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
1016
1058
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
1017
1059
|
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
1060
|
+
curSelectKey: import("vue").Ref<string>;
|
|
1018
1061
|
mergeSearchFilter: import("vue").ComputedRef<{
|
|
1019
1062
|
isOpen: boolean;
|
|
1020
1063
|
multiple: boolean;
|
|
@@ -1022,10 +1065,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1022
1065
|
itemHeight: number;
|
|
1023
1066
|
}>;
|
|
1024
1067
|
wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
|
|
1025
|
-
caculateTagData: import("vue").ComputedRef<any
|
|
1068
|
+
caculateTagData: import("vue").ComputedRef<any>;
|
|
1069
|
+
treeDataMiddle: any;
|
|
1070
|
+
checkedKeysMiddle: any;
|
|
1071
|
+
checkedTagsMiddle: any;
|
|
1072
|
+
allCheckedKeysMiddle: any;
|
|
1073
|
+
attrType: import("vue").ComputedRef<any>;
|
|
1074
|
+
keyStr: import("vue").ComputedRef<string>;
|
|
1075
|
+
getTreeDataMiddleData: () => void;
|
|
1076
|
+
getDeptData: (list: any[], cb?: any) => any[];
|
|
1077
|
+
getRoleData: (list: any[], cb?: any) => any[];
|
|
1078
|
+
onHandleLabelChange: (item: any) => void;
|
|
1079
|
+
setSelectTagData: (tree: import("naive-ui").TreeOption[], operatorType: string) => void;
|
|
1080
|
+
uniqArrObj: (arr: any[], name: string) => any;
|
|
1026
1081
|
init: () => void;
|
|
1027
|
-
|
|
1028
|
-
|
|
1082
|
+
getMainData: (tree: import("naive-ui").TreeOption[], parentNode: import("naive-ui").TreeOption | null, cb?: any) => void;
|
|
1083
|
+
setAllCheckedKeys: (tree: import("naive-ui").TreeOption, cb?: any) => void;
|
|
1084
|
+
setAllCheckedKeysWithChild: (item: import("naive-ui").TreeOption, cb?: any) => void;
|
|
1085
|
+
setAllCheckedKeysWithParent: (item: import("naive-ui").TreeOption, cb?: any) => void;
|
|
1029
1086
|
queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<AnyObject>;
|
|
1030
1087
|
setDisabled: (data: import("naive-ui").TreeOption) => void;
|
|
1031
1088
|
renderLabel: ({ option }: {
|
|
@@ -1034,10 +1091,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1034
1091
|
getLabelName: (option: import("naive-ui").TreeOption) => unknown;
|
|
1035
1092
|
transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
1036
1093
|
calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
1037
|
-
transformParentNodeName: (trees: import("naive-ui").TreeOption[],
|
|
1038
|
-
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1039
|
-
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1040
|
-
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1094
|
+
transformParentNodeName: (trees: import("naive-ui").TreeOption[], tempContent: any) => import("naive-ui").TreeOption[];
|
|
1041
1095
|
searchSetting: () => string;
|
|
1042
1096
|
onSearch: () => Promise<void>;
|
|
1043
1097
|
setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
@@ -1047,11 +1101,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1047
1101
|
uniq: (arr: {
|
|
1048
1102
|
[key: string]: any;
|
|
1049
1103
|
key: string | number;
|
|
1050
|
-
name: string;
|
|
1051
1104
|
}[]) => {
|
|
1052
1105
|
[key: string]: any;
|
|
1053
1106
|
key: string | number;
|
|
1054
|
-
name: string;
|
|
1055
1107
|
}[];
|
|
1056
1108
|
setTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1057
1109
|
updateTreeChecked: (keys: (string | number)[]) => void;
|
|
@@ -1060,15 +1112,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1060
1112
|
closeTag: (tag: {
|
|
1061
1113
|
[key: string]: any;
|
|
1062
1114
|
key: string | number;
|
|
1063
|
-
name: string;
|
|
1064
1115
|
}) => void;
|
|
1065
1116
|
notifyCheck: (keys: (string | number)[]) => void;
|
|
1066
1117
|
notifySearchClear: () => void;
|
|
1067
|
-
getCheckWithLevel: () =>
|
|
1068
|
-
[x: string]: any;
|
|
1069
|
-
key: string | number;
|
|
1070
|
-
name: string;
|
|
1071
|
-
}[];
|
|
1118
|
+
getCheckWithLevel: () => any;
|
|
1072
1119
|
NButton: any;
|
|
1073
1120
|
NInput: any;
|
|
1074
1121
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -1084,6 +1131,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1084
1131
|
}>>, {}>;
|
|
1085
1132
|
NCheckbox: any;
|
|
1086
1133
|
NTree: any;
|
|
1134
|
+
NTag: any;
|
|
1087
1135
|
NIcon: any;
|
|
1088
1136
|
NSpace: any;
|
|
1089
1137
|
NGrid: any;
|
|
@@ -1137,6 +1185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1137
1185
|
readonly suffix: boolean;
|
|
1138
1186
|
readonly privateShow: boolean;
|
|
1139
1187
|
}>;
|
|
1188
|
+
NEmpty: any;
|
|
1140
1189
|
CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1141
1190
|
SearchMultiple: import("vue").DefineComponent<{
|
|
1142
1191
|
treeData: {
|
|
@@ -1406,7 +1455,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1406
1455
|
type: PropType<((string | number) | {
|
|
1407
1456
|
[key: string]: any;
|
|
1408
1457
|
key: string | number;
|
|
1409
|
-
name: string;
|
|
1410
1458
|
})[]>;
|
|
1411
1459
|
default: () => never[];
|
|
1412
1460
|
};
|
|
@@ -1426,6 +1474,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1426
1474
|
};
|
|
1427
1475
|
wordbook: {
|
|
1428
1476
|
type: PropType<{
|
|
1477
|
+
[key: string]: any;
|
|
1429
1478
|
parent_id_obj: string | number;
|
|
1430
1479
|
parent_name_obj: string | number;
|
|
1431
1480
|
user_count_obj?: string | number | undefined;
|
|
@@ -1475,6 +1524,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1475
1524
|
type: PropType<(keyWork: string) => Promise<AnyObject[]>>;
|
|
1476
1525
|
default: () => Promise<never[]>;
|
|
1477
1526
|
};
|
|
1527
|
+
showSelectType: {
|
|
1528
|
+
type: BooleanConstructor;
|
|
1529
|
+
default: boolean;
|
|
1530
|
+
};
|
|
1531
|
+
roleData: {
|
|
1532
|
+
type: PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
1533
|
+
[k: string]: unknown;
|
|
1534
|
+
} & AnyObject)[]>;
|
|
1535
|
+
default: () => never[];
|
|
1536
|
+
};
|
|
1537
|
+
roleFields: {
|
|
1538
|
+
type: ObjectConstructor;
|
|
1539
|
+
default: () => {
|
|
1540
|
+
label: string;
|
|
1541
|
+
key: string;
|
|
1542
|
+
children: string;
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1478
1545
|
}>> & {
|
|
1479
1546
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
1480
1547
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -1485,11 +1552,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1485
1552
|
defaultList: ((string | number) | {
|
|
1486
1553
|
[key: string]: any;
|
|
1487
1554
|
key: string | number;
|
|
1488
|
-
name: string;
|
|
1489
1555
|
})[];
|
|
1490
1556
|
searchPlaceholder: string;
|
|
1491
1557
|
searchButtonText: string;
|
|
1492
1558
|
wordbook: {
|
|
1559
|
+
[key: string]: any;
|
|
1493
1560
|
parent_id_obj: string | number;
|
|
1494
1561
|
parent_name_obj: string | number;
|
|
1495
1562
|
user_count_obj?: string | number | undefined;
|
|
@@ -1510,6 +1577,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1510
1577
|
} & AnyObject;
|
|
1511
1578
|
queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<AnyObject>;
|
|
1512
1579
|
queryTreeSearch: (keyWork: string) => Promise<AnyObject[]>;
|
|
1580
|
+
showSelectType: boolean;
|
|
1581
|
+
roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
1582
|
+
[k: string]: unknown;
|
|
1583
|
+
} & AnyObject)[];
|
|
1584
|
+
roleFields: Record<string, any>;
|
|
1513
1585
|
}>>;
|
|
1514
1586
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "changeModalVisible")[], "check" | "changeModalVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1515
1587
|
visible: {
|
|
@@ -115,6 +115,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
115
115
|
forceClearable: boolean;
|
|
116
116
|
}>>>;
|
|
117
117
|
};
|
|
118
|
+
beforeMove: {
|
|
119
|
+
type: import("vue").PropType<((payload: import("./src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
|
|
120
|
+
};
|
|
118
121
|
}, {
|
|
119
122
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
120
123
|
maxHeight: {
|
|
@@ -230,6 +233,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
230
233
|
forceClearable: boolean;
|
|
231
234
|
}>>>;
|
|
232
235
|
};
|
|
236
|
+
beforeMove: {
|
|
237
|
+
type: import("vue").PropType<((payload: import("./src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
|
|
238
|
+
};
|
|
233
239
|
}>> & {
|
|
234
240
|
onAddItem?: ((...args: any[]) => any) | undefined;
|
|
235
241
|
onRemoveItem?: ((...args: any[]) => any) | undefined;
|
|
@@ -238,16 +244,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
238
244
|
emit: (event: "addItem" | "removeItem" | "reactionsValidateFailure", ...args: any[]) => void;
|
|
239
245
|
uuid: string;
|
|
240
246
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
241
|
-
getCommonConfig: (formConfig?: import("./src/types").FormConfigItem | undefined) => {
|
|
242
|
-
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
243
|
-
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
244
|
-
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
245
|
-
tag: string;
|
|
246
|
-
forceFallback: boolean;
|
|
247
|
-
animation: string;
|
|
248
|
-
'item-key': string;
|
|
249
|
-
group: string;
|
|
250
|
-
};
|
|
251
247
|
fieldListRef: import("vue").Ref<{
|
|
252
248
|
key: string;
|
|
253
249
|
layoutWidthEnum: import("./src/types").FormConfigWidth;
|
|
@@ -3777,6 +3773,16 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3777
3773
|
__oppositeBindField?: any | undefined;
|
|
3778
3774
|
__oppositeTargetField?: any | undefined;
|
|
3779
3775
|
}[]>;
|
|
3776
|
+
getSortOption: () => {
|
|
3777
|
+
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
3778
|
+
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
3779
|
+
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
3780
|
+
tag: string;
|
|
3781
|
+
forceFallback: boolean;
|
|
3782
|
+
animation: string;
|
|
3783
|
+
'item-key': string;
|
|
3784
|
+
group: string;
|
|
3785
|
+
};
|
|
3780
3786
|
addItem: (formConfigItem: import("./src/types").FormConfigItem) => void;
|
|
3781
3787
|
parsedTextFormatter: import("./src/types").FormConfigTextFormatter;
|
|
3782
3788
|
currentEditField: import("vue").Ref<import("./src/types").FormConfigItem | undefined>;
|
|
@@ -8242,11 +8248,13 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8242
8248
|
required: true;
|
|
8243
8249
|
};
|
|
8244
8250
|
}, {
|
|
8251
|
+
globProps: import("../../shared/types").AnyObject | undefined;
|
|
8245
8252
|
getItemColumnStyle: (formConfigItem?: import("./src/types").FormConfigItem | undefined) => {
|
|
8246
8253
|
'--item-column': number;
|
|
8247
8254
|
};
|
|
8248
|
-
|
|
8249
|
-
|
|
8255
|
+
fieldList: import("vue").Ref<import("./src/types").FormConfigItem[]> | undefined;
|
|
8256
|
+
materialList: import("vue").Ref<import("./src/types").FormConfigItem[]> | undefined;
|
|
8257
|
+
getSortOption: (formConfigItem?: import("./src/types").FormConfigItem | undefined) => {
|
|
8250
8258
|
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
8251
8259
|
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
8252
8260
|
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
@@ -8256,6 +8264,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8256
8264
|
'item-key': string;
|
|
8257
8265
|
group: string;
|
|
8258
8266
|
};
|
|
8267
|
+
getRenderer: (formConfigItem: import("./src/types").FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
|
|
8259
8268
|
Draggable: import("vue").DefineComponent<{
|
|
8260
8269
|
list: {
|
|
8261
8270
|
type: ArrayConstructor;
|
|
@@ -15024,6 +15033,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
15024
15033
|
forceClearable: boolean;
|
|
15025
15034
|
}>>>;
|
|
15026
15035
|
};
|
|
15036
|
+
beforeMove: {
|
|
15037
|
+
type: import("vue").PropType<((payload: import("./src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
|
|
15038
|
+
};
|
|
15027
15039
|
}>> & {
|
|
15028
15040
|
onAddItem?: ((...args: any[]) => any) | undefined;
|
|
15029
15041
|
onRemoveItem?: ((...args: any[]) => any) | undefined;
|
|
@@ -118,6 +118,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
118
|
forceClearable: boolean;
|
|
119
119
|
}>>>;
|
|
120
120
|
};
|
|
121
|
+
beforeMove: {
|
|
122
|
+
type: PropType<((payload: import("../../../components/form-config/src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
|
|
123
|
+
};
|
|
121
124
|
}, {
|
|
122
125
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
123
126
|
maxHeight: {
|
|
@@ -233,6 +236,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
233
236
|
forceClearable: boolean;
|
|
234
237
|
}>>>;
|
|
235
238
|
};
|
|
239
|
+
beforeMove: {
|
|
240
|
+
type: PropType<((payload: import("../../../components/form-config/src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
|
|
241
|
+
};
|
|
236
242
|
}>> & {
|
|
237
243
|
onAddItem?: ((...args: any[]) => any) | undefined;
|
|
238
244
|
onRemoveItem?: ((...args: any[]) => any) | undefined;
|
|
@@ -241,16 +247,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
241
247
|
emit: (event: "addItem" | "removeItem" | "reactionsValidateFailure", ...args: any[]) => void;
|
|
242
248
|
uuid: string;
|
|
243
249
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
244
|
-
getCommonConfig: (formConfig?: FormConfigItem | undefined) => {
|
|
245
|
-
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
246
|
-
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
247
|
-
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
248
|
-
tag: string;
|
|
249
|
-
forceFallback: boolean;
|
|
250
|
-
animation: string;
|
|
251
|
-
'item-key': string;
|
|
252
|
-
group: string;
|
|
253
|
-
};
|
|
254
250
|
fieldListRef: import("vue").Ref<{
|
|
255
251
|
key: string;
|
|
256
252
|
layoutWidthEnum: import("../../../components/form-config/src/types").FormConfigWidth;
|
|
@@ -3780,6 +3776,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3780
3776
|
__oppositeBindField?: any | undefined;
|
|
3781
3777
|
__oppositeTargetField?: any | undefined;
|
|
3782
3778
|
}[]>;
|
|
3779
|
+
getSortOption: () => {
|
|
3780
|
+
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
3781
|
+
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
3782
|
+
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
3783
|
+
tag: string;
|
|
3784
|
+
forceFallback: boolean;
|
|
3785
|
+
animation: string;
|
|
3786
|
+
'item-key': string;
|
|
3787
|
+
group: string;
|
|
3788
|
+
};
|
|
3783
3789
|
addItem: (formConfigItem: FormConfigItem) => void;
|
|
3784
3790
|
parsedTextFormatter: FormConfigTextFormatter;
|
|
3785
3791
|
currentEditField: import("vue").Ref<FormConfigItem | undefined>;
|
|
@@ -8245,11 +8251,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8245
8251
|
required: true;
|
|
8246
8252
|
};
|
|
8247
8253
|
}, {
|
|
8254
|
+
globProps: import("../../../shared/types").AnyObject | undefined;
|
|
8248
8255
|
getItemColumnStyle: (formConfigItem?: FormConfigItem | undefined) => {
|
|
8249
8256
|
'--item-column': number;
|
|
8250
8257
|
};
|
|
8251
|
-
|
|
8252
|
-
|
|
8258
|
+
fieldList: import("vue").Ref<FormConfigItem[]> | undefined;
|
|
8259
|
+
materialList: import("vue").Ref<FormConfigItem[]> | undefined;
|
|
8260
|
+
getSortOption: (formConfigItem?: FormConfigItem | undefined) => {
|
|
8253
8261
|
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
8254
8262
|
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
8255
8263
|
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
@@ -8259,6 +8267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8259
8267
|
'item-key': string;
|
|
8260
8268
|
group: string;
|
|
8261
8269
|
};
|
|
8270
|
+
getRenderer: (formConfigItem: FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
|
|
8262
8271
|
Draggable: import("vue").DefineComponent<{
|
|
8263
8272
|
list: {
|
|
8264
8273
|
type: ArrayConstructor;
|
|
@@ -15027,6 +15036,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15027
15036
|
forceClearable: boolean;
|
|
15028
15037
|
}>>>;
|
|
15029
15038
|
};
|
|
15039
|
+
beforeMove: {
|
|
15040
|
+
type: PropType<((payload: import("../../../components/form-config/src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
|
|
15041
|
+
};
|
|
15030
15042
|
}>> & {
|
|
15031
15043
|
onAddItem?: ((...args: any[]) => any) | undefined;
|
|
15032
15044
|
onRemoveItem?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,provide as o,ref as t,computed as
|
|
1
|
+
import{defineComponent as e,provide as o,ref as t,computed as r,toRaw as a,openBlock as i,createElementBlock as s,mergeProps as l,unref as n,createElementVNode as m,createVNode as u,withCtx as f,createBlock as d,isRef as c,createCommentVNode as p,createTextVNode as v}from"vue";import{useTheme as h}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isArray as g,cloneDeep as _,isFunction as y}from"lodash-es";import"@vue/shared";import{uuidGenerator as x,traverse as C}from"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NSelect as j,NSpace as L}from"naive-ui";import{useVersion as k}from"../../../shared/hooks/useVersion.js";import F from"../../../shared/components/VueDraggable/src/vuedraggable.js";import b from"./components/FormConfigCreator.vue.js";import V from"./components/FormConfigDragDisplay.vue.js";import M from"./components/FormConfigEdit.vue.js";import w from"./components/FormConfigEventSetting.vue.js";import R from"./components/FormConfigMaterialItem.js";import{useDataNormalize as E}from"./hooks/useDataNormalize.js";import{InjectionFormConfigProps as I,InjectionFormConfigEmit as D,InjectionFieldList as H,InjectionMaterialList as O,InjectionLowCodeReactions as S,InjectionActiveFieldItem as N,FORM_CONFIG_GROUP as U}from"./constants/index.js";import"./utils/index.js";import{useSortableConfig as A}from"./hooks/useSortalbeConfig.js";import"./hooks/useConfigurationField.js";const B=["id"],T={class:"form-config__material"},P=m("header",{class:"form-config__materialHeader"},"物料区",-1),z={class:"form-config__displayWrapper"},W={class:"form-config__displayHeader"},q={class:"form-config__config"},G=m("header",{class:"form-config__configHeader"},"配置区",-1),J={class:"form-config__configContent"};var K=e({__name:"FormConfig",props:{maxHeight:{type:String},fieldVisitor:{type:Object},textFormatter:{type:Function},formRenderRef:{type:Object},extraMaterialList:{type:[Array,Function]},showLowCodeReactions:Boolean,formProps:{type:Object},beforeMove:{type:Function}},emits:["addItem","removeItem","reactionsValidateFailure"],setup(e,{expose:K,emit:Q}){const X=e;o(I,X),o(D,Q);const Y=x(),Z=h(),$=t([]);o(H,$);const ee=t([]);o(O,ee);const oe=t([]);function te(e){$.value.some((o=>o.key===e.key))||$.value.push(e)}o(S,oe);const re=(e,o)=>y(X.textFormatter)?X.textFormatter(e,o):o,ae=t();o(N,ae);const ie=t(),{transform:se,inverseTransform:le}=E(X),ne=r({get:()=>null,set(e){if(!e)return;const o=ue.value.find((o=>o.key===e));o&&(o.__extra=!0,ee.value.push(o),Q("addItem",o))}}),me=t([]),ue=r((()=>{if(!g(me.value))return[];const e=[];return C([...ee.value,...$.value],(o=>e.push(o.key))),me.value.filter((o=>!e.find((e=>e===o.key))))}));async function fe(){X.extraMaterialList&&!me.value.length&&(me.value=y(X.extraMaterialList)?await X.extraMaterialList():X.extraMaterialList)}return K({loadData({fieldList:e,lowCodeReactions:o=[]}){let t=[],r=[];e.forEach((e=>function(e){"LINE_BAR"===e.type&&(e.children=[]);!1===e.show?r.push(e):t.push(e),"COMBINATION"===e.type&&g(e.children)&&e.children.length&&e.children.forEach((e=>{e.__isCombinationChild=!0}))}(_(a(e))))),$.value=se(t),ee.value=r,oe.value=o,ae.value=void 0},validate(){var e;return null==(e=ie.value)?void 0:e.validate()},getData:(e=!1)=>({fieldList:le(_(a($.value)),e,{show:!0}),materialList:le(_(a(ee.value)),e,{show:!1}),lowCodeReactions:_(a(oe.value))}),clearExtraList(){me.value=[]}}),(o,t)=>(i(),s("section",l({class:"form-config",style:{"--max-height":e.maxHeight,...n(Z)},id:n(Y)},n(k)()),[m("section",T,[P,u(n(F),l(A({fieldList:$,materialList:ee,hooks:{beforeMove:X.beforeMove}}),{class:"form-config__materialContent",modelValue:ee.value,"onUpdate:modelValue":t[0]||(t[0]=e=>ee.value=e)}),{item:f((({element:e})=>[u(n(R),{"form-config-item":e,"text-formatter":re,"material-List":ee.value},null,8,["form-config-item","material-List"])])),_:1},16,["modelValue"]),e.extraMaterialList?(i(),d(n(j),{key:0,class:"form-config__materialExtraList",filterable:"",value:n(ne),"onUpdate:value":t[1]||(t[1]=e=>c(ne)?ne.value=e:null),placeholder:"请选择额外物料",options:n(ue),"label-field":"name","value-field":"key",onFocus:fe},null,8,["value","options"])):p("v-if",!0)]),m("section",z,[m("header",W,[v(" 布局区 "),u(n(L),null,{default:f((()=>[e.showLowCodeReactions?(i(),d(w,{key:0,modelValue:oe.value,"onUpdate:modelValue":t[2]||(t[2]=e=>oe.value=e),onValidateFailure:t[3]||(t[3]=e=>Q("reactionsValidateFailure",e))},null,8,["modelValue"])):p("v-if",!0),u(b,{onSubmit:te})])),_:1})]),u(V,{class:"form-config__displayContent",group:n(U),"text-formatter":re,modelValue:$.value,"onUpdate:modelValue":t[4]||(t[4]=e=>$.value=e)},null,8,["group","modelValue"])]),m("section",q,[G,m("section",J,[u(M,{ref_key:"formConfigEditRef",ref:ie,uuid:n(Y),"bind-form-render-ref":e.formRenderRef,"form-props":e.formProps},null,8,["uuid","bind-form-render-ref","form-props"])])])],16,B))}});export{K as default};
|
|
@@ -9,11 +9,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
}, {
|
|
12
|
+
globProps: import("../../..").AnyObject | undefined;
|
|
12
13
|
getItemColumnStyle: (formConfigItem?: FormConfigItem) => {
|
|
13
14
|
'--item-column': number;
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
fieldList: import("vue").Ref<FormConfigItem[]> | undefined;
|
|
17
|
+
materialList: import("vue").Ref<FormConfigItem[]> | undefined;
|
|
18
|
+
getSortOption: (formConfigItem?: FormConfigItem) => {
|
|
17
19
|
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
18
20
|
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
19
21
|
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
@@ -23,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
25
|
'item-key': string;
|
|
24
26
|
group: string;
|
|
25
27
|
};
|
|
28
|
+
getRenderer: (formConfigItem: FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
|
|
26
29
|
Draggable: import("vue").DefineComponent<{
|
|
27
30
|
list: {
|
|
28
31
|
type: ArrayConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,
|
|
1
|
+
import{defineComponent as e,inject as t,openBlock as o,createBlock as r,unref as m,mergeProps as i,withCtx as n,resolveDynamicComponent as s,normalizeStyle as f}from"vue";import a from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{InjectionFormConfigProps as l,InjectionFieldList as u,InjectionMaterialList as p}from"../constants/index.js";import{usePresetRenderer as g}from"../hooks/usePresetRenderer.js";import{useSortableConfig as c}from"../hooks/useSortalbeConfig.js";import"../hooks/useConfigurationField.js";import{layoutWidthEnum2Column as d}from"../utils/index.js";var y=e({__name:"FormConfigDragDisplay",props:{formConfigItem:{type:Object},textFormatter:{type:Function,required:!0}},setup(e){const y=t(l);function v(e){return{"--item-column":e?d(e.layoutWidthEnum):24}}const C=t(u),j=t(p);const{getRenderer:x}=g();return(t,l)=>{return o(),r(m(a),i((u=e.formConfigItem,c({group:"COMBINATION"===(null==u?void 0:u.type)?u.key:"",fieldList:C,materialList:j,hooks:{beforeMove:null==y?void 0:y.beforeMove}})),{style:v(e.formConfigItem)}),{item:n((({element:t})=>[(o(),r(s(m(x)(t)),{class:"form-config__displayContentItem",style:f(v(t)),"form-config-item":t,textFormatter:e.textFormatter},null,8,["style","form-config-item","textFormatter"]))])),_:1},16,["style"]);var u}}});export{y as default};
|
|
@@ -35,11 +35,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
required: true;
|
|
36
36
|
};
|
|
37
37
|
}, {
|
|
38
|
+
globProps: import("../../../..").AnyObject | undefined;
|
|
38
39
|
getItemColumnStyle: (formConfigItem?: FormConfigItem | undefined) => {
|
|
39
40
|
'--item-column': number;
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
fieldList: import("vue").Ref<FormConfigItem[]> | undefined;
|
|
43
|
+
materialList: import("vue").Ref<FormConfigItem[]> | undefined;
|
|
44
|
+
getSortOption: (formConfigItem?: FormConfigItem | undefined) => {
|
|
43
45
|
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
44
46
|
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
45
47
|
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
@@ -49,6 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
51
|
'item-key': string;
|
|
50
52
|
group: string;
|
|
51
53
|
};
|
|
54
|
+
getRenderer: (formConfigItem: FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
|
|
52
55
|
Draggable: import("vue").DefineComponent<{
|
|
53
56
|
list: {
|
|
54
57
|
type: ArrayConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as o,computed as r,openBlock as
|
|
1
|
+
import{defineComponent as e,inject as o,computed as r,openBlock as t,createElementBlock as m,createElementVNode as a,mergeProps as f,unref as i,withModifiers as n,createTextVNode as d,toDisplayString as l,createVNode as p}from"vue";import c from"../FormConfigDragDisplay.vue.js";import g from"./CloseButton.vue.js";import{InjectionActiveFieldItem as s}from"../../constants/index.js";import{bindHover as u}from"../../utils/index.js";const C=["data-type","data-key","data-required","data-extra"],I=["onClick"];var y=e({__name:"ComplexNode",props:{formConfigItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0}},setup(e){const y=e,x=o(s);function _(){x.value=y.formConfigItem}const k=r((()=>[{"is-active":x.value===y.formConfigItem},"form-config__renderer--complexHeader"]));return(o,r)=>(t(),m("section",{class:"form-config__renderer--complex form-config__renderer","data-type":e.formConfigItem.type,"data-key":e.formConfigItem.key,"data-required":!!e.formConfigItem.required,"data-extra":!!e.formConfigItem.__extra},[a("header",f(i(u)(e.formConfigItem),{class:i(k),onClick:n(_,["stop"])}),[d(l(y.formConfigItem.name)+" ",1),p(g,{"form-config-item":e.formConfigItem},null,8,["form-config-item"])],16,I),p(c,f(o.$props,{modelValue:e.formConfigItem.children,"onUpdate:modelValue":r[0]||(r[0]=o=>e.formConfigItem.children=o),class:"form-config__renderer--complex--grid","data-type":e.formConfigItem.type,"data-key":e.formConfigItem.key,"data-required":!!e.formConfigItem.required,"data-extra":!!e.formConfigItem.__extra}),null,16,["modelValue","data-type","data-key","data-required","data-extra"])],8,C))}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as
|
|
1
|
+
import{defineComponent as e,inject as t,computed as o,openBlock as r,createElementBlock as i,mergeProps as f,unref as m,withModifiers as n,createVNode as a,normalizeClass as l,withCtx as d,createTextVNode as u,toDisplayString as s,renderSlot as C,createBlock as g,createCommentVNode as c}from"vue";import{NEllipsis as p}from"naive-ui";import I from"./CloseButton.vue.js";import{InjectionActiveFieldItem as _,WidgetTextMap as v}from"../../constants/index.js";import{bindHover as y}from"../../utils/index.js";const x=["onClick","data-type","data-key","data-required","data-extra"];var k=e({__name:"DefaultNode",props:{formConfigItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0},showCloseButton:{type:Boolean,default:!0},allowClick:{type:Boolean,default:!0}},setup(e){const k=e,q=t(_);function B(){k.allowClick&&(q.value=k.formConfigItem)}const b=o((()=>["form-config__renderer--default",{"is-required":k.formConfigItem.required}])),j=o((()=>{var e;return[{"is-active":q.value===k.formConfigItem,"is-disabled":w.value,"is-extra":null==(e=k.formConfigItem)?void 0:e.__extra},"form-config__renderer","form-config__renderer--defaultWrapper"]})),w=o((()=>!1===k.formConfigItem.editable)),$=o((()=>{const e=v.get(k.formConfigItem.type);return k.textFormatter(k.formConfigItem,`${k.formConfigItem.name}${e?`(${e})`:""}`)})),h=o((()=>k.showCloseButton&&(!k.formConfigItem.required&&!k.formConfigItem.__isCombinationChild||k.formConfigItem.__extra)));return(t,o)=>(r(),i("div",f(m(y)(e.formConfigItem),{onClick:n(B,["stop"]),class:m(j),"data-type":e.formConfigItem.type,"data-key":e.formConfigItem.key,"data-required":!!e.formConfigItem.required,"data-extra":!!e.formConfigItem.__extra}),[a(m(p),{class:l(m(b))},{default:d((()=>[u(s(m($)),1)])),_:1},8,["class"]),C(t.$slots,"default"),m(h)?(r(),g(I,{key:0,"form-config-item":e.formConfigItem},null,8,["form-config-item"])):c("v-if",!0)],16,x))}});export{k as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LowCodeTypes, UndefinedAble } from '../../../../shared/types';
|
|
1
|
+
import { AnyObject, LowCodeTypes, UndefinedAble } from '../../../../shared/types';
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
3
|
import { FormConfigItem } from '../../../../components/form-config';
|
|
4
4
|
export declare const WidgetTextMap: Map<string, string>;
|
|
@@ -100,3 +100,4 @@ export declare const InjectionMaterialList: InjectionKey<Ref<FormConfigItem[]>>;
|
|
|
100
100
|
export declare const InjectionLowCodeReactions: InjectionKey<Ref<LowCodeTypes.reactionsConfig[]>>;
|
|
101
101
|
export declare const InjectionActiveFieldItem: InjectionKey<Ref<UndefinedAble<FormConfigItem>>>;
|
|
102
102
|
export declare const InjectionFormConfigEmit: InjectionKey<(event: 'addItem' | 'removeItem', ...args: unknown[]) => void>;
|
|
103
|
+
export declare const InjectionFormConfigProps: InjectionKey<AnyObject>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{range as e}from"lodash-es";const l=new Map([["LINE_BAR","分线栏"],["NEWLINE","分行符"]]);var a=(e=>(e.NAME="name",e.NOTES="notes",e.DEFAULT_VALUE="defaultValue",e.LAYOUT_WIDTH_ENUM="layoutWidthEnum",e.DESC="desc",e.DEFAULT_EXPAND="defaultExpand",e.FOLD="fold",e.REQUIRED="required",e.EDITABLE="editable",e.SHOW="show",e.ROWS="initialHigh",e))(a||{});function i(){return{option:[{text:"整行",value:"ALL_LINE"},{text:"半行",value:"HALF_LINE"},{text:"5/6",value:"FIVE_SIX"},{text:"2/3",value:"TWO_THREE"},{text:"1/3",value:"ONE_THREE"},{text:"3/4",value:"THREE_FOUR"},{text:"1/4",value:"ONE_FOUR"},{text:"1/6",value:"ONE_SIX"},{text:"1/8",value:"ONE_EIGHT"}]}}function t(){return{option:e(1,11).map((e=>({text:`${e}行`,value:e})))}}function u(){return{open:{describe:"默认展开",value:!0},close:{describe:"默认收起",value:!1}}}function d(){return{open:{describe:"可折叠",value:!0},close:{describe:"不可折叠",value:!1}}}function n(){return{open:{describe:"可编辑",value:!0},close:{describe:"不可编辑",value:!1}}}function o(){return{open:{describe:"必填",value:!0},close:{describe:"不必填",value:!1}}}function E(){return{open:{describe:"显示",value:!0},close:{describe:"隐藏",value:!1}}}const r={EQ:"NEQ",NEQ:"EQ",CL:"NC",NC:"CL",NULL:"NOT_NULL",NOT_NULL:"NULL",BIG:"LESSEQ",BIGEQ:"LESS",LESS:"BIGEQ",LESSEQ:"BIG"},b=[{value:"EQ",label:"等于"},{value:"NEQ",label:"不等于"},{value:"CL",label:"包含"},{value:"NC",label:"不包含"},{value:"NULL",label:"为空"},{value:"NOT_NULL",label:"不为空"},{value:"BIG",label:"大于"},{value:"BIGEQ",label:"大于等于"},{value:"LESS",label:"小于"},{value:"LESSEQ",label:"小于等于"}],v={showField:"hideField",hideField:"showField",requiredField:"notRequiredField",notRequiredField:"requiredField",enabledField:"disabledField",disabledField:"enabledField"},L=[{value:"showField",label:"显示字段"},{value:"hideField",label:"隐藏字段"},{value:"requiredField",label:"必填字段"},{value:"notRequiredField",label:"非必填字段"},{value:"enabledField",label:"启用字段"},{value:"disabledField",label:"禁用字段"}],c="__display",s=Symbol("InjectionFieldList"),F=Symbol("InjectionMaterialList"),N=Symbol("InjectionLowCodeReactions"),I=Symbol("InjectionActiveFieldItem"),S=Symbol("InjectionFormConfigEmit");export{a as EditAbleField,c as FORM_CONFIG_GROUP,I as InjectionActiveFieldItem,s as InjectionFieldList,S as InjectionFormConfigEmit,N as InjectionLowCodeReactions,F as InjectionMaterialList,l as WidgetTextMap,r as conditionOppositeMap,b as conditionTypeOptions,v as connectionTypeOppositeMap,L as connectionTypeOptions,n as isEditOptionConfig,d as isNotFoldOptionConfig,o as isNullOptionConfig,u as isShowOptionConfig,E as isVisibleOptionConfig,t as rowsOptionConfig,i as widgetWidthOptionConfig};
|
|
1
|
+
import{range as e}from"lodash-es";const l=new Map([["LINE_BAR","分线栏"],["NEWLINE","分行符"]]);var a=(e=>(e.NAME="name",e.NOTES="notes",e.DEFAULT_VALUE="defaultValue",e.LAYOUT_WIDTH_ENUM="layoutWidthEnum",e.DESC="desc",e.DEFAULT_EXPAND="defaultExpand",e.FOLD="fold",e.REQUIRED="required",e.EDITABLE="editable",e.SHOW="show",e.ROWS="initialHigh",e))(a||{});function i(){return{option:[{text:"整行",value:"ALL_LINE"},{text:"半行",value:"HALF_LINE"},{text:"5/6",value:"FIVE_SIX"},{text:"2/3",value:"TWO_THREE"},{text:"1/3",value:"ONE_THREE"},{text:"3/4",value:"THREE_FOUR"},{text:"1/4",value:"ONE_FOUR"},{text:"1/6",value:"ONE_SIX"},{text:"1/8",value:"ONE_EIGHT"}]}}function t(){return{option:e(1,11).map((e=>({text:`${e}行`,value:e})))}}function u(){return{open:{describe:"默认展开",value:!0},close:{describe:"默认收起",value:!1}}}function d(){return{open:{describe:"可折叠",value:!0},close:{describe:"不可折叠",value:!1}}}function n(){return{open:{describe:"可编辑",value:!0},close:{describe:"不可编辑",value:!1}}}function o(){return{open:{describe:"必填",value:!0},close:{describe:"不必填",value:!1}}}function E(){return{open:{describe:"显示",value:!0},close:{describe:"隐藏",value:!1}}}const r={EQ:"NEQ",NEQ:"EQ",CL:"NC",NC:"CL",NULL:"NOT_NULL",NOT_NULL:"NULL",BIG:"LESSEQ",BIGEQ:"LESS",LESS:"BIGEQ",LESSEQ:"BIG"},b=[{value:"EQ",label:"等于"},{value:"NEQ",label:"不等于"},{value:"CL",label:"包含"},{value:"NC",label:"不包含"},{value:"NULL",label:"为空"},{value:"NOT_NULL",label:"不为空"},{value:"BIG",label:"大于"},{value:"BIGEQ",label:"大于等于"},{value:"LESS",label:"小于"},{value:"LESSEQ",label:"小于等于"}],v={showField:"hideField",hideField:"showField",requiredField:"notRequiredField",notRequiredField:"requiredField",enabledField:"disabledField",disabledField:"enabledField"},L=[{value:"showField",label:"显示字段"},{value:"hideField",label:"隐藏字段"},{value:"requiredField",label:"必填字段"},{value:"notRequiredField",label:"非必填字段"},{value:"enabledField",label:"启用字段"},{value:"disabledField",label:"禁用字段"}],c="__display",s=Symbol("InjectionFieldList"),F=Symbol("InjectionMaterialList"),N=Symbol("InjectionLowCodeReactions"),I=Symbol("InjectionActiveFieldItem"),S=Symbol("InjectionFormConfigEmit"),_=Symbol("InjectionFormConfigProps");export{a as EditAbleField,c as FORM_CONFIG_GROUP,I as InjectionActiveFieldItem,s as InjectionFieldList,S as InjectionFormConfigEmit,_ as InjectionFormConfigProps,N as InjectionLowCodeReactions,F as InjectionMaterialList,l as WidgetTextMap,r as conditionOppositeMap,b as conditionTypeOptions,v as connectionTypeOppositeMap,L as connectionTypeOptions,n as isEditOptionConfig,d as isNotFoldOptionConfig,o as isNullOptionConfig,u as isShowOptionConfig,E as isVisibleOptionConfig,t as rowsOptionConfig,i as widgetWidthOptionConfig};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { MaybeRef } from '@vueuse/core';
|
|
1
2
|
import Sortable from 'sortablejs';
|
|
2
|
-
import { FormConfigItem } from '../../../../components/form-config';
|
|
3
|
-
export declare function useSortableConfig(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
import { FormConfigHooks, FormConfigItem } from '../../../../components/form-config';
|
|
4
|
+
export declare function useSortableConfig({ group, hooks, fieldList, materialList }?: {
|
|
5
|
+
group?: string;
|
|
6
|
+
hooks?: FormConfigHooks;
|
|
7
|
+
fieldList?: MaybeRef<FormConfigItem[]>;
|
|
8
|
+
materialList?: MaybeRef<FormConfigItem[]>;
|
|
9
|
+
}): {
|
|
10
|
+
move: ({ to, from, dragged }: Sortable.MoveEvent) => false | undefined;
|
|
11
|
+
onChoose: ({ target, item }: Sortable.SortableEvent) => void;
|
|
12
|
+
onUnchoose: ({ from, to, target, item }: Sortable.SortableEvent) => void;
|
|
13
|
+
tag: string;
|
|
14
|
+
forceFallback: boolean;
|
|
15
|
+
animation: string;
|
|
16
|
+
'item-key': string;
|
|
17
|
+
group: string;
|
|
14
18
|
};
|