wt-antd 4.2.44 → 4.2.45

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.
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  export declare const BiuADatePicker: React.NamedExoticComponent<import("styled-components/dist/types").Substitute<(import("antd/lib/date-picker/generatePicker").PickerProps<import("moment").Moment> & {
3
- status?: "" | "error" | "warning" | undefined;
3
+ status?: "" | "warning" | "error" | undefined;
4
4
  dropdownClassName?: string | undefined;
5
5
  popupClassName?: string | undefined;
6
6
  }) & React.RefAttributes<React.Component<import("antd/lib/date-picker/generatePicker").PickerProps<import("moment").Moment> & {
7
- status?: "" | "error" | "warning" | undefined;
7
+ status?: "" | "warning" | "error" | undefined;
8
8
  dropdownClassName?: string | undefined;
9
9
  popupClassName?: string | undefined;
10
10
  }, unknown, any>>, import("styled-components/dist/types").BaseObject>>;
11
11
  export declare const BiuAMouthPicker: React.MemoExoticComponent<import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerProps<import("moment").Moment> & {
12
- status?: "" | "error" | "warning" | undefined;
12
+ status?: "" | "warning" | "error" | undefined;
13
13
  dropdownClassName?: string | undefined;
14
14
  popupClassName?: string | undefined;
15
15
  }, "picker">, unknown>>;
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  export { Form as BiuAForm } from 'antd';
3
3
  export declare const BiuAFormItem: React.MemoExoticComponent<(<Values = any>(props: import("antd").FormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
4
4
  useStatus: () => {
5
- status?: "" | "error" | "success" | "warning" | "validating" | undefined;
5
+ status?: "" | "warning" | "error" | "success" | "validating" | undefined;
6
6
  };
7
7
  }>;
@@ -9,7 +9,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
9
9
  /**
10
10
  * 0:入库 1:出库 2:移库 3:冻结 4:调整 5:属性变更
11
11
  */
12
- orderType: 0 | 1 | 2 | 3 | 4 | 5;
12
+ orderType: 0 | 3 | 1 | 4 | 2 | 5;
13
13
  isFirstLoad: boolean;
14
14
  onFetchData?: ((res: any) => any) | undefined;
15
15
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EACd,WAAmB;AAmKpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FAuUzB,CAAA;AAMD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FAgIpB,CAAA;AAGD,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EACd,WAAmB;AAmKpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FAiVzB,CAAA;AAMD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FAgIpB,CAAA;AAGD,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
@@ -195,13 +195,22 @@ export var TableInstance = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(func
195
195
  });
196
196
  }
197
197
  }, [params, rowSelection, run]);
198
+ var handleRefresh = useCallback(function () {
199
+ refresh();
200
+ setSelectedRowKeys([]);
201
+ if (rowSelection !== null && rowSelection !== void 0 && rowSelection.onChange) {
202
+ rowSelection.onChange([], [], {
203
+ type: 'multiple'
204
+ });
205
+ }
206
+ }, [rowSelection, refresh]);
198
207
  useImperativeHandle(ref, function () {
199
208
  return _objectSpread(_objectSpread({}, formRef.current), {}, {
200
209
  reload: function reload() {
201
210
  var _formRef$current;
202
211
  (_formRef$current = formRef.current) === null || _formRef$current === void 0 || _formRef$current.submit();
203
212
  },
204
- refresh: refresh
213
+ refresh: handleRefresh
205
214
  });
206
215
  }, []);
207
216
  var tableDataSource = useMemo(function () {
@@ -51,4 +51,4 @@ export declare const BiuTableSelect: React.MemoExoticComponent<React.ForwardRefE
51
51
  */
52
52
  mode?: string | undefined;
53
53
  ownflag?: boolean | undefined;
54
- } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "allowClear" | "showSearch"> & Pick<TableProps<any>, "onRow" | "dataSource"> & React.RefAttributes<unknown>>>;
54
+ } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "dataSource" | "onRow"> & React.RefAttributes<unknown>>>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AA6RhD,eAAO,MAAM,OAAO,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,CAAC,CAuCtE,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,CAAC,CAsBxE,CAAA;AAED,cAAc,QAAQ,CAAA"}
@@ -3,6 +3,6 @@ import { UpdateVersionData } from '..';
3
3
  * 判断是否为子系统
4
4
  */
5
5
  export declare const IsSubSYS: boolean;
6
- export declare const compareVersions: (version1: string, version2: string | undefined | null) => 1 | -1 | 0;
6
+ export declare const compareVersions: (version1: string, version2: string | undefined | null) => 0 | 1 | -1;
7
7
  export declare const getSystemByUrl: (route: string) => "wms" | "mdm" | "sso" | undefined;
8
8
  export declare const updateVersionHandle: (data: UpdateVersionData) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-antd",
3
- "version": "4.2.44",
3
+ "version": "4.2.45",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",