wt-enjoy-link-antd-repack 4.1.52 → 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.
- package/dist/esm/component/BiuAButton/index.d.ts +4 -4
- package/dist/esm/component/BiuDetailDrawer/index.d.ts +1 -2
- package/dist/esm/component/BiuDetailDrawer/index.js +3 -1
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +9 -5
- package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +1 -1
- package/dist/esm/component/BiuModal/index.js +6 -5
- package/dist/esm/component/BiuTableSelect/index.d.ts +1 -1
- package/package.json +1 -1
@@ -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>, "
|
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>, "
|
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>, "
|
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>, "
|
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,13 +2,12 @@ import type { DrawerProps } from 'antd/es/drawer';
|
|
2
2
|
import type { ReactNode } from 'react';
|
3
3
|
import React from 'react';
|
4
4
|
import type { OperCardProps } from "..";
|
5
|
-
type EventType = React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement | HTMLButtonElement | HTMLElement>;
|
6
5
|
type footerType = {
|
7
6
|
render?: (() => ReactNode) | ReactNode;
|
8
7
|
} & OperCardProps;
|
9
8
|
export type BiuDetalDrawerPropsType = {
|
10
9
|
footer?: boolean | footerType;
|
11
|
-
onClose: ((e:
|
10
|
+
onClose: ((e: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void) | undefined;
|
12
11
|
children?: ReactNode;
|
13
12
|
} & Omit<DrawerProps, 'footer' | 'onClose' | 'children'>;
|
14
13
|
export declare const BiuDetailDrawer: React.MemoExoticComponent<(props: BiuDetalDrawerPropsType) => import("react/jsx-runtime").JSX.Element>;
|
@@ -38,6 +38,7 @@ export var BiuDetailDrawer = /*#__PURE__*/React.memo(function (props) {
|
|
38
38
|
}
|
39
39
|
return undefined;
|
40
40
|
}, [footer, onClose]);
|
41
|
+
console.log(333);
|
41
42
|
return /*#__PURE__*/_jsx(StyledDrawer, _objectSpread({
|
42
43
|
destroyOnClose: true,
|
43
44
|
maskClosable: false,
|
@@ -49,6 +50,7 @@ export var BiuDetailDrawer = /*#__PURE__*/React.memo(function (props) {
|
|
49
50
|
if (_afterOpenChange) _afterOpenChange(value);
|
50
51
|
},
|
51
52
|
footer: footerNode(),
|
52
|
-
closable: false
|
53
|
+
closable: false,
|
54
|
+
onClose: onClose
|
53
55
|
}, restProps));
|
54
56
|
});
|
@@ -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 |
|
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;
|
@@ -177,7 +177,7 @@ export var BiuModal = /*#__PURE__*/React.memo(function (props) {
|
|
177
177
|
bottom: clientHeight - (targetRect.bottom - uiData.y)
|
178
178
|
});
|
179
179
|
}, []);
|
180
|
-
return /*#__PURE__*/_jsx(StyledModal, _objectSpread(
|
180
|
+
return /*#__PURE__*/_jsx(StyledModal, _objectSpread({
|
181
181
|
fullScreen: isFullscreen,
|
182
182
|
title: /*#__PURE__*/_jsx(BiuModalTitle, {
|
183
183
|
title: title,
|
@@ -208,6 +208,7 @@ export var BiuModal = /*#__PURE__*/React.memo(function (props) {
|
|
208
208
|
setDisabled(true);
|
209
209
|
}
|
210
210
|
}),
|
211
|
+
keyboard: true,
|
211
212
|
centered: true,
|
212
213
|
width: width,
|
213
214
|
footer: customFooter,
|
@@ -232,8 +233,8 @@ export var BiuModal = /*#__PURE__*/React.memo(function (props) {
|
|
232
233
|
children: modal
|
233
234
|
})
|
234
235
|
});
|
235
|
-
}
|
236
|
-
|
237
|
-
|
238
|
-
}));
|
236
|
+
},
|
237
|
+
closable: false,
|
238
|
+
onCancel: onCancel
|
239
|
+
}, modalProps));
|
239
240
|
});
|
@@ -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>, "
|
49
|
+
} & Pick<SelectProps<any, import("antd/lib/select").DefaultOptionType>, "showSearch" | "allowClear"> & Pick<TableProps<any>, "onRow" | "dataSource"> & React.RefAttributes<unknown>>>;
|