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

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.
@@ -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: EventType) => void) | undefined;
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
  });
@@ -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(_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
- }, modalProps), {}, {
237
- closable: false
238
- }));
236
+ },
237
+ closable: false,
238
+ onCancel: onCancel
239
+ }, modalProps));
239
240
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-enjoy-link-antd-repack",
3
- "version": "4.1.52",
3
+ "version": "4.1.53",
4
4
  "description": "万通业务组件",
5
5
  "sideEffects": false,
6
6
  "main": "dist/esm/index.js",