@aplus-frontend/ui 6.26.4 → 6.27.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.
- package/es/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
- package/es/src/ag-grid/hooks/use-columns-def.mjs +29 -29
- package/es/src/ag-grid/hooks/use-columns.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-columns.mjs +8 -8
- package/es/src/ag-grid/hooks/use-pinned-row.d.ts +7 -0
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +32 -0
- package/es/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
- package/es/src/ag-grid/hooks/use-virtual-config.mjs +25 -0
- package/es/src/ag-grid/index.vue.mjs +274 -232
- package/es/src/ag-grid/interface.d.ts +25 -2
- package/es/src/ap-field/select/index.vue.d.ts +51 -21
- package/es/src/ap-field/select/index.vue.mjs +51 -49
- package/es/src/ap-field/select/read.vue2.mjs +4 -1
- package/es/src/ap-field/tree-select/index.vue.d.ts +29 -21
- package/es/src/ap-field/tree-select/index.vue.mjs +11 -9
- package/es/src/ap-field/tree-select/read.vue2.mjs +7 -5
- package/es/src/ap-form/ap-form.vue.d.ts +20 -0
- package/es/src/ap-form/ap-form.vue2.mjs +11 -10
- package/es/src/ap-form/drawer-form/index.vue.d.ts +22 -0
- package/es/src/ap-form/drawer-form/index.vue.mjs +1 -0
- package/es/src/ap-form/hooks/use-watch.mjs +25 -28
- package/es/src/ap-form/interface.d.ts +1 -1
- package/es/src/ap-form/items/select/index.vue.d.ts +64 -28
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
- package/es/src/ap-form/modal-form/index.vue.d.ts +22 -0
- package/es/src/ap-form/modal-form/index.vue.mjs +31 -30
- package/es/src/ap-form/search-form/index.vue.d.ts +24 -2
- package/es/src/ap-form/search-form/index.vue.mjs +72 -68
- package/es/src/ap-table/constants.d.ts +52 -28
- package/es/src/ap-upload/apUpload.vue.d.ts +9 -0
- package/es/src/ap-upload/apUpload.vue.mjs +38 -34
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +59 -59
- package/es/src/ap-upload/components/Picture.vue2.mjs +74 -74
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +95 -95
- package/es/src/business/ap-value-select-card/index.vue2.mjs +120 -123
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
- package/es/src/business/hooks/usePageListAgGrid.d.ts +1 -1
- package/es/src/business/hooks/usePageListAgGrid.mjs +4 -4
- package/es/src/business/hooks/usePageListApGrid.mjs +14 -14
- package/es/src/config-provider/config-provider-props.d.ts +14 -1
- package/es/src/config-provider/config-provider.d.ts +31 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +14 -1
- package/es/src/config-provider/index.d.ts +52 -1
- package/es/src/utils/config-provider-preset.d.ts +11 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
- package/lib/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.d.ts +7 -0
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -0
- package/lib/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
- package/lib/src/ag-grid/hooks/use-virtual-config.js +1 -0
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +25 -2
- package/lib/src/ap-field/select/index.vue.d.ts +51 -21
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +29 -21
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +20 -0
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +22 -0
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/interface.d.ts +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +64 -28
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
- package/lib/src/ap-form/modal-form/index.vue.d.ts +22 -0
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +24 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +52 -28
- package/lib/src/ap-upload/apUpload.vue.d.ts +9 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
- package/lib/src/business/hooks/usePageListAgGrid.d.ts +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +14 -1
- package/lib/src/config-provider/config-provider.d.ts +31 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -1
- package/lib/src/config-provider/index.d.ts +52 -1
- package/lib/src/utils/config-provider-preset.d.ts +11 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
- package/package.json +3 -3
- package/theme/ap-pro-card/index.css +5 -5
- package/theme/ap-pro-card/index.less +5 -5
- package/theme/ap-value-select-card/index.css +3 -4
- package/theme/ap-value-select-card/index.less +3 -4
- package/theme/index.css +8 -9
|
@@ -893,6 +893,7 @@ export declare const apTableFormItemMap: {
|
|
|
893
893
|
readonly animation?: string | undefined;
|
|
894
894
|
readonly children?: VueNode[] | undefined;
|
|
895
895
|
readonly prefixCls?: string | undefined;
|
|
896
|
+
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
896
897
|
readonly loading?: boolean | undefined;
|
|
897
898
|
readonly transitionName?: string | undefined;
|
|
898
899
|
readonly autofocus?: boolean | undefined;
|
|
@@ -904,6 +905,7 @@ export declare const apTableFormItemMap: {
|
|
|
904
905
|
readonly id?: string | undefined;
|
|
905
906
|
readonly placeholder?: any;
|
|
906
907
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
908
|
+
readonly prefix?: any;
|
|
907
909
|
readonly clearIcon?: any;
|
|
908
910
|
readonly allowClear?: boolean | undefined;
|
|
909
911
|
readonly options?: DefaultOptionType[] | undefined;
|
|
@@ -914,6 +916,8 @@ export declare const apTableFormItemMap: {
|
|
|
914
916
|
readonly suffixIcon?: any;
|
|
915
917
|
readonly notFoundContent?: any;
|
|
916
918
|
readonly itemIcon?: any;
|
|
919
|
+
readonly showArrow?: boolean | undefined;
|
|
920
|
+
readonly maxCount?: number | undefined;
|
|
917
921
|
readonly choiceTransitionName?: "" | undefined;
|
|
918
922
|
readonly popupClassName?: string | undefined;
|
|
919
923
|
readonly listHeight?: number | undefined;
|
|
@@ -934,7 +938,6 @@ export declare const apTableFormItemMap: {
|
|
|
934
938
|
readonly optionLabelRender?: ((option: Record<string, any>) => any) | undefined;
|
|
935
939
|
readonly onClear?: (() => void) | undefined;
|
|
936
940
|
readonly onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
|
|
937
|
-
readonly showArrow?: boolean | undefined;
|
|
938
941
|
readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
|
|
939
942
|
readonly menuItemSelectedIcon?: any;
|
|
940
943
|
readonly listItemHeight?: number | undefined;
|
|
@@ -989,6 +992,15 @@ export declare const apTableFormItemMap: {
|
|
|
989
992
|
type: BooleanConstructor;
|
|
990
993
|
default: boolean;
|
|
991
994
|
};
|
|
995
|
+
showArrow: {
|
|
996
|
+
type: BooleanConstructor;
|
|
997
|
+
default: boolean;
|
|
998
|
+
};
|
|
999
|
+
variant: {
|
|
1000
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
1001
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
1002
|
+
};
|
|
1003
|
+
maxCount: NumberConstructor;
|
|
992
1004
|
transitionName: StringConstructor;
|
|
993
1005
|
choiceTransitionName: {
|
|
994
1006
|
type: PropType<"">;
|
|
@@ -1071,6 +1083,7 @@ export declare const apTableFormItemMap: {
|
|
|
1071
1083
|
clearIcon: VueTypeValidableDef<any>;
|
|
1072
1084
|
options: PropType< DefaultOptionType[]>;
|
|
1073
1085
|
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
1086
|
+
prefix: VueTypeValidableDef<any>;
|
|
1074
1087
|
onSearch: PropType<(value: string) => void>;
|
|
1075
1088
|
fieldNames: PropType<FieldNames>;
|
|
1076
1089
|
dropdownStyle: {
|
|
@@ -1104,10 +1117,6 @@ export declare const apTableFormItemMap: {
|
|
|
1104
1117
|
onDropdownVisibleChange: {
|
|
1105
1118
|
type: PropType<(open: boolean) => void>;
|
|
1106
1119
|
};
|
|
1107
|
-
showArrow: {
|
|
1108
|
-
type: BooleanConstructor;
|
|
1109
|
-
default: any;
|
|
1110
|
-
};
|
|
1111
1120
|
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
1112
1121
|
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
1113
1122
|
listItemHeight: NumberConstructor;
|
|
@@ -1141,6 +1150,7 @@ export declare const apTableFormItemMap: {
|
|
|
1141
1150
|
virtual: boolean;
|
|
1142
1151
|
dropdownMatchSelectWidth: number | boolean;
|
|
1143
1152
|
loading: boolean;
|
|
1153
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
1144
1154
|
bordered: boolean;
|
|
1145
1155
|
defaultValue: SelectValue;
|
|
1146
1156
|
status: "" | "error" | "warning";
|
|
@@ -1151,11 +1161,11 @@ export declare const apTableFormItemMap: {
|
|
|
1151
1161
|
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
1152
1162
|
showSearch: boolean;
|
|
1153
1163
|
choiceTransitionName: "";
|
|
1154
|
-
showArrow: boolean;
|
|
1155
1164
|
autoClearSearchValue: boolean;
|
|
1156
1165
|
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
1157
1166
|
defaultActiveFirstOption: boolean;
|
|
1158
1167
|
labelInValue: boolean;
|
|
1168
|
+
showArrow: boolean;
|
|
1159
1169
|
}, true, {}, CustomSlotsType<{
|
|
1160
1170
|
notFoundContent: any;
|
|
1161
1171
|
suffixIcon: any;
|
|
@@ -1169,6 +1179,7 @@ export declare const apTableFormItemMap: {
|
|
|
1169
1179
|
maxTagPlaceholder: any;
|
|
1170
1180
|
optionLabel: any;
|
|
1171
1181
|
default: any;
|
|
1182
|
+
prefix: any;
|
|
1172
1183
|
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1173
1184
|
P: {};
|
|
1174
1185
|
B: {};
|
|
@@ -1200,6 +1211,15 @@ export declare const apTableFormItemMap: {
|
|
|
1200
1211
|
type: BooleanConstructor;
|
|
1201
1212
|
default: boolean;
|
|
1202
1213
|
};
|
|
1214
|
+
showArrow: {
|
|
1215
|
+
type: BooleanConstructor;
|
|
1216
|
+
default: boolean;
|
|
1217
|
+
};
|
|
1218
|
+
variant: {
|
|
1219
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
1220
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
1221
|
+
};
|
|
1222
|
+
maxCount: NumberConstructor;
|
|
1203
1223
|
transitionName: StringConstructor;
|
|
1204
1224
|
choiceTransitionName: {
|
|
1205
1225
|
type: PropType<"">;
|
|
@@ -1282,6 +1302,7 @@ export declare const apTableFormItemMap: {
|
|
|
1282
1302
|
clearIcon: VueTypeValidableDef<any>;
|
|
1283
1303
|
options: PropType< DefaultOptionType[]>;
|
|
1284
1304
|
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
1305
|
+
prefix: VueTypeValidableDef<any>;
|
|
1285
1306
|
onSearch: PropType<(value: string) => void>;
|
|
1286
1307
|
fieldNames: PropType<FieldNames>;
|
|
1287
1308
|
dropdownStyle: {
|
|
@@ -1315,10 +1336,6 @@ export declare const apTableFormItemMap: {
|
|
|
1315
1336
|
onDropdownVisibleChange: {
|
|
1316
1337
|
type: PropType<(open: boolean) => void>;
|
|
1317
1338
|
};
|
|
1318
|
-
showArrow: {
|
|
1319
|
-
type: BooleanConstructor;
|
|
1320
|
-
default: any;
|
|
1321
|
-
};
|
|
1322
1339
|
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
1323
1340
|
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
1324
1341
|
listItemHeight: NumberConstructor;
|
|
@@ -1352,6 +1369,7 @@ export declare const apTableFormItemMap: {
|
|
|
1352
1369
|
virtual: boolean;
|
|
1353
1370
|
dropdownMatchSelectWidth: number | boolean;
|
|
1354
1371
|
loading: boolean;
|
|
1372
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
1355
1373
|
bordered: boolean;
|
|
1356
1374
|
defaultValue: SelectValue;
|
|
1357
1375
|
status: "" | "error" | "warning";
|
|
@@ -1362,11 +1380,11 @@ export declare const apTableFormItemMap: {
|
|
|
1362
1380
|
placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
1363
1381
|
showSearch: boolean;
|
|
1364
1382
|
choiceTransitionName: "";
|
|
1365
|
-
showArrow: boolean;
|
|
1366
1383
|
autoClearSearchValue: boolean;
|
|
1367
1384
|
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
1368
1385
|
defaultActiveFirstOption: boolean;
|
|
1369
1386
|
labelInValue: boolean;
|
|
1387
|
+
showArrow: boolean;
|
|
1370
1388
|
}> | null;
|
|
1371
1389
|
};
|
|
1372
1390
|
$slots: Readonly<{
|
|
@@ -1397,8 +1415,8 @@ export declare const apTableFormItemMap: {
|
|
|
1397
1415
|
lazy: boolean;
|
|
1398
1416
|
allowClear: boolean;
|
|
1399
1417
|
defaultOpen: boolean;
|
|
1400
|
-
showSearch: boolean;
|
|
1401
1418
|
showArrow: boolean;
|
|
1419
|
+
showSearch: boolean;
|
|
1402
1420
|
autoClearSearchValue: boolean;
|
|
1403
1421
|
defaultActiveFirstOption: boolean;
|
|
1404
1422
|
labelInValue: boolean;
|
|
@@ -1438,8 +1456,8 @@ export declare const apTableFormItemMap: {
|
|
|
1438
1456
|
lazy: boolean;
|
|
1439
1457
|
allowClear: boolean;
|
|
1440
1458
|
defaultOpen: boolean;
|
|
1441
|
-
showSearch: boolean;
|
|
1442
1459
|
showArrow: boolean;
|
|
1460
|
+
showSearch: boolean;
|
|
1443
1461
|
autoClearSearchValue: boolean;
|
|
1444
1462
|
defaultActiveFirstOption: boolean;
|
|
1445
1463
|
labelInValue: boolean;
|
|
@@ -1449,7 +1467,7 @@ export declare const apTableFormItemMap: {
|
|
|
1449
1467
|
searchDelay: number;
|
|
1450
1468
|
}> & Omit<Readonly< ApFieldSelectProps> & Readonly<{
|
|
1451
1469
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
1452
|
-
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "lazy" | "allowClear" | "defaultOpen" | "
|
|
1470
|
+
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "lazy" | "allowClear" | "defaultOpen" | "showArrow" | "showSearch" | "autoClearSearchValue" | "defaultActiveFirstOption" | "labelInValue" | "emptyText" | "searchMode" | "refetchOnFocus" | "searchDelay")> & ShallowUnwrapRef<{
|
|
1453
1471
|
focus: () => void;
|
|
1454
1472
|
blur: () => void;
|
|
1455
1473
|
request: (clear?: boolean) => Promise<void>;
|
|
@@ -2472,6 +2490,7 @@ export declare const apTableFormItemMap: {
|
|
|
2472
2490
|
readonly id?: string | undefined;
|
|
2473
2491
|
readonly placeholder?: any;
|
|
2474
2492
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
2493
|
+
readonly prefix?: any;
|
|
2475
2494
|
readonly clearIcon?: any;
|
|
2476
2495
|
readonly allowClear?: boolean | undefined;
|
|
2477
2496
|
readonly tabindex?: number | undefined;
|
|
@@ -2480,6 +2499,8 @@ export declare const apTableFormItemMap: {
|
|
|
2480
2499
|
readonly defaultOpen?: boolean | undefined;
|
|
2481
2500
|
readonly suffixIcon?: any;
|
|
2482
2501
|
readonly notFoundContent?: any;
|
|
2502
|
+
readonly showArrow?: boolean | undefined;
|
|
2503
|
+
readonly maxCount?: number | undefined;
|
|
2483
2504
|
readonly choiceTransitionName?: string | undefined;
|
|
2484
2505
|
readonly popupClassName?: string | undefined;
|
|
2485
2506
|
readonly listHeight?: number | undefined;
|
|
@@ -2501,7 +2522,6 @@ export declare const apTableFormItemMap: {
|
|
|
2501
2522
|
readonly optionLabelRender?: ((option: Record<string, any>) => any) | undefined;
|
|
2502
2523
|
readonly onClear?: (() => void) | undefined;
|
|
2503
2524
|
readonly onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
|
|
2504
|
-
readonly showArrow?: boolean | undefined;
|
|
2505
2525
|
readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
|
|
2506
2526
|
readonly listItemHeight?: number | undefined;
|
|
2507
2527
|
readonly inputValue?: string | undefined;
|
|
@@ -2663,7 +2683,9 @@ export declare const apTableFormItemMap: {
|
|
|
2663
2683
|
id: StringConstructor;
|
|
2664
2684
|
clearIcon: VueTypeValidableDef<any>;
|
|
2665
2685
|
notFoundContent: VueTypeValidableDef<any>;
|
|
2686
|
+
maxCount: NumberConstructor;
|
|
2666
2687
|
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
2688
|
+
prefix: VueTypeValidableDef<any>;
|
|
2667
2689
|
onSearch: {
|
|
2668
2690
|
type: PropType<(value: string) => void>;
|
|
2669
2691
|
};
|
|
@@ -2722,10 +2744,6 @@ export declare const apTableFormItemMap: {
|
|
|
2722
2744
|
getRawInputElement: {
|
|
2723
2745
|
type: PropType<() => any>;
|
|
2724
2746
|
};
|
|
2725
|
-
showArrow: {
|
|
2726
|
-
type: BooleanConstructor;
|
|
2727
|
-
default: any;
|
|
2728
|
-
};
|
|
2729
2747
|
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
2730
2748
|
listItemHeight: NumberConstructor;
|
|
2731
2749
|
inputValue: StringConstructor;
|
|
@@ -2737,6 +2755,10 @@ export declare const apTableFormItemMap: {
|
|
|
2737
2755
|
type: BooleanConstructor;
|
|
2738
2756
|
default: any;
|
|
2739
2757
|
};
|
|
2758
|
+
showArrow: {
|
|
2759
|
+
type: BooleanConstructor;
|
|
2760
|
+
default: any;
|
|
2761
|
+
};
|
|
2740
2762
|
showCheckedStrategy: {
|
|
2741
2763
|
type: PropType<CheckedStrategy>;
|
|
2742
2764
|
};
|
|
@@ -2791,9 +2813,9 @@ export declare const apTableFormItemMap: {
|
|
|
2791
2813
|
replaceFields: FieldNames;
|
|
2792
2814
|
treeCheckable: boolean;
|
|
2793
2815
|
showSearch: boolean;
|
|
2794
|
-
showArrow: boolean;
|
|
2795
2816
|
autoClearSearchValue: boolean;
|
|
2796
2817
|
labelInValue: boolean;
|
|
2818
|
+
showArrow: boolean;
|
|
2797
2819
|
treeDefaultExpandAll: boolean;
|
|
2798
2820
|
treeLine: boolean | {
|
|
2799
2821
|
showLeafIcon: boolean;
|
|
@@ -2940,7 +2962,9 @@ export declare const apTableFormItemMap: {
|
|
|
2940
2962
|
id: StringConstructor;
|
|
2941
2963
|
clearIcon: VueTypeValidableDef<any>;
|
|
2942
2964
|
notFoundContent: VueTypeValidableDef<any>;
|
|
2965
|
+
maxCount: NumberConstructor;
|
|
2943
2966
|
onDeselect: PropType<SelectHandler<unknown, BaseOptionType>>;
|
|
2967
|
+
prefix: VueTypeValidableDef<any>;
|
|
2944
2968
|
onSearch: {
|
|
2945
2969
|
type: PropType<(value: string) => void>;
|
|
2946
2970
|
};
|
|
@@ -2999,10 +3023,6 @@ export declare const apTableFormItemMap: {
|
|
|
2999
3023
|
getRawInputElement: {
|
|
3000
3024
|
type: PropType<() => any>;
|
|
3001
3025
|
};
|
|
3002
|
-
showArrow: {
|
|
3003
|
-
type: BooleanConstructor;
|
|
3004
|
-
default: any;
|
|
3005
|
-
};
|
|
3006
3026
|
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
3007
3027
|
listItemHeight: NumberConstructor;
|
|
3008
3028
|
inputValue: StringConstructor;
|
|
@@ -3014,6 +3034,10 @@ export declare const apTableFormItemMap: {
|
|
|
3014
3034
|
type: BooleanConstructor;
|
|
3015
3035
|
default: any;
|
|
3016
3036
|
};
|
|
3037
|
+
showArrow: {
|
|
3038
|
+
type: BooleanConstructor;
|
|
3039
|
+
default: any;
|
|
3040
|
+
};
|
|
3017
3041
|
showCheckedStrategy: {
|
|
3018
3042
|
type: PropType<CheckedStrategy>;
|
|
3019
3043
|
};
|
|
@@ -3068,9 +3092,9 @@ export declare const apTableFormItemMap: {
|
|
|
3068
3092
|
replaceFields: FieldNames;
|
|
3069
3093
|
treeCheckable: boolean;
|
|
3070
3094
|
showSearch: boolean;
|
|
3071
|
-
showArrow: boolean;
|
|
3072
3095
|
autoClearSearchValue: boolean;
|
|
3073
3096
|
labelInValue: boolean;
|
|
3097
|
+
showArrow: boolean;
|
|
3074
3098
|
treeDefaultExpandAll: boolean;
|
|
3075
3099
|
treeLine: boolean | {
|
|
3076
3100
|
showLeafIcon: boolean;
|
|
@@ -3109,8 +3133,8 @@ export declare const apTableFormItemMap: {
|
|
|
3109
3133
|
dropdownMatchSelectWidth: number | boolean;
|
|
3110
3134
|
allowClear: boolean;
|
|
3111
3135
|
defaultOpen: boolean;
|
|
3112
|
-
showSearch: boolean;
|
|
3113
3136
|
showArrow: boolean;
|
|
3137
|
+
showSearch: boolean;
|
|
3114
3138
|
autoClearSearchValue: boolean;
|
|
3115
3139
|
labelInValue: boolean;
|
|
3116
3140
|
treeCheckable: boolean;
|
|
@@ -3149,8 +3173,8 @@ export declare const apTableFormItemMap: {
|
|
|
3149
3173
|
dropdownMatchSelectWidth: number | boolean;
|
|
3150
3174
|
allowClear: boolean;
|
|
3151
3175
|
defaultOpen: boolean;
|
|
3152
|
-
showSearch: boolean;
|
|
3153
3176
|
showArrow: boolean;
|
|
3177
|
+
showSearch: boolean;
|
|
3154
3178
|
autoClearSearchValue: boolean;
|
|
3155
3179
|
labelInValue: boolean;
|
|
3156
3180
|
treeCheckable: boolean;
|
|
@@ -3159,7 +3183,7 @@ export declare const apTableFormItemMap: {
|
|
|
3159
3183
|
emptyText: string;
|
|
3160
3184
|
}> & Omit<Readonly< ApFieldTreeSelectProps> & Readonly<{
|
|
3161
3185
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
3162
|
-
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "dropdownMatchSelectWidth" | "allowClear" | "defaultOpen" | "
|
|
3186
|
+
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "loading" | "autofocus" | "bordered" | "virtual" | "dropdownMatchSelectWidth" | "allowClear" | "defaultOpen" | "showArrow" | "showSearch" | "autoClearSearchValue" | "labelInValue" | "treeCheckable" | "treeDefaultExpandAll" | "treeCheckStrictly" | "emptyText")> & ShallowUnwrapRef<{
|
|
3163
3187
|
blur: () => void;
|
|
3164
3188
|
focus: () => void;
|
|
3165
3189
|
request: (currentNode?: LegacyDataNode, clear?: boolean) => Promise<void>;
|
|
@@ -81,6 +81,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
81
81
|
type: FunctionConstructor;
|
|
82
82
|
default: undefined;
|
|
83
83
|
};
|
|
84
|
+
showUploadErrorMsg: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
84
88
|
}>, {
|
|
85
89
|
done: ComputedRef<boolean>;
|
|
86
90
|
clear: typeof clear;
|
|
@@ -156,6 +160,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
156
160
|
type: FunctionConstructor;
|
|
157
161
|
default: undefined;
|
|
158
162
|
};
|
|
163
|
+
showUploadErrorMsg: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
159
167
|
}>> & Readonly<{
|
|
160
168
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
161
169
|
}>, {
|
|
@@ -177,6 +185,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
177
185
|
subTitle: string | VNode< RendererNode, RendererElement, {
|
|
178
186
|
[key: string]: any;
|
|
179
187
|
}>;
|
|
188
|
+
showUploadErrorMsg: boolean;
|
|
180
189
|
maxCountErrorMsg: string;
|
|
181
190
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
182
191
|
uploadRef: unknown;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, ref as u, computed as p, provide as t, createElementBlock as h, openBlock as m, normalizeClass as U, unref as O, createBlock as R, resolveDynamicComponent as z, mergeProps as j, createSlots as A, renderList as $, withCtx as k, renderSlot as B, normalizeProps as T, guardReactiveProps as w } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
3
|
import "./components/SingleFile.vue.mjs";
|
|
4
4
|
import "./components/MultipleFile.vue.mjs";
|
|
5
5
|
import "./components/Picture.vue.mjs";
|
|
6
|
-
import { injectLocaleToAccept as
|
|
7
|
-
import { injectLocaleToOss as
|
|
8
|
-
import { Form as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useNamespace as
|
|
6
|
+
import { injectLocaleToAccept as L } from "./utils/accept.mjs";
|
|
7
|
+
import { injectLocaleToOss as q } from "./hooks/useOss.mjs";
|
|
8
|
+
import { Form as I } from "@aplus-frontend/antdv";
|
|
9
|
+
import { useLocale as P } from "../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useNamespace as V } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import D from "./components/Picture.vue2.mjs";
|
|
12
12
|
import G from "./components/MultipleFile.vue2.mjs";
|
|
13
13
|
import H from "./components/SingleFile.vue2.mjs";
|
|
14
14
|
import { useGlobalConfig as c } from "../config-provider/hooks/use-global-config.mjs";
|
|
15
|
-
const
|
|
15
|
+
const le = /* @__PURE__ */ _({
|
|
16
16
|
name: "AplusFileUpload",
|
|
17
17
|
__name: "apUpload",
|
|
18
18
|
props: {
|
|
@@ -83,54 +83,58 @@ const ue = /* @__PURE__ */ E({
|
|
|
83
83
|
onRemove: {
|
|
84
84
|
type: Function,
|
|
85
85
|
default: void 0
|
|
86
|
+
},
|
|
87
|
+
showUploadErrorMsg: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !0
|
|
86
90
|
}
|
|
87
91
|
},
|
|
88
92
|
emits: ["update:value"],
|
|
89
93
|
setup(d, { expose: f, emit: g }) {
|
|
90
|
-
const { t:
|
|
91
|
-
|
|
92
|
-
const { b: y } =
|
|
94
|
+
const { t: a, lang: v } = P();
|
|
95
|
+
L(a), q(a, v);
|
|
96
|
+
const { b: y } = V("ap-upload"), n = u(null), e = d, C = g, S = {
|
|
93
97
|
singleFile: H,
|
|
94
98
|
multipleFile: G,
|
|
95
99
|
picture: D
|
|
96
|
-
}, x =
|
|
100
|
+
}, x = I.useInjectFormItemContext(), b = p({
|
|
97
101
|
get() {
|
|
98
102
|
return e.value;
|
|
99
103
|
},
|
|
100
104
|
set(o) {
|
|
101
105
|
C("update:value", o), x?.onFieldChange(), e.onChange?.(o);
|
|
102
106
|
}
|
|
103
|
-
}),
|
|
104
|
-
t("theme",
|
|
107
|
+
}), M = c("uiMode"), r = c("apUpload");
|
|
108
|
+
t("theme", M.value), t("value", b), t("dirName", e.dirName ?? r.value?.dirName), t(
|
|
105
109
|
"needName",
|
|
106
|
-
e.needName ??
|
|
107
|
-
), t("accept", e.accept ??
|
|
110
|
+
e.needName ?? r.value?.needName ?? !1
|
|
111
|
+
), t("accept", e.accept ?? r.value?.accept ?? ""), t("maxSize", e.maxSize), t("title", e.title), t("subTitle", e.subTitle), t("maxCount", e.maxCount), t("beforeUpload", e.beforeUpload), t("customRequest", e.customRequest), t(
|
|
108
112
|
"getOssAccess",
|
|
109
|
-
e.getOssAccess ??
|
|
110
|
-
), t("maxSizeErrorMsg", e.maxSizeErrorMsg), t("maxCountErrorMsg", e.maxCountErrorMsg), t("acceptErrorMsg", e.acceptErrorMsg), t("onRemove", e.onRemove);
|
|
111
|
-
const
|
|
112
|
-
t("uploadingCount",
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
e.getOssAccess ?? r.value?.getOssAccess
|
|
114
|
+
), t("maxSizeErrorMsg", e.maxSizeErrorMsg), t("maxCountErrorMsg", e.maxCountErrorMsg), t("acceptErrorMsg", e.acceptErrorMsg), t("onRemove", e.onRemove), t("showUploadErrorMsg", e.showUploadErrorMsg);
|
|
115
|
+
const E = p(() => s.value === 0), s = u(0);
|
|
116
|
+
t("uploadingCount", s);
|
|
117
|
+
function F() {
|
|
118
|
+
i(void 0);
|
|
115
119
|
}
|
|
116
|
-
function
|
|
120
|
+
function i(o) {
|
|
117
121
|
n?.value?.setValue?.(o);
|
|
118
122
|
}
|
|
119
123
|
return f({
|
|
120
|
-
done:
|
|
121
|
-
clear:
|
|
122
|
-
setValue:
|
|
123
|
-
}), (o, J) => (m(),
|
|
124
|
-
class:
|
|
124
|
+
done: E,
|
|
125
|
+
clear: F,
|
|
126
|
+
setValue: i
|
|
127
|
+
}), (o, J) => (m(), h("div", {
|
|
128
|
+
class: U(O(y)())
|
|
125
129
|
}, [
|
|
126
|
-
(m(),
|
|
130
|
+
(m(), R(z(S[e.type]), j(o.$attrs, {
|
|
127
131
|
ref_key: "uploadRef",
|
|
128
132
|
ref: n
|
|
129
|
-
}),
|
|
130
|
-
$(Object.keys(o.$slots), (
|
|
131
|
-
name:
|
|
132
|
-
fn: k((
|
|
133
|
-
|
|
133
|
+
}), A({ _: 2 }, [
|
|
134
|
+
$(Object.keys(o.$slots), (l) => ({
|
|
135
|
+
name: l,
|
|
136
|
+
fn: k((N) => [
|
|
137
|
+
B(o.$slots, l, T(w(N || {})))
|
|
134
138
|
])
|
|
135
139
|
}))
|
|
136
140
|
]), 1040))
|
|
@@ -138,5 +142,5 @@ const ue = /* @__PURE__ */ E({
|
|
|
138
142
|
}
|
|
139
143
|
});
|
|
140
144
|
export {
|
|
141
|
-
|
|
145
|
+
le as default
|
|
142
146
|
};
|