wt-enjoy-link-antd-repack 4.1.36 → 4.1.37

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.
Files changed (63) hide show
  1. package/dist/esm/component/BiuAButton/index.d.ts +4 -4
  2. package/dist/esm/component/BiuAButton/index.js +1 -1
  3. package/dist/esm/component/BiuACard/index.js +1 -1
  4. package/dist/esm/component/BiuACascader/index.js +1 -1
  5. package/dist/esm/component/BiuADatePicker/index.js +3 -3
  6. package/dist/esm/component/BiuAForm/index.js +1 -1
  7. package/dist/esm/component/BiuAInput/index.js +5 -5
  8. package/dist/esm/component/BiuASelect/index.js +1 -1
  9. package/dist/esm/component/BiuASwitch/index.js +1 -1
  10. package/dist/esm/component/BiuATimePicker/index.js +1 -1
  11. package/dist/esm/component/BiuATreeSelect/index.js +1 -1
  12. package/dist/esm/component/BiuBar/index.d.ts +3 -3
  13. package/dist/esm/component/BiuBar/index.js +2 -1
  14. package/dist/esm/component/BiuComSelect/index.d.ts +3 -8
  15. package/dist/esm/component/BiuComSelect/index.js +14 -12
  16. package/dist/esm/component/BiuCustomSelect/index.d.ts +2 -2
  17. package/dist/esm/component/BiuCustomerOperCard/index.d.ts +2 -2
  18. package/dist/esm/component/BiuCustomerOperCard/type.d.ts +4 -4
  19. package/dist/esm/component/BiuDescriptions/index.d.ts +2 -2
  20. package/dist/esm/component/BiuDetailDrawer/index.js +1 -1
  21. package/dist/esm/component/BiuDivider/index.js +1 -1
  22. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.js +11 -9
  23. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.js +1 -1
  24. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +1 -1
  25. package/dist/esm/component/BiuField/component/businessdistrictselect.d.ts +2 -2
  26. package/dist/esm/component/BiuField/component/businessdistrictselect.js +1 -1
  27. package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +1 -1
  28. package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +1 -1
  29. package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +1 -1
  30. package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +1 -1
  31. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +1 -1
  32. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +1 -1
  33. package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +1 -1
  34. package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +1 -1
  35. package/dist/esm/component/BiuField/component/lpnSelect.js +3 -0
  36. package/dist/esm/component/BiuField/component/lpnSelectNew.js +4 -3
  37. package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +1 -1
  38. package/dist/esm/component/BiuField/component/parkSelect.d.ts +1 -1
  39. package/dist/esm/component/BiuField/component/personnelinfoselect.js +1 -1
  40. package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +2 -2
  41. package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +1 -1
  42. package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +1 -1
  43. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +1 -1
  44. package/dist/esm/component/BiuForm/index.js +2 -1
  45. package/dist/esm/component/BiuForm/utils.js +1 -0
  46. package/dist/esm/component/BiuMapSelectSite/index.js +2 -0
  47. package/dist/esm/component/BiuModal/index.js +1 -1
  48. package/dist/esm/component/BiuOperForm/index.js +3 -2
  49. package/dist/esm/component/BiuOperTable/index.js +1 -1
  50. package/dist/esm/component/BiuPagination/index.js +1 -1
  51. package/dist/esm/component/BiuResizeTable/index.less +15 -15
  52. package/dist/esm/component/BiuSplit/index.js +4 -4
  53. package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +2 -2
  54. package/dist/esm/component/BiuTable/hooks/useFetchData.d.ts +2 -2
  55. package/dist/esm/component/BiuTableLink/index.d.ts +2 -2
  56. package/dist/esm/component/BiuTableSelect/index.d.ts +1 -1
  57. package/dist/esm/component/BiuTabs/index.js +1 -1
  58. package/dist/esm/component/BiuVirtualTable/index.d.ts +3 -11
  59. package/dist/esm/component/BiuVirtualTable/index.js +1 -0
  60. package/dist/esm/hooks/useLayoutInfo.d.ts +2 -2
  61. package/dist/esm/hooks/useReducerState.js +3 -1
  62. package/dist/esm/package/requestWrapper/index.js +5 -3
  63. package/package.json +57 -57
@@ -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>, "onClick" | "type"> & {
6
+ } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
7
7
  htmlType?: "button" | "submit" | "reset" | undefined;
8
8
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
9
- } & Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<Partial<{
9
+ } & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & 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>, "onClick" | "type"> & {
13
+ } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
14
14
  htmlType?: "button" | "submit" | "reset" | undefined;
15
15
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
16
- } & Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">> & React.RefAttributes<HTMLElement>> & {
16
+ } & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
17
17
  Group: React.FC<import("antd/lib/button").ButtonGroupProps>;
18
18
  }, keyof React.Component<any, {}, any>>>;
@@ -4,5 +4,5 @@ import { styled } from 'styled-components';
4
4
  var StyledAButton = styled(Button).withConfig({
5
5
  displayName: "StyledAButton",
6
6
  componentId: "wt-enjoy-link-antd-repack__sc-1r2pes0-0"
7
- })(["height:26px !important;&:not(.ant-btn-circle){border-radius:3px !important;padding:0 15px !important;}&.ant-btn-primary{background:#0470fe;border-color:none;color:#ffffff;&:hover{background:#478bff;}&:active{background:#305fd6;}&[disabled]{background:#fafafa !important;color:#c8c8c8 !important;border:1px solid #d6d6d6 !important;}}&.ant-btn-default{border-color:#d6d6d6;background:#ffffff;color:#333333;&:hover{color:#478bff;border-color:#478bff;}&:active{color:#305fd6;border-color:#305fd6;}&[disabled]{background:#fafafa !important;color:#c8c8c8 !important;border:1px solid #d6d6d6 !important;}}&.ant-btn-background-ghost{border-color:#4578f8;background:#ffffff;color:#4578f8;&:hover{color:#478bff;border-color:#478bff;}&:active{color:#305fd6;border-color:#305fd6;}&[disabled]{background:#fafafa !important;color:#c8c8c8 !important;border:1px solid #d6d6d6 !important;}}&.ant-btn-link{color:#0470fe;&:hover{color:#478bff;}&:active{color:#305fd6;}&[disabled]{color:#c8c8c8 !important;}}&.ant-btn-dangerous{background:#ffffff !important;border:1px solid #ff4d4f !important;color:#ff4d4f !important;&:active{border:1px solid #ff7072 !important;color:#ff7072;}&:active{color:#e63739;border-color:#e63739;}&[disabled]{border:1px solit #D6D6D6 !important;color:#C8C8C8 !important;background:#FAFAFA !important;}}"]);
7
+ })(["height:26px !important;&:not(.ant-btn-circle){border-radius:3px !important;padding:0 15px !important;}&.ant-btn-primary{background:#0470fe;border-color:none;color:#ffffff;&:hover{background:#478bff;}&:active{background:#305fd6;}&[disabled]{background:#fafafa !important;color:#c8c8c8 !important;border:1px solid #d6d6d6 !important;}}&.ant-btn-default{border-color:#d6d6d6;background:#ffffff;color:#333333;&:hover{color:#478bff;border-color:#478bff;}&:active{color:#305fd6;border-color:#305fd6;}&[disabled]{background:#fafafa !important;color:#c8c8c8 !important;border:1px solid #d6d6d6 !important;}}&.ant-btn-background-ghost{border-color:#4578f8;background:#ffffff;color:#4578f8;&:hover{color:#478bff;border-color:#478bff;}&:active{color:#305fd6;border-color:#305fd6;}&[disabled]{background:#fafafa !important;color:#c8c8c8 !important;border:1px solid #d6d6d6 !important;}}&.ant-btn-link{color:#0470fe;&:hover{color:#478bff;}&:active{color:#305fd6;}&[disabled]{color:#c8c8c8 !important;}}&.ant-btn-dangerous{background:#ffffff !important;border:1px solid #ff4d4f !important;color:#ff4d4f !important;&:active{border:1px solid #ff7072 !important;color:#ff7072;}&:active{color:#e63739;border-color:#e63739;}&[disabled]{border:1px solit #d6d6d6 !important;color:#c8c8c8 !important;background:#fafafa !important;}}"]);
8
8
  export var BiuAButton = /*#__PURE__*/React.memo(StyledAButton);
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { styled } from 'styled-components';
4
4
  var StyledCard = styled(Card).withConfig({
5
5
  displayName: "StyledCard",
6
- componentId: "enjoy-link-antd-repack__sc-wi6mz7-0"
6
+ componentId: "wt-enjoy-link-antd-repack__sc-kesb5l-0"
7
7
  })(["height:100% !important;.ant-card-head{padding:0 12px !important;}.ant-card-head-title{padding:12px 0 !important;}.ant-card-body{padding:12px !important;}"]);
