@flatbiz/antd 2.4.2 → 2.4.5
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/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +11 -13
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -200,10 +200,6 @@ export declare const DrawerWrapper: FC<DrawerWrapperProps> & DrawerWrapperStatic
|
|
|
200
200
|
* ```
|
|
201
201
|
*/
|
|
202
202
|
export declare const createDrawerWrapperModel: (key: string) => API<ModelType<DrawerStateType, DrawerActionsParamType, any>>;
|
|
203
|
-
export declare type LabelValueItem<T extends string | number = string | number> = {
|
|
204
|
-
value: T;
|
|
205
|
-
label: string;
|
|
206
|
-
};
|
|
207
203
|
export declare type TPlainObject<T = any> = Record<string, T>;
|
|
208
204
|
export declare type SelectorServiceConfig = {
|
|
209
205
|
params?: TPlainObject;
|
|
@@ -214,7 +210,7 @@ export declare type SelectorServiceConfig = {
|
|
|
214
210
|
*/
|
|
215
211
|
onRequestResultAdapter?: (respData: any) => TPlainObject[];
|
|
216
212
|
};
|
|
217
|
-
export declare type SelectorWrapperProps = Omit<SelectProps, "filterOption" | "onSearch" | "loading" | "notFoundContent" | "options" | "fieldNames"> & {
|
|
213
|
+
export declare type SelectorWrapperProps = Omit<SelectProps, "filterOption" | "onSearch" | "loading" | "notFoundContent" | "options" | "fieldNames" | "onChange"> & {
|
|
218
214
|
modelKey: string;
|
|
219
215
|
fieldNames?: {
|
|
220
216
|
label: string;
|
|
@@ -259,11 +255,12 @@ export declare type SelectorWrapperProps = Omit<SelectProps, "filterOption" | "o
|
|
|
259
255
|
*/
|
|
260
256
|
operateType?: "search" | "filter";
|
|
261
257
|
searchFieldName?: string;
|
|
262
|
-
onLabelRenderAdapter?: (dataItem:
|
|
258
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
259
|
+
onChange?: (value?: string | number | string[] | number[], selectedList?: TPlainObject[] | TPlainObject) => void;
|
|
263
260
|
};
|
|
264
261
|
export declare type SelectorWrapperRefApi = {
|
|
265
262
|
onClearSelectorList: () => void;
|
|
266
|
-
getSelectorList: () =>
|
|
263
|
+
getSelectorList: () => TPlainObject[];
|
|
267
264
|
};
|
|
268
265
|
/**
|
|
269
266
|
* 选择器包装组件
|
|
@@ -279,7 +276,7 @@ export declare type SelectorWrapperRefApi = {
|
|
|
279
276
|
* 3. operateType=search状态下,回填数据查询接口时,会在接口中默认添加id字段(id的值为回填的值)
|
|
280
277
|
* ```
|
|
281
278
|
*/
|
|
282
|
-
export declare const SelectorWrapper: import("react").ForwardRefExoticComponent<Omit<SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>, "loading" | "options" | "filterOption" | "notFoundContent" | "onSearch" | "fieldNames"> & {
|
|
279
|
+
export declare const SelectorWrapper: import("react").ForwardRefExoticComponent<Omit<SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>, "loading" | "options" | "onChange" | "filterOption" | "notFoundContent" | "onSearch" | "fieldNames"> & {
|
|
283
280
|
modelKey: string;
|
|
284
281
|
fieldNames?: {
|
|
285
282
|
label: string;
|
|
@@ -324,7 +321,8 @@ export declare const SelectorWrapper: import("react").ForwardRefExoticComponent<
|
|
|
324
321
|
*/
|
|
325
322
|
operateType?: "search" | "filter" | undefined;
|
|
326
323
|
searchFieldName?: string | undefined;
|
|
327
|
-
onLabelRenderAdapter?: ((dataItem:
|
|
324
|
+
onLabelRenderAdapter?: ((dataItem: TPlainObject) => string | ReactElement) | undefined;
|
|
325
|
+
onChange?: ((value?: string | number | string[] | number[], selectedList?: TPlainObject[] | TPlainObject) => void) | undefined;
|
|
328
326
|
} & import("react").RefAttributes<SelectorWrapperRefApi>>;
|
|
329
327
|
export declare type UploadWrapperFileItem = {
|
|
330
328
|
uid: string;
|
|
@@ -866,7 +864,7 @@ export declare type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpand
|
|
|
866
864
|
* ```
|
|
867
865
|
*/
|
|
868
866
|
showAllOption?: true | TPlainObject<string | number>;
|
|
869
|
-
onChange?: (selectedValueList
|
|
867
|
+
onChange?: (selectedValueList?: Array<string | number> | string | number, selectedList?: TPlainObject[] | TPlainObject) => void;
|
|
870
868
|
};
|
|
871
869
|
export declare type TreeSelectorWrapperRefApi = {
|
|
872
870
|
onClearSelectorList: () => void;
|
|
@@ -908,7 +906,7 @@ export declare const TreeSelectorWrapper: import("react").ForwardRefExoticCompon
|
|
|
908
906
|
* ```
|
|
909
907
|
*/
|
|
910
908
|
showAllOption?: true | TPlainObject<string | number> | undefined;
|
|
911
|
-
onChange?: ((selectedValueList
|
|
909
|
+
onChange?: ((selectedValueList?: Array<string | number> | string | number, selectedList?: TPlainObject[] | TPlainObject) => void) | undefined;
|
|
912
910
|
} & import("react").RefAttributes<TreeSelectorWrapperRefApi>>;
|
|
913
911
|
export declare type TreeServiceConfig = {
|
|
914
912
|
params?: TPlainObject;
|
|
@@ -934,7 +932,7 @@ export declare type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeDat
|
|
|
934
932
|
*/
|
|
935
933
|
selectorTreeList?: TreeProps["treeData"];
|
|
936
934
|
value?: string | number | Array<string | number>;
|
|
937
|
-
onChange?: (selectedKey
|
|
935
|
+
onChange?: (selectedKey?: string | number | Array<string | number>, selectedList?: TPlainObject[] | TPlainObject) => void;
|
|
938
936
|
fieldNames?: {
|
|
939
937
|
label?: string;
|
|
940
938
|
value?: string;
|
|
@@ -972,7 +970,7 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
|
|
|
972
970
|
*/
|
|
973
971
|
selectorTreeList?: TreeProps["treeData"];
|
|
974
972
|
value?: string | number | (string | number)[] | undefined;
|
|
975
|
-
onChange?: ((selectedKey
|
|
973
|
+
onChange?: ((selectedKey?: string | number | Array<string | number>, selectedList?: TPlainObject[] | TPlainObject) => void) | undefined;
|
|
976
974
|
fieldNames?: {
|
|
977
975
|
label?: string | undefined;
|
|
978
976
|
value?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/antd",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.5",
|
|
4
4
|
"description": "flat-biz oss ui components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@dimjs/model": "^1.1.3",
|
|
41
41
|
"@dimjs/model-react": "^1.1.4",
|
|
42
42
|
"@dimjs/utils": "^1.2.9",
|
|
43
|
-
"@flatbiz/utils": "^2.
|
|
43
|
+
"@flatbiz/utils": "^2.4.5",
|
|
44
44
|
"@wove/react": "^1.2.10",
|
|
45
45
|
"antd": "^4.20.0",
|
|
46
46
|
"moment": "^2.29.3",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"react-router": "^6.3.0",
|
|
50
50
|
"react-router-dom": "^6.3.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "17cfd7c64c8aecb438f41fd78491d2116535fefc"
|
|
53
53
|
}
|