one-design-next 0.0.26 → 0.0.28

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.
@@ -62,6 +62,11 @@ export interface DrawerProps {
62
62
  * @description 层级
63
63
  */
64
64
  zIndex?: number | string;
65
+ /**
66
+ * @description 关闭时是否保留 children 不卸载
67
+ * @default false
68
+ */
69
+ keepMounted?: boolean;
65
70
  /**
66
71
  * @description 步骤
67
72
  */
@@ -56,6 +56,7 @@ var Drawer = function Drawer(_ref) {
56
56
  width = _ref.width,
57
57
  className = _ref.className,
58
58
  zIndex = _ref.zIndex,
59
+ keepMounted = _ref.keepMounted,
59
60
  container = _ref.container,
60
61
  title = _ref.title,
61
62
  desc = _ref.desc,
@@ -157,7 +158,8 @@ var Drawer = function Drawer(_ref) {
157
158
  onOpenChange: onVisibleChange,
158
159
  disablePointerDismissal: true
159
160
  }, /*#__PURE__*/React.createElement(ModalPortal, {
160
- container: container
161
+ container: container,
162
+ keepMounted: keepMounted
161
163
  }, maskVisible && /*#__PURE__*/React.createElement(ModalOverlay, {
162
164
  visible: visible,
163
165
  "data-odn-modal-overlay": "drawer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one-design-next",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "One Design Next from TAD@tencent.com",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "module": "dist/index.js",