wt-enjoy-link-antd-repack 4.1.53 → 4.1.54

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.
@@ -3,16 +3,16 @@ export declare const BiuAButton: React.MemoExoticComponent<import("styled-compon
3
3
  href: string;
4
4
  target?: string | undefined;
5
5
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
6
- } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
6
+ } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
7
7
  htmlType?: "button" | "submit" | "reset" | undefined;
8
8
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
9
- } & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<Partial<{
9
+ } & Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<Partial<{
10
10
  href: string;
11
11
  target?: string | undefined;
12
12
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
13
- } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
13
+ } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
14
14
  htmlType?: "button" | "submit" | "reset" | undefined;
15
15
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
16
- } & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
16
+ } & Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & React.RefAttributes<HTMLElement>> & {
17
17
  Group: React.FC<import("antd/lib/button").ButtonGroupProps>;
18
18
  }, keyof React.Component<any, {}, any>>>;
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["warehouseId", "initialValue", "searchTimes", "rowLabel"];
2
+ var _excluded = ["warehouseId", "initialValue", "searchTimes", "rowLabel", "isAutoGenerate"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -51,6 +51,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
51
51
  searchTimes = _props$searchTimes === void 0 ? 300 : _props$searchTimes,
52
52
  _props$rowLabel = props.rowLabel,
53
53
  rowLabel = _props$rowLabel === void 0 ? 'warehouseAreaCode' : _props$rowLabel,
54
+ _props$isAutoGenerate = props.isAutoGenerate,
55
+ isAutoGenerate = _props$isAutoGenerate === void 0 ? null : _props$isAutoGenerate,
54
56
  restProps = _objectWithoutProperties(props, _excluded);
55
57
  var _useState = useState(),
56
58
  _useState2 = _slicedToArray(_useState, 2),
@@ -70,7 +72,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
70
72
  setLoading(true);
71
73
  getWarehouseAreaList({
72
74
  id: initialValue,
73
- warehouseId: warehouseId
75
+ warehouseId: warehouseId,
76
+ isAutoGenerate: isAutoGenerate
74
77
  }).then(function (res) {
75
78
  if (res !== null && res !== void 0 && res.length && res[0].id) {
76
79
  setAreaList(res);
@@ -82,21 +85,22 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
82
85
  setLoading(false);
83
86
  });
84
87
  }
85
- }, [initialValue, props.initSelectValue, props.value, rowLabel, warehouseId]);
88
+ }, [initialValue, isAutoGenerate, props.initSelectValue, props.value, rowLabel, warehouseId]);
86
89
  var onSearch = useCallback(function (sValue) {
87
90
  if (timerRef.current) clearTimeout(timerRef.current);
88
91
  timerRef.current = setTimeout(function () {
89
92
  setLoading(true);
90
93
  getWarehouseAreaList({
91
94
  warehouseId: warehouseId,
92
- warehouseAreaCode: trim(sValue)
95
+ warehouseAreaCode: trim(sValue),
96
+ isAutoGenerate: isAutoGenerate
93
97
  }).then(function (res) {
94
98
  setAreaList(res);
95
99
  }).finally(function () {
96
100
  setLoading(false);
97
101
  });
98
102
  }, searchTimes);
99
- }, [searchTimes, warehouseId]);
103
+ }, [isAutoGenerate, searchTimes, warehouseId]);
100
104
  return /*#__PURE__*/_jsx(TableSelectBase, _objectSpread(_objectSpread({
101
105
  ref: ref
102
106
  }, restProps), {}, {
@@ -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 | 3 | 1 | 4 | 2 | 5;
12
+ orderType: 0 | 2 | 1 | 4 | 3 | 5;
13
13
  isFirstLoad: boolean;
14
14
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
15
15
  export default _default;
@@ -46,4 +46,4 @@ export declare const BiuTableSelect: React.MemoExoticComponent<React.ForwardRefE
46
46
  * 转换下绑定到组件上的数据源
47
47
  */
48
48
  dataOption?: ((value: Record<string, any>) => Record<string, any>[]) | undefined;
49
- } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "dataSource" | "onRow"> & React.RefAttributes<unknown>>>;
49
+ } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "onRow" | "dataSource"> & React.RefAttributes<unknown>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.1.53",
3
+ "version": "4.1.54",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",