8
8
  export var BiuACard = /*#__PURE__*/React.memo(StyledCard);
9
9
  BiuACard.displayName = 'BiuACard';
@@ -3,6 +3,6 @@ import React from 'react';
3
3
  import { styled } from 'styled-components';
4
4
  var StyledCascader = styled(Cascader).withConfig({
5
5
  displayName: "StyledCascader",
6
- componentId: "enjoy-link-antd-repack__sc-lzm8za-0"
6
+ componentId: "wt-enjoy-link-antd-repack__sc-q3858j-0"
7
7
  })([".ant-select-selector{height:26px !important;}.ant-select-selection-search-input{height:26px !important;}.ant-select-selection-item{line-height:26px !important;}"]);
8
8
  export var BiuACascader = /*#__PURE__*/React.memo(StyledCascader);
@@ -3,15 +3,15 @@ import React from 'react';
3
3
  import { styled } from 'styled-components';
4
4
  var StyledDatePicker = styled(DatePicker).withConfig({
5
5
  displayName: "StyledDatePicker",
6
- componentId: "enjoy-link-antd-repack__sc-o8yhr1-0"
6
+ componentId: "wt-enjoy-link-antd-repack__sc-2p5pq8-0"
7
7
  })(["height:28px !important;"]);
8
8
  var StyledMonthPicker = styled(DatePicker.MonthPicker).withConfig({
9
9
  displayName: "StyledMonthPicker",
10
- componentId: "enjoy-link-antd-repack__sc-o8yhr1-1"
10
+ componentId: "wt-enjoy-link-antd-repack__sc-2p5pq8-1"
11
11
  })(["height:28px !important;"]);
12
12
  var StyledRangePicker = styled(DatePicker.RangePicker).withConfig({
13
13
  displayName: "StyledRangePicker",
14
- componentId: "enjoy-link-antd-repack__sc-o8yhr1-2"
14
+ componentId: "wt-enjoy-link-antd-repack__sc-2p5pq8-2"
15
15
  })(["height:28px !important;"]);
16
16
  export var BiuADatePicker = /*#__PURE__*/React.memo(StyledDatePicker);
17
17
  export var BiuAMouthPicker = /*#__PURE__*/React.memo(StyledMonthPicker);
@@ -4,7 +4,7 @@ import { styled } from 'styled-components';
4
4
  export { Form as BiuAForm } from 'antd';
5
5
  var StyledFormItem = styled(Form.Item).withConfig({
6
6
  displayName: "StyledFormItem",
7
- componentId: "enjoy-link-antd-repack__sc-1ura5sk-0"
7
+ componentId: "wt-enjoy-link-antd-repack__sc-1cg3xf-0"
8
8
  })(["margin:5px 0 !important;padding:0 4px !important;.ant-form-item-no-colon{height:28px !important;}.ant-form-item-explain{display:none !important;}.ant-select-disabled .ant-select-selection-item{color:#000 !important;}.ant-input-disabled{color:#000 !important;}.ant-picker-input > input[disabled]{color:#000 !important;}.ant-input-affix-wrapper-disabled .ant-input[disabled]{color:#000 !important;}"]);
9
9
  export var BiuAFormItem = /*#__PURE__*/React.memo(StyledFormItem);
10
10
  BiuAFormItem.displayName = 'BiuAFormItem';
@@ -3,23 +3,23 @@ import React from 'react';
3
3
  import { styled } from 'styled-components';
4
4
  var StyledInput = styled(Input).withConfig({
5
5
  displayName: "StyledInput",
6
- componentId: "enjoy-link-antd-repack__sc-1gwswzd-0"
6
+ componentId: "wt-enjoy-link-antd-repack__sc-onod1k-0"
7
7
  })(["height:28px !important;.ant-input-wrapper{height:26px !important;.ant-input{height:26px !important;}.ant-input-suffix{height:26px !important;}}"]);
8
8
  var StyledInputNumber = styled(InputNumber).withConfig({
9
9
  displayName: "StyledInputNumber",
10
- componentId: "enjoy-link-antd-repack__sc-1gwswzd-1"
10
+ componentId: "wt-enjoy-link-antd-repack__sc-onod1k-1"
11
11
  })(["height:28px !important;.ant-input-number-input-wrap{height:26px !important;}.ant-input-number-input{height:26px !important;}"]);
12
12
  var StyledInputPassword = styled(Input.Password).withConfig({
13
13
  displayName: "StyledInputPassword",
14
- componentId: "enjoy-link-antd-repack__sc-1gwswzd-2"
14
+ componentId: "wt-enjoy-link-antd-repack__sc-onod1k-2"
15
15
  })(["height:28px !important;.ant-input-number-input-wrap{height:26px !important;}.ant-input-number-input{height:26px !important;}"]);
16
16
  var StyledInputSearch = styled(Input.Search).withConfig({
17
17
  displayName: "StyledInputSearch",
18
- componentId: "enjoy-link-antd-repack__sc-1gwswzd-3"
18
+ componentId: "wt-enjoy-link-antd-repack__sc-onod1k-3"
19
19
  })(["height:28px !important;.ant-input-wrapper{height:28px !important;.ant-input{height:28px !important;}}.ant-input-search-button{height:28px !important;}"]);
20
20
  var StyledAutoComplete = styled(AutoComplete).withConfig({
21
21
  displayName: "StyledAutoComplete",
22
- componentId: "enjoy-link-antd-repack__sc-1gwswzd-4"
22
+ componentId: "wt-enjoy-link-antd-repack__sc-onod1k-4"
23
23
  })([".ant-select-selector{height:28px !important;}.ant-select-selection-search-input{height:26px !important;}"]);
