@zat-design/sisyphus-react 3.9.0-beta.2 → 3.9.0-beta.4

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.
@@ -36,6 +36,7 @@ var ProDrawer = function ProDrawer(_ref) {
36
36
  onCancel = _ref.onCancel,
37
37
  children = _ref.children,
38
38
  className = _ref.className,
39
+ zIndex = _ref.zIndex,
39
40
  drawerProps = _ref.drawerProps;
40
41
  var ref = useRef(null);
41
42
  var modalRef = useRef(null);
@@ -192,7 +193,8 @@ var ProDrawer = function ProDrawer(_ref) {
192
193
  placement: "right",
193
194
  className: "pro-drawer ".concat(className !== null && className !== void 0 ? className : ''),
194
195
  closable: false,
195
- onClose: onCancel
196
+ onClose: onCancel,
197
+ zIndex: zIndex
196
198
  }, drawerProps), {}, {
197
199
  children: [_jsx("div", {
198
200
  className: "pro-drawer-close",
@@ -35,8 +35,9 @@ var ProModal = function ProModal(_ref) {
35
35
  onCancel = _ref.onCancel,
36
36
  children = _ref.children,
37
37
  className = _ref.className,
38
- modalProps = _ref.modalProps,
39
- extraLeft = _ref.extraLeft;
38
+ extraLeft = _ref.extraLeft,
39
+ zIndex = _ref.zIndex,
40
+ modalProps = _ref.modalProps;
40
41
  var ref = useRef(null);
41
42
  var _ref2 = useScroll((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.parentNode) || {},
42
43
  top = _ref2.top;
@@ -178,7 +179,8 @@ var ProModal = function ProModal(_ref) {
178
179
  closeIcon: _jsx(ReactSVG, {
179
180
  className: "close-icon",
180
181
  src: closeSvg
181
- })
182
+ }),
183
+ zIndex: zIndex
182
184
  }, modalProps), {}, {
183
185
  children: _jsx("div", {
184
186
  ref: ref,
@@ -98,4 +98,5 @@ export interface ProDrawerFormPropsType {
98
98
  */
99
99
  onCloseClean?: boolean;
100
100
  children?: React.ReactNode;
101
+ zIndex?: number;
101
102
  }
@@ -845,7 +845,8 @@ var ProModalSelect = function ProModalSelect(props, ref) {
845
845
  onOk: handleFinish,
846
846
  // @ts-ignore
847
847
  onCancel: handleClose,
848
- visible: visible
848
+ visible: visible,
849
+ zIndex: 1071
849
850
  }, restModalProps), {}, {
850
851
  children: [_jsx(ProForm, {
851
852
  submitOnEnter: true,
@@ -39,6 +39,7 @@ var ProDrawer = function ProDrawer(_ref) {
39
39
  onCancel = _ref.onCancel,
40
40
  children = _ref.children,
41
41
  className = _ref.className,
42
+ zIndex = _ref.zIndex,
42
43
  drawerProps = _ref.drawerProps;
43
44
  var ref = (0, _react.useRef)(null);
44
45
  var modalRef = (0, _react.useRef)(null);
@@ -195,7 +196,8 @@ var ProDrawer = function ProDrawer(_ref) {
195
196
  placement: "right",
196
197
  className: "pro-drawer ".concat(className !== null && className !== void 0 ? className : ''),
197
198
  closable: false,
198
- onClose: onCancel
199
+ onClose: onCancel,
200
+ zIndex: zIndex
199
201
  }, drawerProps), {}, {
200
202
  children: [(0, _jsxRuntime.jsx)("div", {
201
203
  className: "pro-drawer-close",
@@ -38,8 +38,9 @@ var ProModal = function ProModal(_ref) {
38
38
  onCancel = _ref.onCancel,
39
39
  children = _ref.children,
40
40
  className = _ref.className,
41
- modalProps = _ref.modalProps,
42
- extraLeft = _ref.extraLeft;
41
+ extraLeft = _ref.extraLeft,
42
+ zIndex = _ref.zIndex,
43
+ modalProps = _ref.modalProps;
43
44
  var ref = (0, _react.useRef)(null);
44
45
  var _ref2 = (0, _ahooks.useScroll)((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.parentNode) || {},
45
46
  top = _ref2.top;
@@ -181,7 +182,8 @@ var ProModal = function ProModal(_ref) {
181
182
  closeIcon: (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
182
183
  className: "close-icon",
183
184
  src: _close.default
184
- })
185
+ }),
186
+ zIndex: zIndex
185
187
  }, modalProps), {}, {
186
188
  children: (0, _jsxRuntime.jsx)("div", {
187
189
  ref: ref,
@@ -98,4 +98,5 @@ export interface ProDrawerFormPropsType {
98
98
  */
99
99
  onCloseClean?: boolean;
100
100
  children?: React.ReactNode;
101
+ zIndex?: number;
101
102
  }
@@ -840,7 +840,8 @@ var ProModalSelect = function ProModalSelect(props, ref) {
840
840
  onOk: handleFinish,
841
841
  // @ts-ignore
842
842
  onCancel: handleClose,
843
- visible: visible
843
+ visible: visible,
844
+ zIndex: 1071
844
845
  }, restModalProps), {}, {
845
846
  children: [(0, _jsxRuntime.jsx)(_index.ProForm, {
846
847
  submitOnEnter: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.9.0-beta.2",
3
+ "version": "3.9.0-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",