@ccs-ui/rc-pro 2.3.3-beta-3 → 2.3.3-beta-5
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/context/index.d.ts +3 -1
- package/es/dialog/button.d.ts +1 -1
- package/es/dialog/button.js +1 -1
- package/es/hooks/use-app.d.ts +1 -0
- package/es/hooks/use-app.js +1 -0
- package/es/layout-keep-alive/index.less +2 -2
- package/es/layout-keep-alive/page.js +3 -4
- package/es/layout-single-page/index.js +1 -1
- package/es/layout-single-page/index.less +1 -1
- package/es/layout-single-page/page.js +3 -3
- package/es/pro-table/_utils.js +1 -1
- package/package.json +1 -1
package/es/context/index.d.ts
CHANGED
package/es/dialog/button.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
|
|
|
16
16
|
export type DialogButtonRef = {
|
|
17
17
|
onSetButtons: (e: React.ReactElement) => void;
|
|
18
18
|
};
|
|
19
|
-
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "
|
|
19
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "onClose" | "onOk" | "auth" | "extraBtn" | "request" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
20
20
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
21
21
|
formInitialValues: FormProps['initialValues'];
|
|
22
22
|
buttonRef: RefObject<DialogButtonRef>;
|
package/es/dialog/button.js
CHANGED
|
@@ -113,7 +113,7 @@ export var DialogButtonHolder = function DialogButtonHolder(_ref) {
|
|
|
113
113
|
var success = getDataFromFields(result, fieldNames.success);
|
|
114
114
|
// 获取异常信息
|
|
115
115
|
var msg = getDataFromFields(result, fieldNames.errorMsg);
|
|
116
|
-
if (success) {
|
|
116
|
+
if (success === fieldNames.successTag) {
|
|
117
117
|
// 关闭对话框
|
|
118
118
|
onHandleClose(values, result);
|
|
119
119
|
}
|
package/es/hooks/use-app.d.ts
CHANGED
package/es/hooks/use-app.js
CHANGED
|
@@ -40,6 +40,7 @@ export var useDialogFields = function useDialogFields() {
|
|
|
40
40
|
var context = useContext(AppConfigContext) || {};
|
|
41
41
|
return _objectSpread({
|
|
42
42
|
success: ['success'],
|
|
43
|
+
successTag: true,
|
|
43
44
|
errorMsg: ['msg']
|
|
44
45
|
}, context === null || context === void 0 || (_context$fieldNames3 = context.fieldNames) === null || _context$fieldNames3 === void 0 ? void 0 : _context$fieldNames3.dialog);
|
|
45
46
|
};
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
position: relative;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.ccs-
|
|
74
|
+
.ccs-sticky-scroll > div {
|
|
75
75
|
padding: 10px 16px 16px;
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
display: none;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.ccs-
|
|
80
|
+
.ccs-sticky-scroll.route-avtive > div {
|
|
81
81
|
display: flex;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -33,10 +33,9 @@ export default /*#__PURE__*/memo(function (props) {
|
|
|
33
33
|
},
|
|
34
34
|
className: "ccs-tab-item",
|
|
35
35
|
"data-display": active,
|
|
36
|
-
children: /*#__PURE__*/_jsxs(Scrollbars
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
className: classNames('ccs-table-item-scroll', {
|
|
36
|
+
children: /*#__PURE__*/_jsxs(Scrollbars, {
|
|
37
|
+
autoHide: true,
|
|
38
|
+
className: classNames('ccs-sticky-scroll', {
|
|
40
39
|
'route-avtive': active
|
|
41
40
|
}),
|
|
42
41
|
children: [/*#__PURE__*/_jsx(Breadcrumb, {
|
|
@@ -26,9 +26,9 @@ export default /*#__PURE__*/memo(function (props) {
|
|
|
26
26
|
return urlAuthList.includes(e);
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
children: /*#__PURE__*/_jsxs(Scrollbars
|
|
30
|
-
|
|
31
|
-
className: "ccs-
|
|
29
|
+
children: /*#__PURE__*/_jsxs(Scrollbars, {
|
|
30
|
+
autoHide: true,
|
|
31
|
+
className: "ccs-sticky-scroll",
|
|
32
32
|
children: [/*#__PURE__*/_jsx(Breadcrumb, {
|
|
33
33
|
items: breadcrumb,
|
|
34
34
|
className: "ccs-breadcrumb"
|
package/es/pro-table/_utils.js
CHANGED
|
@@ -30,7 +30,7 @@ var onTableInTabItem = function onTableInTabItem(node) {
|
|
|
30
30
|
var parent = node.parentNode;
|
|
31
31
|
if (!parent) return false;
|
|
32
32
|
if ( // 通过指定dom吸顶
|
|
33
|
-
(_parent$classList6 = parent.classList) !== null && _parent$classList6 !== void 0 && _parent$classList6.contains('ccs-
|
|
33
|
+
(_parent$classList6 = parent.classList) !== null && _parent$classList6 !== void 0 && _parent$classList6.contains('ccs-sticky-scroll')) {
|
|
34
34
|
return {
|
|
35
35
|
getContainer: function getContainer() {
|
|
36
36
|
return node;
|