wt-enjoy-link-antd-repack 4.1.46 → 4.1.48

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>>>;
@@ -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?: "" | "warning" | "error" | "success" | "validating" | undefined;
5
+ status?: "" | "success" | "warning" | "error" | "validating" | undefined;
6
6
  };
7
7
  }>;
@@ -92,6 +92,9 @@ var UnSubDepartSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functio
92
92
  treeDataSimpleMode: true,
93
93
  autoClearSearchValue: true,
94
94
  dropdownMatchSelectWidth: false,
95
+ getPopupContainer: function getPopupContainer() {
96
+ return document.body;
97
+ },
95
98
  onChange: setState,
96
99
  value: !treeData || treeData.length <= 0 ? undefined : state,
97
100
  allowClear: allowClear,
@@ -142,15 +145,15 @@ var SubDepartSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function
142
145
  width: 'calc(100% - 80px)'
143
146
  },
144
147
  treeData: treeData,
145
- getPopupContainer: function getPopupContainer(node) {
146
- return node.parentNode;
147
- },
148
148
  disabled: disabled,
149
149
  treeDataSimpleMode: true,
150
150
  autoClearSearchValue: true,
151
151
  treeDefaultExpandAll: true,
152
152
  treeNodeFilterProp: 'title',
153
153
  dropdownMatchSelectWidth: false,
154
+ getPopupContainer: function getPopupContainer() {
155
+ return document.body;
156
+ },
154
157
  onChange: setState,
155
158
  loading: loading,
156
159
  value: !treeData || treeData.length <= 0 || !state || state == null ? undefined : +state,
@@ -213,14 +216,14 @@ var InSubDepartSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functio
213
216
  }), {}, {
214
217
  treeData: treeData,
215
218
  treeDefaultExpandAll: true,
216
- getPopupContainer: function getPopupContainer(node) {
217
- return node.parentNode;
218
- },
219
219
  treeNodeFilterProp: 'title',
220
220
  disabled: disabled,
221
221
  treeDataSimpleMode: true,
222
222
  autoClearSearchValue: true,
223
223
  dropdownMatchSelectWidth: false,
224
+ getPopupContainer: function getPopupContainer() {
225
+ return document.body;
226
+ },
224
227
  onChange: setState,
225
228
  value: !treeData || treeData.length <= 0 ? undefined : state,
226
229
  allowClear: allowClear
@@ -266,7 +269,9 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
266
269
  _useBoolean2$ = _useBoolean2[1],
267
270
  setFalse = _useBoolean2$.setFalse,
268
271
  setTrue = _useBoolean2$.setTrue;
269
- var _useLocalStorageState = useLocalStorageState(BUBU100_CACHE_USERINFO_KEY),
272
+ var _useLocalStorageState = useLocalStorageState(BUBU100_CACHE_USERINFO_KEY, {
273
+ listenStorageChange: true
274
+ }),
270
275
  _useLocalStorageState2 = _slicedToArray(_useLocalStorageState, 1),
271
276
  linkUserInfo = _useLocalStorageState2[0];
272
277
 
@@ -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 | 3 | 5 | 4;
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>, "allowClear" | "showSearch"> & Pick<TableProps<any>, "onRow" | "dataSource"> & React.RefAttributes<unknown>>>;
@@ -10,4 +10,4 @@ export interface BiuVirtualTablePropsType {
10
10
  y: number;
11
11
  };
12
12
  }
13
- export declare const BiuVirtualTable: React.MemoExoticComponent<React.ForwardRefExoticComponent<BiuVirtualTablePropsType & Omit<TableProps<any>, "scroll" | "columns"> & React.RefAttributes<unknown>>>;
13
+ export declare const BiuVirtualTable: React.MemoExoticComponent<React.ForwardRefExoticComponent<BiuVirtualTablePropsType & Omit<TableProps<any>, "columns" | "scroll"> & React.RefAttributes<unknown>>>;
@@ -7,7 +7,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { useLocalStorageState } from 'ahooks';
8
8
  import { BUBU100_CACHE_SYSTEM_KEY } from "../constant";
9
9
  export var useCurrentSystem = function useCurrentSystem() {
10
- var _useLocalStorageState = useLocalStorageState(BUBU100_CACHE_SYSTEM_KEY),
10
+ var _useLocalStorageState = useLocalStorageState(BUBU100_CACHE_SYSTEM_KEY, {
11
+ listenStorageChange: true
12
+ }),
11
13
  _useLocalStorageState2 = _slicedToArray(_useLocalStorageState, 2),
12
14
  currentSystem = _useLocalStorageState2[0],
13
15
  setCurrentSystem = _useLocalStorageState2[1];
@@ -7,7 +7,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { useLocalStorageState } from 'ahooks';
8
8
  import { BUBU100_CACHE_USERINFO_KEY } from "../constant";
9
9
  export var useUserInfo = function useUserInfo() {
10
- var _useLocalStorageState = useLocalStorageState(BUBU100_CACHE_USERINFO_KEY),
10
+ var _useLocalStorageState = useLocalStorageState(BUBU100_CACHE_USERINFO_KEY, {
11
+ listenStorageChange: true
12
+ }),
11
13
  _useLocalStorageState2 = _slicedToArray(_useLocalStorageState, 2),
12
14
  userInfo = _useLocalStorageState2[0],
13
15
  setUserInfo = _useLocalStorageState2[1];
@@ -7,7 +7,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { useLocalStorageState } from 'ahooks';
8
8
  import { BUBU100_CACHE_WAREINFO_KEY } from "../constant";
9
9
  export var useWareInfo = function useWareInfo() {
10
- var _useLocalStorageState = useLocalStorageState(BUBU100_CACHE_WAREINFO_KEY),
10
+ var _useLocalStorageState = useLocalStorageState(BUBU100_CACHE_WAREINFO_KEY, {
11
+ listenStorageChange: true
12
+ }),
11
13
  _useLocalStorageState2 = _slicedToArray(_useLocalStorageState, 2),
12
14
  warehouseInfo = _useLocalStorageState2[0],
13
15
  setWarehouseInfo = _useLocalStorageState2[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.1.46",
3
+ "version": "4.1.48",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",