cnhis-design-vue 3.1.18-beta.7 → 3.1.18-beta.8
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/big-table/index.d.ts +113 -47
- package/es/components/big-table/src/BigTable.vue.d.ts +114 -63
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +31 -6
- package/es/components/big-table/src/components/input-button.vue.d.ts +52 -28
- package/es/components/big-table/src/hooks/useEdit.d.ts +31 -6
- package/es/components/button-print/index.d.ts +217 -110
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +217 -110
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +2 -3
- package/es/components/button-print/src/components/IdentityVerification.js +14 -6
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +144 -56
- package/es/components/button-print/src/utils/dialog.d.ts +3 -1
- package/es/components/button-print/src/utils/dialog.js +35 -23
- package/es/components/button-print/src/utils/print.d.ts +5 -0
- package/es/components/button-print/src/utils/print2.js +18 -0
- package/es/components/chunk-upload/index.d.ts +28 -22
- package/es/components/chunk-upload/src/chunk-upload-new.vue.d.ts +38 -32
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +28 -22
- package/es/components/drag-layout/index.d.ts +568 -308
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +192 -99
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +112 -79
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +568 -308
- package/es/components/field-set/index.d.ts +170 -95
- package/es/components/field-set/src/FieldSet.vue.d.ts +170 -95
- package/es/components/form-config/index.d.ts +308 -126
- package/es/components/form-config/src/FormConfig.vue.d.ts +308 -126
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +123 -59
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +157 -45
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +28 -22
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +28 -22
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +60 -47
- package/es/components/form-render/index.d.ts +85 -33
- package/es/components/form-render/src/FormRender.vue.d.ts +85 -33
- package/es/components/form-render/src/components/renderer/select.js +8 -5
- package/es/components/form-table/index.d.ts +784 -420
- package/es/components/form-table/src/FormTable.vue.d.ts +805 -427
- package/es/components/form-table/src/components/index.d.ts +784 -420
- package/es/components/form-table/src/components/table-age.vue.d.ts +114 -64
- package/es/components/form-table/src/components/table-date-picker.vue.d.ts +77 -28
- package/es/components/form-table/src/components/table-digital.vue.d.ts +37 -7
- package/es/components/form-table/src/components/table-input-password.vue.d.ts +32 -8
- package/es/components/form-table/src/components/table-input.vue.d.ts +32 -8
- package/es/components/form-table/src/components/table-month-picker.vue.d.ts +77 -28
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +28 -22
- package/es/components/form-table/src/components/table-search.vue.d.ts +105 -79
- package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +77 -57
- package/es/components/form-table/src/components/table-select.vue.d.ts +77 -57
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +32 -8
- package/es/components/form-table/src/components/table-time-picker.vue.d.ts +33 -21
- package/es/components/form-table/src/components/table-tree-select.vue.d.ts +55 -31
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +8 -2
- package/es/components/info-header/index.d.ts +236 -61
- package/es/components/info-header/src/HiddenContent.vue.d.ts +12 -5
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +12 -5
- package/es/components/info-header/src/InfoHeader.vue.d.ts +236 -61
- package/es/components/map/index.d.ts +52 -28
- package/es/components/map/src/Map.vue.d.ts +52 -28
- package/es/components/scale-view/index.d.ts +75 -60
- package/es/components/scale-view/src/ScaleView.vue.d.ts +75 -60
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +28 -22
- package/es/components/scale-view/src/components/composables/choose-common.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +8 -2
- package/es/components/scale-view/src/hooks/use-component.d.ts +656 -183
- package/es/components/select-label/index.d.ts +956 -262
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +331 -101
- package/es/components/select-label/src/SelectLabel.vue.d.ts +637 -167
- package/es/components/select-label/src/components/label-classify.vue.d.ts +264 -73
- package/es/components/select-person/index.d.ts +210 -111
- package/es/components/select-person/src/SearchTree.vue.d.ts +77 -40
- package/es/components/select-person/src/SelectPerson.vue.d.ts +214 -115
- package/es/components/shortcut-setter/index.d.ts +85 -33
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +85 -33
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +24 -6
- package/es/components/steps-wheel/index.d.ts +8 -2
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +8 -2
- package/es/components/time-line/index.d.ts +55 -30
- package/es/components/time-line/src/TimeLine.vue.d.ts +55 -30
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +28 -22
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +8 -2
- package/package.json +4 -4
|
@@ -687,14 +687,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
687
687
|
labelTextAlignHorizontal: string;
|
|
688
688
|
}, any>>>;
|
|
689
689
|
}>>, {
|
|
690
|
-
inline: boolean;
|
|
691
|
-
disabled: boolean;
|
|
692
|
-
onSubmit: (e: Event) => void;
|
|
693
|
-
labelPlacement: import("naive-ui/es/form/src/interface").LabelPlacement;
|
|
694
|
-
model: Record<string, any>;
|
|
695
|
-
showRequireMark: boolean | undefined;
|
|
696
|
-
showFeedback: boolean;
|
|
697
|
-
showLabel: boolean | undefined;
|
|
690
|
+
readonly inline: boolean;
|
|
691
|
+
readonly disabled: boolean;
|
|
692
|
+
readonly onSubmit: (e: Event) => void;
|
|
693
|
+
readonly labelPlacement: import("naive-ui/es/form/src/interface").LabelPlacement;
|
|
694
|
+
readonly model: Record<string, any>;
|
|
695
|
+
readonly showRequireMark: boolean | undefined;
|
|
696
|
+
readonly showFeedback: boolean;
|
|
697
|
+
readonly showLabel: boolean | undefined;
|
|
698
698
|
}>;
|
|
699
699
|
NTabPane: import("vue").DefineComponent<{
|
|
700
700
|
readonly tab: PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -743,9 +743,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
743
743
|
[key: string]: any;
|
|
744
744
|
}> | (() => import("vue").VNodeChild)>;
|
|
745
745
|
}>>, {
|
|
746
|
-
disabled: boolean;
|
|
747
|
-
closable: boolean | undefined;
|
|
748
|
-
displayDirective: "show" | "if" | "show:lazy";
|
|
746
|
+
readonly disabled: boolean;
|
|
747
|
+
readonly closable: boolean | undefined;
|
|
748
|
+
readonly displayDirective: "show" | "if" | "show:lazy";
|
|
749
749
|
}>;
|
|
750
750
|
NTabs: import("vue").DefineComponent<{
|
|
751
751
|
readonly value: PropType<string | number>;
|
|
@@ -802,9 +802,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
802
802
|
tabTextColorActiveCard: string;
|
|
803
803
|
tabTextColorDisabledCard: string;
|
|
804
804
|
barColor: string;
|
|
805
|
-
|
|
805
|
+
closeIconColor: string;
|
|
806
|
+
closeIconColorHover: string;
|
|
807
|
+
closeIconColorPressed: string;
|
|
806
808
|
closeColorHover: string;
|
|
807
809
|
closeColorPressed: string;
|
|
810
|
+
closeBorderRadius: string;
|
|
808
811
|
tabColor: string;
|
|
809
812
|
tabColorSegment: string;
|
|
810
813
|
tabBorderColor: string;
|
|
@@ -843,6 +846,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
843
846
|
panePaddingSmall: string;
|
|
844
847
|
panePaddingMedium: string;
|
|
845
848
|
panePaddingLarge: string;
|
|
849
|
+
closeSize: string;
|
|
850
|
+
closeIconSize: string;
|
|
846
851
|
}, any>>;
|
|
847
852
|
readonly themeOverrides: PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Tabs", {
|
|
848
853
|
colorSegment: string;
|
|
@@ -864,9 +869,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
864
869
|
tabTextColorActiveCard: string;
|
|
865
870
|
tabTextColorDisabledCard: string;
|
|
866
871
|
barColor: string;
|
|
867
|
-
|
|
872
|
+
closeIconColor: string;
|
|
873
|
+
closeIconColorHover: string;
|
|
874
|
+
closeIconColorPressed: string;
|
|
868
875
|
closeColorHover: string;
|
|
869
876
|
closeColorPressed: string;
|
|
877
|
+
closeBorderRadius: string;
|
|
870
878
|
tabColor: string;
|
|
871
879
|
tabColorSegment: string;
|
|
872
880
|
tabBorderColor: string;
|
|
@@ -905,6 +913,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
905
913
|
panePaddingSmall: string;
|
|
906
914
|
panePaddingMedium: string;
|
|
907
915
|
panePaddingLarge: string;
|
|
916
|
+
closeSize: string;
|
|
917
|
+
closeIconSize: string;
|
|
908
918
|
}, any>>>;
|
|
909
919
|
readonly builtinThemeOverrides: PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Tabs", {
|
|
910
920
|
colorSegment: string;
|
|
@@ -926,9 +936,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
926
936
|
tabTextColorActiveCard: string;
|
|
927
937
|
tabTextColorDisabledCard: string;
|
|
928
938
|
barColor: string;
|
|
929
|
-
|
|
939
|
+
closeIconColor: string;
|
|
940
|
+
closeIconColorHover: string;
|
|
941
|
+
closeIconColorPressed: string;
|
|
930
942
|
closeColorHover: string;
|
|
931
943
|
closeColorPressed: string;
|
|
944
|
+
closeBorderRadius: string;
|
|
932
945
|
tabColor: string;
|
|
933
946
|
tabColorSegment: string;
|
|
934
947
|
tabBorderColor: string;
|
|
@@ -967,12 +980,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
967
980
|
panePaddingSmall: string;
|
|
968
981
|
panePaddingMedium: string;
|
|
969
982
|
panePaddingLarge: string;
|
|
983
|
+
closeSize: string;
|
|
984
|
+
closeIconSize: string;
|
|
970
985
|
}, any>>>;
|
|
971
986
|
}, {
|
|
972
987
|
syncBarPosition: () => void;
|
|
973
988
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
974
989
|
mergedValue: import("vue").ComputedRef<string | number | null>;
|
|
975
990
|
renderedNames: Set<string | number>;
|
|
991
|
+
tabsRailElRef: import("vue").Ref<HTMLElement | null>;
|
|
976
992
|
tabsPaneWrapperRef: import("vue").Ref<HTMLElement | null>;
|
|
977
993
|
tabsElRef: import("vue").Ref<HTMLElement | null>;
|
|
978
994
|
barElRef: import("vue").Ref<HTMLElement | null>;
|
|
@@ -1037,9 +1053,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1037
1053
|
'--n-pane-text-color': string;
|
|
1038
1054
|
'--n-tab-border-color': string;
|
|
1039
1055
|
'--n-tab-border-radius': string;
|
|
1040
|
-
'--n-close-
|
|
1056
|
+
'--n-close-size': string;
|
|
1057
|
+
'--n-close-icon-size': string;
|
|
1041
1058
|
'--n-close-color-hover': string;
|
|
1042
1059
|
'--n-close-color-pressed': string;
|
|
1060
|
+
'--n-close-border-radius': string;
|
|
1061
|
+
'--n-close-icon-color': string;
|
|
1062
|
+
'--n-close-icon-color-hover': string;
|
|
1063
|
+
'--n-close-icon-color-pressed': string;
|
|
1043
1064
|
'--n-tab-color': string;
|
|
1044
1065
|
'--n-tab-font-weight': string;
|
|
1045
1066
|
'--n-tab-font-weight-active': string;
|
|
@@ -1054,7 +1075,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1054
1075
|
renderNameListRef: {
|
|
1055
1076
|
value: (string | number)[];
|
|
1056
1077
|
};
|
|
1057
|
-
onAnimationBeforeLeave: () => void;
|
|
1078
|
+
onAnimationBeforeLeave: (el: HTMLElement) => void;
|
|
1058
1079
|
onAnimationEnter: (el: HTMLElement) => void;
|
|
1059
1080
|
onAnimationAfterEnter: () => void;
|
|
1060
1081
|
onRender: (() => void) | undefined;
|
|
@@ -1113,9 +1134,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1113
1134
|
tabTextColorActiveCard: string;
|
|
1114
1135
|
tabTextColorDisabledCard: string;
|
|
1115
1136
|
barColor: string;
|
|
1116
|
-
|
|
1137
|
+
closeIconColor: string;
|
|
1138
|
+
closeIconColorHover: string;
|
|
1139
|
+
closeIconColorPressed: string;
|
|
1117
1140
|
closeColorHover: string;
|
|
1118
1141
|
closeColorPressed: string;
|
|
1142
|
+
closeBorderRadius: string;
|
|
1119
1143
|
tabColor: string;
|
|
1120
1144
|
tabColorSegment: string;
|
|
1121
1145
|
tabBorderColor: string;
|
|
@@ -1154,6 +1178,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1154
1178
|
panePaddingSmall: string;
|
|
1155
1179
|
panePaddingMedium: string;
|
|
1156
1180
|
panePaddingLarge: string;
|
|
1181
|
+
closeSize: string;
|
|
1182
|
+
closeIconSize: string;
|
|
1157
1183
|
}, any>>;
|
|
1158
1184
|
readonly themeOverrides: PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Tabs", {
|
|
1159
1185
|
colorSegment: string;
|
|
@@ -1175,9 +1201,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1175
1201
|
tabTextColorActiveCard: string;
|
|
1176
1202
|
tabTextColorDisabledCard: string;
|
|
1177
1203
|
barColor: string;
|
|
1178
|
-
|
|
1204
|
+
closeIconColor: string;
|
|
1205
|
+
closeIconColorHover: string;
|
|
1206
|
+
closeIconColorPressed: string;
|
|
1179
1207
|
closeColorHover: string;
|
|
1180
1208
|
closeColorPressed: string;
|
|
1209
|
+
closeBorderRadius: string;
|
|
1181
1210
|
tabColor: string;
|
|
1182
1211
|
tabColorSegment: string;
|
|
1183
1212
|
tabBorderColor: string;
|
|
@@ -1216,6 +1245,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1216
1245
|
panePaddingSmall: string;
|
|
1217
1246
|
panePaddingMedium: string;
|
|
1218
1247
|
panePaddingLarge: string;
|
|
1248
|
+
closeSize: string;
|
|
1249
|
+
closeIconSize: string;
|
|
1219
1250
|
}, any>>>;
|
|
1220
1251
|
readonly builtinThemeOverrides: PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Tabs", {
|
|
1221
1252
|
colorSegment: string;
|
|
@@ -1237,9 +1268,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1237
1268
|
tabTextColorActiveCard: string;
|
|
1238
1269
|
tabTextColorDisabledCard: string;
|
|
1239
1270
|
barColor: string;
|
|
1240
|
-
|
|
1271
|
+
closeIconColor: string;
|
|
1272
|
+
closeIconColorHover: string;
|
|
1273
|
+
closeIconColorPressed: string;
|
|
1241
1274
|
closeColorHover: string;
|
|
1242
1275
|
closeColorPressed: string;
|
|
1276
|
+
closeBorderRadius: string;
|
|
1243
1277
|
tabColor: string;
|
|
1244
1278
|
tabColorSegment: string;
|
|
1245
1279
|
tabBorderColor: string;
|
|
@@ -1278,14 +1312,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1278
1312
|
panePaddingSmall: string;
|
|
1279
1313
|
panePaddingMedium: string;
|
|
1280
1314
|
panePaddingLarge: string;
|
|
1315
|
+
closeSize: string;
|
|
1316
|
+
closeIconSize: string;
|
|
1281
1317
|
}, any>>>;
|
|
1282
1318
|
}>>, {
|
|
1283
|
-
type: import("naive-ui/es/tabs/src/interface").TabsType;
|
|
1284
|
-
size: "small" | "medium" | "large";
|
|
1285
|
-
closable: boolean;
|
|
1286
|
-
trigger: "click" | "hover";
|
|
1287
|
-
animated: boolean;
|
|
1288
|
-
tabsPadding: number;
|
|
1319
|
+
readonly type: import("naive-ui/es/tabs/src/interface").TabsType;
|
|
1320
|
+
readonly size: "small" | "medium" | "large";
|
|
1321
|
+
readonly closable: boolean;
|
|
1322
|
+
readonly trigger: "click" | "hover";
|
|
1323
|
+
readonly animated: boolean;
|
|
1324
|
+
readonly tabsPadding: number;
|
|
1289
1325
|
}>;
|
|
1290
1326
|
NConfigProvider: import("vue").DefineComponent<{
|
|
1291
1327
|
readonly abstract: BooleanConstructor;
|
|
@@ -1349,10 +1385,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1349
1385
|
confirm: string;
|
|
1350
1386
|
clear: string;
|
|
1351
1387
|
};
|
|
1352
|
-
|
|
1388
|
+
LegacyTransfer: {
|
|
1353
1389
|
sourceTitle: string;
|
|
1354
1390
|
targetTitle: string;
|
|
1355
1391
|
};
|
|
1392
|
+
Transfer: {
|
|
1393
|
+
selectAll: string;
|
|
1394
|
+
unselectAll: string;
|
|
1395
|
+
clearAll: string;
|
|
1396
|
+
total: (num: number) => string;
|
|
1397
|
+
selected: (num: number) => string;
|
|
1398
|
+
};
|
|
1356
1399
|
Empty: {
|
|
1357
1400
|
description: string;
|
|
1358
1401
|
};
|
|
@@ -1402,6 +1445,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1402
1445
|
tipZoomOut: string;
|
|
1403
1446
|
tipZoomIn: string;
|
|
1404
1447
|
tipClose: string;
|
|
1448
|
+
tipOriginalSize: string;
|
|
1405
1449
|
};
|
|
1406
1450
|
} | null>;
|
|
1407
1451
|
readonly dateLocale: PropType<import("naive-ui/es/locales/date/enUS").NDateLocale | null>;
|
|
@@ -1495,10 +1539,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1495
1539
|
confirm: string;
|
|
1496
1540
|
clear: string;
|
|
1497
1541
|
};
|
|
1498
|
-
|
|
1542
|
+
LegacyTransfer: {
|
|
1499
1543
|
sourceTitle: string;
|
|
1500
1544
|
targetTitle: string;
|
|
1501
1545
|
};
|
|
1546
|
+
Transfer: {
|
|
1547
|
+
selectAll: string;
|
|
1548
|
+
unselectAll: string;
|
|
1549
|
+
clearAll: string;
|
|
1550
|
+
total: (num: number) => string;
|
|
1551
|
+
selected: (num: number) => string;
|
|
1552
|
+
};
|
|
1502
1553
|
Empty: {
|
|
1503
1554
|
description: string;
|
|
1504
1555
|
};
|
|
@@ -1548,6 +1599,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1548
1599
|
tipZoomOut: string;
|
|
1549
1600
|
tipZoomIn: string;
|
|
1550
1601
|
tipClose: string;
|
|
1602
|
+
tipOriginalSize: string;
|
|
1551
1603
|
};
|
|
1552
1604
|
} | null>;
|
|
1553
1605
|
readonly dateLocale: PropType<import("naive-ui/es/locales/date/enUS").NDateLocale | null>;
|
|
@@ -1574,12 +1626,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1574
1626
|
readonly default: undefined;
|
|
1575
1627
|
};
|
|
1576
1628
|
}>>, {
|
|
1577
|
-
abstract: boolean;
|
|
1578
|
-
tag: string;
|
|
1579
|
-
as: string | undefined;
|
|
1580
|
-
bordered: boolean | undefined;
|
|
1581
|
-
preflightStyleDisabled: boolean;
|
|
1582
|
-
inlineThemeDisabled: boolean;
|
|
1629
|
+
readonly abstract: boolean;
|
|
1630
|
+
readonly tag: string;
|
|
1631
|
+
readonly as: string | undefined;
|
|
1632
|
+
readonly bordered: boolean | undefined;
|
|
1633
|
+
readonly preflightStyleDisabled: boolean;
|
|
1634
|
+
readonly inlineThemeDisabled: boolean;
|
|
1583
1635
|
}>;
|
|
1584
1636
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1585
1637
|
fieldList: {
|
|
@@ -37,7 +37,7 @@ import './slider.js';
|
|
|
37
37
|
import './complex.js';
|
|
38
38
|
import './simpleComponent.js';
|
|
39
39
|
import { NSelect } from 'naive-ui';
|
|
40
|
-
import { assignUpdateValue,
|
|
40
|
+
import { assignUpdateValue, traverseDependKey } from '../../utils/schema2.js';
|
|
41
41
|
|
|
42
42
|
const script = defineComponent({
|
|
43
43
|
name: "FormSelect",
|
|
@@ -97,7 +97,7 @@ const script = defineComponent({
|
|
|
97
97
|
} catch (e) {
|
|
98
98
|
isString(e) && formRenderLog(e, "warn");
|
|
99
99
|
}
|
|
100
|
-
async function createParams(config, field2,
|
|
100
|
+
async function createParams(config, field2, key2) {
|
|
101
101
|
const _params = {};
|
|
102
102
|
try {
|
|
103
103
|
traverseDependKey(config.dependKey, (dependKey, valueKey2, required) => {
|
|
@@ -115,7 +115,7 @@ const script = defineComponent({
|
|
|
115
115
|
return {
|
|
116
116
|
...config,
|
|
117
117
|
params: Object.assign({}, config.params, _params),
|
|
118
|
-
key
|
|
118
|
+
key: key2
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
function configFor(target) {
|
|
@@ -162,10 +162,12 @@ const script = defineComponent({
|
|
|
162
162
|
});
|
|
163
163
|
const {
|
|
164
164
|
injectValueValidate,
|
|
165
|
-
injectValueWatchFromEmpty
|
|
165
|
+
injectValueWatchFromEmpty,
|
|
166
|
+
injectValueBindKey
|
|
166
167
|
} = useCommonInjection();
|
|
167
168
|
injectValueWatchFromEmpty(valueRef, fetchData);
|
|
168
169
|
injectValueValidate(valueRef);
|
|
170
|
+
const key = injectValueBindKey(valueRef);
|
|
169
171
|
function focusDecorator(onFocus) {
|
|
170
172
|
return (...args) => {
|
|
171
173
|
if (isField(field.value)) {
|
|
@@ -175,6 +177,7 @@ const script = defineComponent({
|
|
|
175
177
|
};
|
|
176
178
|
}
|
|
177
179
|
return () => createVNode(NSelect, {
|
|
180
|
+
"key": key.value,
|
|
178
181
|
"remote": true,
|
|
179
182
|
"filterable": true,
|
|
180
183
|
"value": valueRef.value,
|
|
@@ -190,6 +193,6 @@ const script = defineComponent({
|
|
|
190
193
|
});
|
|
191
194
|
const SELECT = connect(script, mapProps({
|
|
192
195
|
dataSource: "options"
|
|
193
|
-
}, assignUpdateValue
|
|
196
|
+
}, assignUpdateValue));
|
|
194
197
|
|
|
195
198
|
export { SELECT };
|