@ccs-ui/rc-pro 1.1.25-beta-18 → 1.1.25-beta-20

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.
@@ -1,6 +1,7 @@
1
1
  import { ButtonProps } from 'antd';
2
2
  import { ReactElement, ReactNode } from 'react';
3
3
  import CCS from '..';
4
+ import './index.less';
4
5
  export type CcsAuthGroupProps = {
5
6
  /** 按钮尺寸 */
6
7
  size?: ButtonProps['size'];
package/es/auth/index.js CHANGED
@@ -15,12 +15,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
15
15
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  import { EllipsisOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
18
- import { Button, Dropdown, Modal, Space } from 'antd';
18
+ import { Button, Divider, Dropdown, Modal, Space } from 'antd';
19
19
  import { useContext, useEffect, useRef } from 'react';
20
20
  import { useCcsPage } from '..';
21
21
  import { TableSelectionContext } from "../pro-table/table";
22
22
  import AuthButton from "./auth-button";
23
23
  import AuthDropdown from "./auth-dropdown";
24
+ import "./index.less";
24
25
  import { Fragment as _Fragment } from "react/jsx-runtime";
25
26
  import { jsxs as _jsxs } from "react/jsx-runtime";
26
27
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -106,6 +107,10 @@ function AuthGroup(_ref4) {
106
107
  if (isLink) {
107
108
  return /*#__PURE__*/_jsxs(_Fragment, {
108
109
  children: [/*#__PURE__*/_jsx(Space, {
110
+ split: /*#__PURE__*/_jsx(Divider, {
111
+ type: "vertical"
112
+ }),
113
+ className: "ccs-group-link",
109
114
  children: showBtns === null || showBtns === void 0 ? void 0 : showBtns.map(function (_ref7) {
110
115
  var key = _ref7.key,
111
116
  label = _ref7.label,
@@ -0,0 +1,10 @@
1
+ .ccs-group-link {
2
+ .ant-btn-link {
3
+ padding-left: 0;
4
+ padding-right: 0;
5
+ }
6
+ .ant-divider {
7
+ margin-inline: 0;
8
+ padding: 0;
9
+ }
10
+ }
@@ -1,7 +1,7 @@
1
1
  import { FormProps } from 'antd';
2
2
  import { DialogFormRef } from './form';
3
3
  import { CcsDialogModalProps } from './hook';
4
- declare const DialogRequestButton: ({ auth, formRef, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "auth" | "onRequestBefore" | "request" | "onCancel"> & {
4
+ declare const DialogRequestButton: ({ auth, formRef, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "auth" | "request" | "onCancel" | "onRequestBefore"> & {
5
5
  formRef: React.RefObject<DialogFormRef>;
6
6
  formInitialValues: FormProps['initialValues'];
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { FormProps } from 'antd';
2
2
  import { DialogFormRef } from './form';
3
3
  import { CcsDialogModalProps } from './hook';
4
- declare const DialogSelfOkButton: ({ auth, formRef, formInitialValues, onCancel, onOk, }: Pick<CcsDialogModalProps, "auth" | "onOk" | "onCancel"> & {
4
+ declare const DialogSelfOkButton: ({ auth, formRef, formInitialValues, onCancel, onOk, }: Pick<CcsDialogModalProps, "onOk" | "auth" | "onCancel"> & {
5
5
  formRef: React.RefObject<DialogFormRef>;
6
6
  formInitialValues: FormProps['initialValues'];
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -21,7 +21,7 @@ export default function CcsLinesEllipsis(_ref) {
21
21
  onClick: function onClick() {
22
22
  return setIsShowMore(false);
23
23
  },
24
- children: "... \u6536\u8D77"
24
+ children: " \u6536\u8D77"
25
25
  })]
26
26
  }) : /*#__PURE__*/_jsx(LinesEllipsis, {
27
27
  text: text,
@@ -6,6 +6,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
8
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ import { message, Modal } from 'antd';
9
10
  import _debounce from 'lodash/debounce';
10
11
  var ThemeDialog = /*#__PURE__*/function () {
11
12
  function ThemeDialog() {
@@ -28,10 +29,12 @@ var ThemeDialog = /*#__PURE__*/function () {
28
29
  }, {
29
30
  key: "easyMessage",
30
31
  value: function easyMessage(result, successText, failText) {
32
+ var _this$message;
33
+ var msg = (_this$message = this.message) !== null && _this$message !== void 0 ? _this$message : message;
31
34
  if (result !== null && result !== void 0 && result.success) {
32
- ThemeDialog.message.success(successText || '操作成功');
35
+ msg.success(successText || '操作成功');
33
36
  } else {
34
- ThemeDialog.message.error(failText || (result === null || result === void 0 ? void 0 : result.msg) || '操作失败');
37
+ msg.error(failText || (result === null || result === void 0 ? void 0 : result.msg) || '操作失败');
35
38
  }
36
39
  }
37
40
 
@@ -50,7 +53,9 @@ _defineProperty(ThemeDialog, "modal", void 0);
50
53
  _defineProperty(ThemeDialog, "easyConfirm", _debounce(function () {
51
54
  var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
52
55
  return new Promise(function (resolve) {
53
- _class.modal.confirm({
56
+ var _class$modal;
57
+ var mod = (_class$modal = _class.modal) !== null && _class$modal !== void 0 ? _class$modal : Modal;
58
+ mod.confirm({
54
59
  title: '操作确认',
55
60
  content: content,
56
61
  okText: '确定',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.1.25-beta-18",
3
+ "version": "1.1.25-beta-20",
4
4
  "description": "验证码组件兼容暗黑模式;proTable封装rowselection代码;proTable添加自适应布局模式;",
5
5
  "license": "MIT",
6
6
  "author": {