24
24
  export var BiuAInput = /*#__PURE__*/React.memo(StyledInput);
25
25
  BiuAInput.displayName = 'BiuAInput';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { styled } from 'styled-components';
4
4
  var StyledSelect = styled(Select).withConfig({
5
5
  displayName: "StyledSelect",
6
- componentId: "enjoy-link-antd-repack__sc-144xri5-0"
6
+ componentId: "wt-enjoy-link-antd-repack__sc-1qcxzul-0"
7
7
  })([".ant-select-selector{height:28px !important;.ant-select-selection-overflow{.ant-select-selection-overflow-item{.ant-select-selection-item{height:16px !important;line-height:16px !important;}.ant-select-selection-search-input{height:16px !important;line-height:16px !important;}}}}.ant-select-selection-search-input{height:26px !important;}.ant-select-selection-placeholder{line-height:26px !important;}.ant-select-selection-item{height:26px !important;line-height:26px !important;}.ant-select-selection-overflow-item{height:100% !important;}.ant-select-selection-search{height:100% !important;}"]);
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { styled } from 'styled-components';
4
4
  var StyledSwitch = styled(Switch).withConfig({
5
5
  displayName: "StyledSwitch",
6
- componentId: "enjoy-link-antd-repack__sc-a84yqt-0"
6
+ componentId: "wt-enjoy-link-antd-repack__sc-1fmmvk4-0"
7
7
  })(["margin:6px 0 !important;"]);
8
8
  export var BiuASwitch = /*#__PURE__*/React.memo(StyledSwitch);
9
9
  BiuASwitch.displayName = 'BiuASwitch';
@@ -3,6 +3,6 @@ import React from 'react';
3
3
  import { styled } from 'styled-components';
4
4
  var StyledTimePicker = styled(TimePicker).withConfig({
5
5
  displayName: "StyledTimePicker",
6
- componentId: "enjoy-link-antd-repack__sc-kukhg4-0"
6
+ componentId: "wt-enjoy-link-antd-repack__sc-bpju6w-0"
7
7
  })(["height:28px !important;"]);
8
8
  export var BiuATimePicker = /*#__PURE__*/React.memo(StyledTimePicker);
@@ -3,6 +3,6 @@ import React from 'react';
3
3
  import { styled } from 'styled-components';
4
4
  var StyledTreeSelect = styled(TreeSelect).withConfig({
5
5
  displayName: "StyledTreeSelect",
6
- componentId: "enjoy-link-antd-repack__sc-1hoq833-0"
6
+ componentId: "wt-enjoy-link-antd-repack__sc-3at3qx-0"
7
7
  })([".ant-select-selector{height:28px !important;.ant-select-selection-overflow{.ant-select-selection-overflow-item{.ant-select-selection-item{height:16px !important;line-height:16px !important;}.ant-select-selection-search-input{height:16px !important;line-height:16px !important;}}}}.ant-select-selection-search-input{height:26px !important;}.ant-select-selection-placeholder{line-height:26px !important;}.ant-select-selection-item{line-height:26px !important;}"]);
8
8
  export var BiuATreeSelect = /*#__PURE__*/React.memo(StyledTreeSelect);
@@ -1,13 +1,13 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import React from 'react';
3
- export type BiuBarPropsType = {
3
+ export interface BiuBarPropsType {
4
4
  style?: CSSProperties;
5
5
  value?: any;
6
- } & Record<string, string>;
6
+ }
7
7
  /**
8
8
  * 条形码封装组件
9
9
  * 提取 WMS 组件
10
10
  * @param props 定义条形码样式以及值
11
11
  * @returns
12
12
  */
13
- export declare const BiuBar: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<BiuBarPropsType, "ref"> & React.RefAttributes<unknown>>>;
13
+ export declare const BiuBar: React.MemoExoticComponent<React.ForwardRefExoticComponent<BiuBarPropsType & React.RefAttributes<unknown>>>;
@@ -18,7 +18,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
18
18
  */
19
19
  export var BiuBar = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  var value = props.value,
21
- style = props.style,
21
+ _props$style = props.style,
22
+ style = _props$style === void 0 ? {} : _props$style,
22
23
  codeOptions = _objectWithoutProperties(props, _excluded);
