@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.
@@ -57,8 +57,10 @@ type CcsFieldNamesType = {
57
57
  pageSize: string[];
58
58
  };
59
59
  type CcsDialogFieldNames = {
60
- /** 成功标识 */
60
+ /** 成功标识字段 */
61
61
  success?: string[];
62
+ /** 成功标识值 */
63
+ successTag?: any;
62
64
  /** 错误信息提示 */
63
65
  errorMsg?: string[];
64
66
  };
@@ -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>, "auth" | "request" | "onClose" | "onOk" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
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>;
@@ -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
  }
@@ -14,6 +14,7 @@ export declare const useProTableTreeFields: () => {
14
14
  };
15
15
  export declare const useDialogFields: () => {
16
16
  success: string[];
17
+ successTag: any;
17
18
  errorMsg: string[];
18
19
  };
19
20
  export default useAppConfig;
@@ -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-table-item-scroll > div {
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-table-item-scroll.route-avtive > div {
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
- // autoHide
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, {
@@ -31,7 +31,7 @@ export default function SinglePage(_ref) {
31
31
  return {
32
32
  key: m.key,
33
33
  title: m.label,
34
- href: ''
34
+ href: m.url
35
35
  };
36
36
  });
37
37
  breadcrumb.unshift({
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
 
6
- .ccs-table-item-scroll > div {
6
+ .ccs-sticky-scroll > div {
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  padding: 10px 16px 16px;
@@ -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 // autoHide
30
- , {
31
- className: "ccs-table-item-scroll",
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"
@@ -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-table-item-scroll')) {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.3-beta-3",
3
+ "version": "2.3.3-beta-5",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {