@zat-design/sisyphus-react 3.9.0-beta.3 → 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.
- package/es/ProDrawerForm/components/ProDrawer/index.js +3 -1
- package/es/ProDrawerForm/components/ProModal/index.js +5 -3
- package/es/ProDrawerForm/propsType.d.ts +1 -0
- package/lib/ProDrawerForm/components/ProDrawer/index.js +3 -1
- package/lib/ProDrawerForm/components/ProModal/index.js +5 -3
- package/lib/ProDrawerForm/propsType.d.ts +1 -0
- package/package.json +1 -1
@@ -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
|
-
|
39
|
-
|
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,
|
@@ -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
|
-
|
42
|
-
|
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,
|