23
24
  var toJsBarcode = useCallback(function (barcode) {
24
25
  JsBarcode(barcode, value, _objectSpread({
@@ -3,12 +3,12 @@ import React from 'react';
3
3
  /**
4
4
  * 字典传入类型定义
5
5
  */
6
- export type BiuComSelectPropsType = {
6
+ export interface BiuComSelectPropsType {
7
7
  value?: string | string[] | number | number[];
8
8
  loginCode?: string;
9
9
  isForce?: boolean;
10
10
  isVaild?: boolean;
11
- } & SelectProps<any>;
11
+ }
12
12
  /**
13
13
  * WMS 货主选择组件
14
14
  * 在系统为 WMS 时,需要强制进行货主选择
@@ -16,9 +16,4 @@ export type BiuComSelectPropsType = {
16
16
  * @param props 设置是否页面级提示,绑定值
17
17
  * @returns
18
18
  */
19
- export declare const BiuComSelect: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
20
- value?: string | number | number[] | string[] | undefined;
21
- loginCode?: string | undefined;
22
- isForce?: boolean | undefined;
23
- isVaild?: boolean | undefined;
24
- } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
19
+ export declare const BiuComSelect: React.MemoExoticComponent<React.ForwardRefExoticComponent<BiuComSelectPropsType & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -47,18 +47,20 @@ export var BiuComSelect = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(funct
47
47
  warehouseList = _useState2[0],
48
48
  setWarehouseList = _useState2[1];
49
49
  useEffect(function () {
50
- if (loginCode) request({
51
- apiName: 'wms.mdm.warhouseSimpleList',
52
- data: {
53
- loginCode: loginCode
54
- },
55
- requestConfig: {
56
- GatewayRoute: GATEWAY_ROUTE_MDM
57
- },
58
- showNotification: isVaild
59
- }).then(function (res) {
60
- setWarehouseList(_toConsumableArray(res || []));
61
- });
50
+ if (loginCode) {
51
+ request({
52
+ apiName: 'wms.mdm.warhouseSimpleList',
53
+ data: {
54
+ loginCode: loginCode
55
+ },
56
+ requestConfig: {
57
+ GatewayRoute: GATEWAY_ROUTE_MDM
58
+ },
59
+ showNotification: isVaild
60
+ }).then(function (res) {
61
+ setWarehouseList(_toConsumableArray(res || []));
62
+ });
63
+ }
62
64
  }, [isVaild, loginCode]);
63
65
  useEffect(function () {
64
66
  if (warehouseList && Array.isArray(warehouseList) && warehouseList.length === 1) {
@@ -2,10 +2,10 @@ import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  import type { RequestConfig } from "../../package";
4
4
  type ValueType = string | string[] | number | number[];
5
- export type SelectOption = {
5
+ export interface SelectOption {
6
6
  label: string;
7
7
  value: string | number;
8
- };
8
+ }
9
9
  export declare const BiuCustomSelect: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
10
10
  requestName?: string | undefined;
11
11
  requestParams?: Record<string, any> | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { ButtonProps } from 'antd';
2
2
  import React from 'react';
3
- export type OperCardProps = {
3
+ export interface OperCardProps {
4
4
  children?: React.ReactNode;
5
5
  onSubmit?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
6
6
  onSubmitKeep?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
@@ -12,7 +12,7 @@ export type OperCardProps = {
12
12
  submitButtonProps?: ButtonProps;
13
13
  submitKeepButtonProps?: ButtonProps;
14
14
  cancelButtonProps?: ButtonProps;
15
- };
15
+ }
16
16
  export declare const OperationButton: React.MemoExoticComponent<(props: OperCardProps) => import("react/jsx-runtime").JSX.Element>;
17
17
  export declare const BiuCustomerOperCard: React.MemoExoticComponent<React.ForwardRefExoticComponent<OperCardProps & React.RefAttributes<unknown>>>;
18
18
  export * from './type';
@@ -22,7 +22,7 @@ type spanTypes = {
22
22
  span: number;
23
23
  };
24
24
  };
25
- export type FormItemOptions = {
25
+ export interface FormItemOptions {
26
26
  formItemType?: BiuFieldType | 'slot';
27
27
  generalCustomElement?: (props?: FormItemOptions) => any;
28
28
  label?: React.ReactNode;
@@ -41,7 +41,7 @@ export type FormItemOptions = {
41
41
  span?: number | spanTypes;
42
42
  width?: number;
43
43
  [x: string]: any;
44
- };
44
+ }
45
45
  /**
46
46
  * 可编辑表格列配置详细信息
47
47
  */
@@ -104,7 +104,7 @@ export type CustomerGoodsTableProps<T = any> = {
104
104
  hideAdd?: boolean;
105
105
  tabH?: number;
106
106
  } & FormProps;
107
- export type OperRowType = {
107
+ export interface OperRowType {
108
108
  weight: number;
109
109
  volume: number;
110
110
  numberTotal: number;
@@ -113,5 +113,5 @@ export type OperRowType = {
113
113
  secondCount: number;
114
114
  thirdCount: number;
115
115
  goodsPrice: number;
116
- };
116
+ }
117
117
  export {};
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- export type BiuDescriptionsPropsType = {
2
+ export interface BiuDescriptionsPropsType {
3
3
  title?: string;
4
4
  dataOptions?: {
5
5
  label: string;
6
6
  data: string;
7
7
  }[];
8
- };
8
+ }
9
9
  export declare const BiuDescriptions: React.MemoExoticComponent<({ dataOptions, title }: BiuDescriptionsPropsType) => import("react/jsx-runtime").JSX.Element>;
@@ -16,7 +16,7 @@ import { OperationButton } from "./..";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  var StyledDrawer = styled(Drawer).withConfig({
18
18
  displayName: "StyledDrawer",
19
- componentId: "enjoy-link-antd-repack__sc-17fu2fz-0"
19
+ componentId: "wt-enjoy-link-antd-repack__sc-1mx7aeu-0"
20
20
  })([".ant-drawer-header{padding:12px 4px !important;font-size:14px !important;font-weight:bold !important;}.ant-drawer-body{padding:0px 8px !important;}"]);
21
21
  export var BiuDetailDrawer = /*#__PURE__*/React.memo(function (props) {
22
22
  var footer = props.footer,
@@ -25,5 +25,5 @@ export var BiuDivider = styled( /*#__PURE__*/React.memo(function (props) {
25
25
  });
26
26
  })).withConfig({
27
27
  displayName: "BiuDivider",
28
- componentId: "enjoy-link-antd-repack__sc-m2w5dh-0"
28
+ componentId: "wt-enjoy-link-antd-repack__sc-1jgxyke-0"
29
29
  })(["width:100%;padding:2px 2px;font-weight:bold;font-size:14px;line-height:22px;margin:5px 0;box-shadow:0px 1px 2px -2px rgba(0,0,0,0.16);"]);
@@ -20,11 +20,13 @@ export default (function (_ref, _ref2) {
20
20
  setState = _useState2[1];
21
21
  var InChangeTrigger = useCallback(function (data) {
22
22
  if (!data) return data;
23
- if (multiple) return "".concat(data).split(',').map(function (n) {
24
- return {
25
- value: !Number.isNaN(+n) ? +n : undefined
26
- };
27
- });
23
+ if (multiple) {
24
+ return "".concat(data).split(',').map(function (n) {
25
+ return {
26
+ value: !Number.isNaN(+n) ? +n : undefined
27
+ };
28
+ });
29
+ }
28
30
  if (!Number.isNaN(+data)) return +data;
29
31
  return undefined;
30
32
  }, [multiple]);
@@ -56,15 +58,15 @@ export default (function (_ref, _ref2) {
56
58
  /**
57
59
  * 内部初始化默认值,需要给外面一份
58
60
  */
59
- if (Array.isArray(inValue) && ((_inValue$ = inValue[0]) === null || _inValue$ === void 0 ? void 0 : _inValue$.value) === +defaultValue) {
60
- if (onChange) onChange(OutChangeTrigger(inValue));
61
+ if (Array.isArray(inValue) && ((_inValue$ = inValue[0]) === null || _inValue$ === void 0 ? void 0 : _inValue$.value) === +defaultValue && onChange) {
62
+ onChange(OutChangeTrigger(inValue));
61
63
  }
62
64
  } else {
63
65
  /**
64
66
  * 同上
65
67
  */
66
- if (inValue === +defaultValue) {
67
- if (onChange) onChange(OutChangeTrigger(inValue));
68
+ if (inValue === +defaultValue && onChange) {
69
+ onChange(OutChangeTrigger(inValue));
68
70
  }
69
71
  }
70
72
  setState(function (ss) {
@@ -23,7 +23,7 @@ export var filterDataSource = function filterDataSource(treeData, filterID) {
23
23
  treeData.forEach(function (_ref) {
24
24
  var id = _ref.id,
25
25
  pId = _ref.pId;
26
- return keyMappding[id] = pId;
26
+ keyMappding[id] = pId;
27
27
  });
28
28
  var showDataSource = treeData.filter(function (n) {
29
29
  return filterID.includes(n.id);
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  id?: string | undefined;
5
5
  ownerId?: string | undefined;
6
- value?: string | number | number[] | string[] | undefined;
6
+ value?: string | number | string[] | number[] | undefined;
7
7
  noOwnerContent?: string | undefined;
8
8
  } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "onChange"> & React.RefAttributes<unknown>>>;
9
9
  export default _default;
@@ -2,7 +2,7 @@ import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  import type { RequestConfig } from "../../../package";
4
4
  type ValueType = string | string[] | number | number[];
5
- export type SelectOption = {
5
+ export interface SelectOption {
6
6
  /** id */
7
7
  id: number;
8
8
  /** 商圈名称 */
@@ -13,7 +13,7 @@ export type SelectOption = {
13
13
  postName: string;
14
14
  /** 商圈编码 */
15
15
  busDistrictCode: number;
16
- };
16
+ }
17
17
  /**
18
18
  * 下拉框props
19
19
  * @param requestName 请求接口名字
@@ -37,7 +37,7 @@ import { requestV2 } from "../../../package";
37
37
  import { jsx as _jsx } from "react/jsx-runtime";
38
38
  var StyledWrapper = styled.div.withConfig({
39
39
  displayName: "StyledWrapper",
40
- componentId: "enjoy-link-antd-repack__sc-133cprl-0"
40
+ componentId: "wt-enjoy-link-antd-repack__sc-1lw99kc-0"
41
41
  })([".ant-select{.ant-select-selector{.ant-select-selection-overflow{flex-wrap:nowrap !important;overflow:hidden !important;}.ant-select-selection-search{width:100% !important;}.ant-select-selection-search-input{width:100% !important;opacity:1 !important;input{opacity:1 !important;}}}}.ant-select-selection-overflow-item{display:none;flex:1;}.ant-select-selection-overflow-item.ant-select-selection-overflow-item-suffix{display:block;}"]);
42
42
  export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
43
43
  var requestName = props.requestName,
@@ -5,7 +5,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
5
5
  typename?: string | undefined;
6
6
  page?: number | undefined;
7
7
  pageSize?: number | undefined;
8
- values?: string | number | number[] | string[] | undefined;
8
+ values?: string | number | string[] | number[] | undefined;
9
9
  invalid?: number | undefined;
10
10
  queryType?: number | undefined;
11
11
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -20,7 +20,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
20
20
  /**
21
21
  * 绑定值 value: string | string[] | number | number[];
22
22
  */
23
- value?: string | number | number[] | string[] | undefined;
23
+ value?: string | number | string[] | number[] | undefined;
24
24
  invalid?: number | undefined;
25
25
  /**
26
26
  * 数据状态 invalid: number;
@@ -1,7 +1,7 @@
1
1
  import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
- value?: string | number | number[] | string[] | undefined;
4
+ value?: string | number | string[] | number[] | undefined;
5
5
  onChangeData?: ((value: any, record: any) => void) | undefined;
6
6
  type?: string | undefined;
7
7
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -7,7 +7,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
7
7
  warehouseIds?: string | undefined;
8
8
  locationCode?: string | undefined;
9
9
  warehouseAreaId?: number | undefined;
10
- value?: string | number | number[] | string[] | undefined;
10
+ value?: string | number | string[] | number[] | undefined;
11
11
  onChangeData?: ((value: any, record: any) => any) | undefined;
12
12
  areaType?: string | undefined;
13
13
  interfaceType?: string | undefined;
@@ -6,7 +6,7 @@ import React from 'react';
6
6
  * @returns
7
7
  */
8
8
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
9
- value?: string | number | number[] | string[] | undefined;
9
+ value?: string | number | string[] | number[] | undefined;
10
10
  onChangeData?: ((value: any, record: any) => void) | undefined;
11
11
  accountId: string | number;
12
12
  carrierId: string | number;
@@ -1,7 +1,7 @@
1
1
  import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
- value?: string | number | number[] | string[] | undefined;
4
+ value?: string | number | string[] | number[] | undefined;
5
5
  onChangeData?: ((value: any, record: any) => void) | undefined;
6
6
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
7
7
  export default _default;
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  id?: string | undefined;
5
5
  ownerId?: string | undefined;
6
- value?: string | number | number[] | string[] | undefined;
6
+ value?: string | number | string[] | number[] | undefined;
7
7
  noOwnerContent?: string | undefined;
8
8
  isFirstLoad?: boolean | undefined;
9
9
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -2,7 +2,7 @@ import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  dockingCode?: string | undefined;
5
- value?: string | number | number[] | string[] | undefined;
5
+ value?: string | number | string[] | number[] | undefined;
6
6
  onChangeData?: ((value: any, record: any) => void) | undefined;
7
7
  type?: string | undefined;
8
8
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -74,6 +74,9 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
74
74
  loading: loading
75
75
  }, restProps), {}, {
76
76
  onChange: function onChange(value, option) {
77
+ if (!value) {
78
+ onSearch('');
79
+ }
77
80
  if (_onChange) _onChange(value, option);
78
81
  if (onChangeData) {
79
82
  onChangeData(value, lpnData.filter(function (item) {
@@ -108,12 +108,13 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
108
108
  })[0]);
109
109
  }
110
110
  }
111
- }), !isAutoComplete && /*#__PURE__*/_jsx(BiuASelect, {
111
+ }), !isAutoComplete && /*#__PURE__*/_jsx(BiuASelect, _objectSpread(_objectSpread({
112
112
  ref: ref,
113
113
  showSearch: true,
114
114
  optionFilterProp: "children",
115
115
  loading: false,
116
- style: _objectSpread({}, style),
116
+ style: _objectSpread({}, style)
117
+ }, restProps), {}, {
117
118
  value: defaultValue,
118
119
  onChange: function onChange(values, option) {
119
120
  setDefaultValue(values);
@@ -131,6 +132,6 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
131
132
  children: e.lpn || ''
132
133
  }, e.id);
133
134
  })
134
- }, "lpnSelectNew")]
135
+ }), "lpnSelectNew")]
135
136
  });
136
137
  }));
@@ -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 | 2 | 1 | 3 | 4 | 5;
12
+ orderType: 0 | 3 | 1 | 4 | 2 | 5;
13
13
  isFirstLoad: boolean;
14
14
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
15
15
  export default _default;
@@ -4,7 +4,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
4
4
  distributionCentreCodeOrName?: string | undefined;
5
5
  page?: number | undefined;
6
6
  pageSize?: number | undefined;
7
- value?: string | number | number[] | string[] | undefined;
7
+ value?: string | number | string[] | number[] | undefined;
8
8
  companyId?: string | undefined;
9
9
  noDisContent?: string | undefined;
10
10
  isFirstLoad?: boolean | undefined;
@@ -40,7 +40,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
40
40
  import { jsxs as _jsxs } from "react/jsx-runtime";
41
41
  var StyledWrapper = styled.div.withConfig({
42
42
  displayName: "StyledWrapper",
43
- componentId: "enjoy-link-antd-repack__sc-z7klyb-0"
43
+ componentId: "wt-enjoy-link-antd-repack__sc-qnpq7c-0"
44
44
  })([".ant-select{.ant-select-selector{.ant-select-selection-overflow{flex-wrap:nowrap !important;overflow:hidden !important;}.ant-select-selection-search{width:100% !important;}.ant-select-selection-search-input{width:100% !important;opacity:1 !important;input{opacity:1 !important;}}}}.ant-select-selection-overflow-item{display:none;flex:1;}.ant-select-selection-overflow-item.ant-select-selection-overflow-item-suffix{display:block;}"]);
45
45
  export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
46
46
  var requestName = props.requestName,
@@ -1,9 +1,9 @@
1
1
  import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
- returnOwnerArray?: number[] | string[] | undefined;
4
+ returnOwnerArray?: string[] | number[] | undefined;
5
5
  serialNumber: string;
6
- value?: string | number | number[] | string[] | undefined;
6
+ value?: string | number | string[] | number[] | undefined;
7
7
  openType?: string | undefined;
8
8
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
9
9
  export default _default;
@@ -2,7 +2,7 @@ import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  warehouseId?: number | undefined;
5
- value?: string | number | number[] | string[] | undefined;
5
+ value?: string | number | string[] | number[] | undefined;
6
6
  onChangeData?: ((value: any, record: any) => void) | undefined;
7
7
  isFirstLoad?: boolean | undefined;
8
8
  } & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
@@ -2,7 +2,7 @@ import type { SelectProps } from 'antd';
2
2
  import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
4
  warehouseName?: string | undefined;
5
- value?: string | number | number[] | string[] | undefined;
5
+ value?: string | number | string[] | number[] | undefined;
6
6
  ownerId?: string | undefined;
7
7
  clientid?: string | undefined;
8
8
  employeecode?: string | undefined;
@@ -5,7 +5,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
5
5
  warehouseId?: number | undefined;
6
6
  locationCode?: string | undefined;
7
7
  warehouseAreaId?: number | undefined;
8
- value?: string | number | number[] | string[] | undefined;
8
+ value?: string | number | string[] | number[] | undefined;
9
9
  onSelectChange?: ((value: any, record: any) => any) | undefined;
10
10
  isFirstLoad?: true | undefined;
11
11
  warehouseAreaType?: string | undefined;
@@ -41,7 +41,7 @@ var FormLabelRender = /*#__PURE__*/React.memo(function (props) {
41
41
  colon = _props$colon === void 0 ? true : _props$colon,
42
42
  _props$labelAlign = props.labelAlign,
43
43
  labelAlign = _props$labelAlign === void 0 ? 'right' : _props$labelAlign;
44
- console.log("日志", colon);
44
+ console.log('日志', colon);
45
45
  return /*#__PURE__*/_jsx(Tooltip, {
46
46
  getPopupContainer: function getPopupContainer() {
47
47
  return document.body;
@@ -147,6 +147,7 @@ export var BiuForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (
147
147
  var field = '';
148
148
  if (Array.isArray(dataIndex) && dataIndex.length <= 0 || !dataIndex) return null;
149
149
  if (Array.isArray(dataIndex)) {
150
+ ;
150
151
  var _ref2 = dataIndex;
151
152
  var _ref3 = _slicedToArray(_ref2, 1);
152
153
  field = _ref3[0];
@@ -18,6 +18,7 @@ export var formatData = function formatData(data, columns) {
18
18
  var field = '';
19
19
  if (Array.isArray(dataIndex) && dataIndex.length <= 0 || !dataIndex) return;
20
20
  if (Array.isArray(dataIndex)) {
21
+ ;
21
22
  var _ref3 = dataIndex;
22
23
  var _ref4 = _slicedToArray(_ref3, 1);
23
24
  field = _ref4[0];
@@ -73,6 +73,7 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
73
73
  _defineProperty(_assertThisInitialized(_this), "isSuccess", true);
74
74
  _defineProperty(_assertThisInitialized(_this), "placeSearch", null);
75
75
  _defineProperty(_assertThisInitialized(_this), "init", function () {
76
+ ;
76
77
  window._AMapSecurityConfig = {
77
78
  securityJsCode: 'c080bcca0b7ded38b6d8cd8e6093946f'
78
79
  };
@@ -106,6 +107,7 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
106
107
  }
107
108
 
108
109
  // 影藏自带的文字
110
+ ;
109
111
  document.getElementsByClassName('amap-copyright')[0].style.visibility = 'hidden';
110
112
  });
111
113
  geocoder = new AMap.Geocoder();
@@ -24,7 +24,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
25
25
  var StyledModal = styled(Modal).withConfig({
26
26
  displayName: "StyledModal",
27
- componentId: "enjoy-link-antd-repack__sc-1ma1tg5-0"
27
+ componentId: "wt-enjoy-link-antd-repack__sc-s6226b-0"
28
28
  })(["height:", ";width:", ";max-width:", ";.react-draggable{width:100%;height:100%;}.ant-modal-content{height:", ";display:", ";flex-direction:column;}.ant-modal-body{flex:", ";}.ant-modal-header{padding:12px 20px !important;font-size:16px !important;font-weight:normal !important;}.ant-modal-body{padding:15px !important;overflow:auto !important;", "}.ant-modal-footer{padding:12px 20px !important;}.ant-btn{height:26px !important;}.ant-modal-close-x{width:50px !important;height:50px !important;line-height:50px !important;}"], function (props) {
29
29
  return props.fullScreen ? '100vh !important;' : '';
30
30
  }, function (props) {
@@ -98,7 +98,7 @@ var BiuOperFormLayout = {
98
98
  };
99
99
  var StyledLabel = styled.div.withConfig({
100
100
  displayName: "StyledLabel",
101
- componentId: "enjoy-link-antd-repack__sc-1ma45hh-0"
101
+ componentId: "wt-enjoy-link-antd-repack__sc-1q42wt-0"
102
102
  })(["font-size:14px;font-weight:normal;height:38px;line-height:38px;display:flex;flex-direction:row;text-align:right;"]);
103
103
  var FormLabelRender = /*#__PURE__*/React.memo(function (props) {
104
104
  var title = props.title,
@@ -210,7 +210,7 @@ export var BiuCustomerFormItem = /*#__PURE__*/React.memo(function (props) {
210
210
  });
211
211
  var StyledForm = styled(BiuAForm).withConfig({
212
212
  displayName: "StyledForm",
213
- componentId: "enjoy-link-antd-repack__sc-1ma45hh-1"
213
+ componentId: "wt-enjoy-link-antd-repack__sc-1q42wt-1"
214
214
  })([".ant-col{padding:0px !important;}.arco-form-item-label{font-size:14px;}.ant-form-item-label > label::after{margin:0px !important;}.ant-form-item-tooltip{padding-right:5px !important;}"]);
215
215
  export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
216
216
  var cardProps = props.cardProps,
@@ -336,6 +336,7 @@ export var BiuOperForm = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(functi
336
336
  var title = _ref3.title,
337
337
  restCardProps = _objectWithoutProperties(_ref3, _excluded5);
338
338
  if (title === undefined || title === null) {
339
+ ;
339
340
  /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, restCardProps), {}, {
340
341
  children: /*#__PURE__*/_jsx(Row, {
341
342
  children: (formOptionsArray[index] || []).filter(function (_ref4) {
@@ -35,7 +35,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
35
35
  import { jsxs as _jsxs } from "react/jsx-runtime";
36
36
  var StyledSpace = styled(Space).withConfig({
37
37
  displayName: "StyledSpace",
38
- componentId: "enjoy-link-antd-repack__sc-1yds4m9-0"
38
+ componentId: "wt-enjoy-link-antd-repack__sc-17k2get-0"
39
39
  })([".ant-btn-circle{height:24px !important;}"]);
40
40
  export var BiuOperTable = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
41
41
  var initialList = props.initialList,
@@ -16,7 +16,7 @@ import { styled } from 'styled-components';
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  var StyledPagination = styled(Pagination).withConfig({
18
18
  displayName: "StyledPagination",
19
- componentId: "enjoy-link-antd-repack__sc-wfvs3r-0"
19
+ componentId: "wt-enjoy-link-antd-repack__sc-1gugn5d-0"
20
20
  })(["height:36px !important;padding:4px 0 !important;.ant-pagination-prev{height:28px !important;line-height:28px !important;}.ant-pagination-next{height:28px !important;line-height:28px !important;}.ant-pagination-item{height:28px !important;line-height:28px !important;}.ant-pagination-options-quick-jumper{height:28px !important;line-height:28px !important;input{height:26px !important;}}.ant-pagination-options{.ant-select-selector{height:26px !important;}.ant-select-selection-item{height:26px !important;line-height:26px !important;}}"]);
21
21
  export var BiuPagination = /*#__PURE__*/React.memo(function (props) {
22
22
  var pagination = props.pagination,
@@ -1,19 +1,19 @@
1
1
  .resizeTable {
2
- :global {
3
- .react-resizable {
4
- position: relative;
5
- background-clip: padding-box;
6
- }
2
+ :global {
3
+ .react-resizable {
4
+ position: relative;
5
+ background-clip: padding-box;
6
+ }
7
7
 
8
- .react-resizable-handle {
9
- position: absolute;
10
- width: 10px;
11
- height: 100%;
12
- bottom: 0;
13
- right: -5px;
14
- cursor: col-resize;
15
- background-image: none;
16
- z-index: 1;
17
- }
8
+ .react-resizable-handle {
9
+ position: absolute;
10
+ width: 10px;
11
+ height: 100%;
12
+ bottom: 0;
13
+ right: -5px;
14
+ cursor: col-resize;
15
+ background-image: none;
16
+ z-index: 1;
18
17
  }
18
+ }
19
19
  }
@@ -8,19 +8,19 @@ import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  var StyledSplit = styled.div.withConfig({
10
10
  displayName: "StyledSplit",
11
- componentId: "enjoy-link-antd-repack__sc-1gyxjgr-0"
11
+ componentId: "wt-enjoy-link-antd-repack__sc-1uj5k39-0"
12
12
  })(["margin:0;width:100%;height:100%;display:flex;"]);
13
13
  var StyledSplitPanel = styled.div.withConfig({
14
14
  displayName: "StyledSplitPanel",
15
- componentId: "enjoy-link-antd-repack__sc-1gyxjgr-1"
15
+ componentId: "wt-enjoy-link-antd-repack__sc-1uj5k39-1"
16
16
  })(["box-sizing:border-box;overflow:auto;"]);
17
17
  var RowDivider = styled.div.withConfig({
18
18
  displayName: "RowDivider",
19
- componentId: "enjoy-link-antd-repack__sc-1gyxjgr-2"
19
+ componentId: "wt-enjoy-link-antd-repack__sc-1uj5k39-2"
20
20
  })(["border-left:1px solid #f0f0f0;width:1px;box-sizing:border-box;height:100%;"]);
21
21
  var ColumnDivider = styled.div.withConfig({
22
22
  displayName: "ColumnDivider",
23
- componentId: "enjoy-link-antd-repack__sc-1gyxjgr-3"
23
+ componentId: "wt-enjoy-link-antd-repack__sc-1uj5k39-3"
24
24
  })(["boder-top:1px solid #f0f0f0;height:1px;box-sizing:border-box;width:100%;"]);
25
25
  export var BiuSplit = /*#__PURE__*/React.memo(function (props) {
26
26
  var _props$panel = props.panel1,
@@ -1,9 +1,9 @@
1
1
  import type { RefObject } from 'react';
2
2
  import React from 'react';
3
3
  import type { BiuTableTopOperaType, BiuFormRefProps } from "../..";
4
- export type TopActionBarPropsType = {
4
+ export interface TopActionBarPropsType {
5
5
  operationOptions?: BiuTableTopOperaType[];
6
6
  formRef: RefObject<BiuFormRefProps> | null;
7
7
  dataSource?: Record<string, any>[];
8
- };
8
+ }
9
9
  export declare const TableActionBarRender: React.MemoExoticComponent<(props: TopActionBarPropsType) => import("react/jsx-runtime").JSX.Element>;
@@ -1,4 +1,4 @@
1
- export type UseFetchDataPropsType = {
1
+ export interface UseFetchDataPropsType {
2
2
  fetchData: (params: any) => Promise<any>;
3
- };
3
+ }
4
4
  export declare const useFetchData: (props: UseFetchDataPropsType) => any;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export type TableLinkPropsType = {
2
+ export interface TableLinkPropsType {
3
3
  text: string;
4
4
  onClick?: () => void;
5
5
  onCancel?: () => void;
@@ -7,5 +7,5 @@ export type TableLinkPropsType = {
7
7
  okText?: string;
8
8
  cancelText?: string;
9
9
  divider?: boolean;
10
- };
10
+ }
11
11
  export declare const BiuTableLink: React.MemoExoticComponent<(props: TableLinkPropsType) => import("react/jsx-runtime").JSX.Element>;
@@ -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>, "allowClear" | "showSearch"> & Pick<TableProps<any>, "dataSource" | "onRow"> & React.RefAttributes<unknown>>>;
49
+ } & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "dataSource" | "onRow"> & React.RefAttributes<unknown>>>;
@@ -10,7 +10,7 @@ import { styled } from 'styled-components';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  var StyledTabs = styled(Tabs).withConfig({
12
12
  displayName: "StyledTabs",
13
- componentId: "enjoy-link-antd-repack__sc-18vlyhe-0"
13
+ componentId: "wt-enjoy-link-antd-repack__sc-tg7wb4-0"
14
14
  })(["height:100% !important;.ant-tabs-nav{margin:0 !important;padding:0 8px !important;}.ant-tabs-content{height:100% !important;}.ant-tabs-tabpane{height:100% !important;}"]);
15
15
  export var BiuTabPane = Tabs.TabPane;
16
16
  export var BiuTabs = /*#__PURE__*/React.memo(function (props) {
@@ -1,7 +1,7 @@
1
1
  import type { TableProps } from 'antd';
2
2
  import React from 'react';
3
3
  import type { BiuColumnType } from "..";
4
- export type BiuVirtualTablePropsType = Omit<TableProps<any>, 'columns' | 'scroll'> & {
4
+ export interface BiuVirtualTablePropsType {
5
5
  columns: (Omit<BiuColumnType, 'width'> & {
6
6
  width: number;
7
7
  })[];
@@ -9,13 +9,5 @@ export type BiuVirtualTablePropsType = Omit<TableProps<any>, 'columns' | 'scroll
9
9
  x: number;
10
10
  y: number;
11
11
  };
12
- };
13
- export declare const BiuVirtualTable: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<TableProps<any>, "columns" | "scroll"> & {
14
- columns: (Omit<BiuColumnType, 'width'> & {
15
- width: number;
16
- })[];
17
- scroll: {
18
- x: number;
19
- y: number;
20
- };
21
- } & React.RefAttributes<unknown>>>;
12
+ }
13
+ export declare const BiuVirtualTable: React.MemoExoticComponent<React.ForwardRefExoticComponent<BiuVirtualTablePropsType & Omit<TableProps<any>, "scroll" | "columns"> & React.RefAttributes<unknown>>>;
@@ -91,6 +91,7 @@ export var BiuVirtualTable = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(fu
91
91
  var field = '';
92
92
  if (Array.isArray(dataIndex) && dataIndex.length <= 0 || !dataIndex) return null;
93
93
  if (Array.isArray(dataIndex)) {
94
+ ;
94
95
  var _ref4 = dataIndex;
95
96
  var _ref5 = _slicedToArray(_ref4, 1);
96
97
  field = _ref5[0];
@@ -1,9 +1,9 @@
1
- export type size = {
1
+ export interface size {
2
2
  width?: number;
3
3
  height?: number;
4
4
  offsetWidth?: number;
5
5
  offsetHeight?: number;
6
- };
6
+ }
7
7
  export declare const useLayoutInfo: () => [
8
8
  Record<string, any>,
9
9
  (value: Record<string, any>) => void
@@ -33,7 +33,9 @@ export function useReducerState(initialState, dispatchActions) {
33
33
  if (type === undefined) {
34
34
  return _objectSpread(_objectSpread({}, prevState), actionData);
35
35
  }
36
- if (!dispatchActions || !dispatchActions[type]) throw new Error("useReducerState\u53C2\u6570dispatchActions\u672A\u5B9A\u4E49type\u7C7B\u578B\u4E3A\u3010".concat(type, "\u3011\u7684\u51FD\u6570\uFF0C\u8BF7\u68C0\u67E5\u4EE3\u7801"));
36
+ if (!dispatchActions || !dispatchActions[type]) {
37
+ throw new Error("useReducerState\u53C2\u6570dispatchActions\u672A\u5B9A\u4E49type\u7C7B\u578B\u4E3A\u3010".concat(type, "\u3011\u7684\u51FD\u6570\uFF0C\u8BF7\u68C0\u67E5\u4EE3\u7801"));
38
+ }
37
39
  return dispatchActions[type](prevState, actionData);
38
40
  }, initialState),
39
41
  _useReducer2 = _slicedToArray(_useReducer, 2),
@@ -58,9 +58,11 @@ var generalRequestHeader = function generalRequestHeader() {
58
58
  authToken: (_getAuthToken = getAuthToken()) !== null && _getAuthToken !== void 0 ? _getAuthToken : ''
59
59
  };
60
60
  var currentWarehouse = warehouseInfo[userInfo === null || userInfo === void 0 ? void 0 : userInfo.employeecode] || {};
61
- if (currentWarehouse && currentWarehouse.id) headers = _objectSpread(_objectSpread({}, headers), {}, {
62
- warehouseId: currentWarehouse.id
63
- });
61
+ if (currentWarehouse && currentWarehouse.id) {
62
+ headers = _objectSpread(_objectSpread({}, headers), {}, {
63
+ warehouseId: currentWarehouse.id
64
+ });
65
+ }
64
66
  return headers;
65
67
  };
66
68
 
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
1
  {
2
- "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.1.36",
4
- "description": "万通业务组件",
5
- "sideEffects": false,
6
- "main": "dist/index.js",
7
- "module": "dist/esm/index.js",
8
- "typings": "dist/esm/index.d.ts",
9
- "files": [
10
- "dist"
11
- ],
12
- "scripts": {
13
- "start": "dumi dev",
14
- "start:hot-rebuild": "father dev",
15
- "build": "father build",
16
- "repack": "pnpm run build && npm publish --no-git-checks && npx cnpm sync wt-enjoy-link-antd-repack"
17
- },
18
- "dependencies": {
19
- "@amap/amap-jsapi-loader": "^1.0.1",
20
- "@ant-design/icons": "^5.3.0",
21
- "ahooks": "^3.7.9",
22
- "antd": "^4.24.14",
23
- "classnames": "^2.5.1",
24
- "dumi": "^2.2.17",
25
- "idb": "^7.1.1",
26
- "jsbarcode": "^3.11.6",
27
- "lodash": "^4.17.20",
28
- "moment": "^2.30.1",
29
- "path": "^0.12.7",
30
- "react": "^18.2.0",
31
- "react-dom": "^18.2.0",
32
- "react-drag-listview": "^2.0.0",
33
- "react-draggable": "^4.4.6",
34
- "react-resizable": "^3.0.5",
35
- "react-window": "^1.8.10",
36
- "styled-components": "^6.1.8",
37
- "umi-request": "^1.3.9",
38
- "use-media-antd-query": "^1.1.0",
39
- "xlsx": "^0.18.5"
40
- },
41
- "devDependencies": {
42
- "@types/lodash": "^4.14.202",
43
- "@types/node": "^20.11.14",
44
- "@types/react": "^18.2.48",
45
- "@types/react-dom": "^18.2.17",
46
- "@types/react-resizable": "^3.0.7",
47
- "@types/react-window": "^1.8.8",
48
- "@umijs/fabric": "^4.0.1",
49
- "eslint": "^8.54.0",
50
- "eslint-import-resolver-typescript": "^3.6.1",
51
- "eslint-plugin-import": "^2.29.0",
52
- "father": "^4.4.0",
53
- "prettier": "^3.2.4",
54
- "typescript": "^5.3.2"
55
- },
56
- "publishConfig": {
57
- "registry": "https://registry.npmjs.org"
58
- }
2
+ "name": "wt-enjoy-link-antd-repack",
3
+ "version": "4.1.37",
4
+ "description": "万通业务组件",
5
+ "sideEffects": false,
6
+ "main": "dist/index.js",
7
+ "module": "dist/esm/index.js",
8
+ "typings": "dist/esm/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "start": "dumi dev",
14
+ "start:hot-rebuild": "father dev",
15
+ "build": "father build",
16
+ "repack": "pnpm run build && npm publish --no-git-checks && npx cnpm sync wt-enjoy-link-antd-repack"
17
+ },
18
+ "dependencies": {
19
+ "@amap/amap-jsapi-loader": "^1.0.1",
20
+ "@ant-design/icons": "^5.3.0",
21
+ "ahooks": "^3.7.9",
22
+ "antd": "^4.24.14",
23
+ "classnames": "^2.5.1",
24
+ "dumi": "^2.2.17",
25
+ "idb": "^7.1.1",
26
+ "jsbarcode": "^3.11.6",
27
+ "lodash": "^4.17.20",
28
+ "moment": "^2.30.1",
29
+ "path": "^0.12.7",
30
+ "react": "^18.2.0",
31
+ "react-dom": "^18.2.0",
32
+ "react-drag-listview": "^2.0.0",
33
+ "react-draggable": "^4.4.6",
34
+ "react-resizable": "^3.0.5",
35
+ "react-window": "^1.8.10",
36
+ "styled-components": "^6.1.8",
37
+ "umi-request": "^1.3.9",
38
+ "use-media-antd-query": "^1.1.0",
39
+ "xlsx": "^0.18.5"
40
+ },
41
+ "devDependencies": {
42
+ "@types/lodash": "^4.14.202",
43
+ "@types/node": "^20.11.14",
44
+ "@types/react": "^18.2.48",
45
+ "@types/react-dom": "^18.2.17",
46
+ "@types/react-resizable": "^3.0.7",
47
+ "@types/react-window": "^1.8.8",
48
+ "@umijs/fabric": "^4.0.1",
49
+ "eslint": "^8.54.0",
50
+ "eslint-import-resolver-typescript": "^3.6.1",
51
+ "eslint-plugin-import": "^2.29.0",
52
+ "father": "^4.4.0",
53
+ "prettier": "^3.2.4",
54
+ "typescript": "^5.3.2"
55
+ },
56
+ "publishConfig": {
57
+ "registry": "https://registry.npmjs.org"
58
+ }
59
59
  }