@ccs-ui/rc-pro 2.3.6-beta-19 → 2.3.6-beta-21

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.
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { CopyOutlined } from '@ant-design/icons';
8
8
  import CcsUtils from '@ccs-ui/utils';
9
- import { Button, Tooltip } from 'antd';
9
+ import { theme, Tooltip } from 'antd';
10
10
  import React from 'react';
11
11
  import CcsDialog from "../dialog";
12
12
  import "./index.less";
@@ -14,8 +14,8 @@ import useMeasure from "./useMeasure";
14
14
  import { useResizeEffect } from "./useResizeEffect";
15
15
  import { withStopPropagation } from "./withStopPropagation";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
- import { Fragment as _Fragment } from "react/jsx-runtime";
18
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
18
+ import { Fragment as _Fragment } from "react/jsx-runtime";
19
19
  var classPrefix = "ccs-ellipsis";
20
20
  var defaultProps = {
21
21
  direction: 'end',
@@ -36,6 +36,8 @@ var defaultProps = {
36
36
  */
37
37
  var CcsEllipsis = function CcsEllipsis(p) {
38
38
  var props = CcsUtils.mergeProps(defaultProps, p);
39
+ var _theme$useToken = theme.useToken(),
40
+ token = _theme$useToken.token;
39
41
  var direction = props.direction,
40
42
  rows = props.rows,
41
43
  expandText = props.expandText,
@@ -94,20 +96,21 @@ var CcsEllipsis = function CcsEllipsis(p) {
94
96
  zIndex: 9999,
95
97
  title: function title() {
96
98
  return /*#__PURE__*/_jsxs(_Fragment, {
97
- children: [content, /*#__PURE__*/_jsx("div", {
99
+ children: [content, /*#__PURE__*/_jsxs("a", {
98
100
  style: {
99
- textAlign: 'right'
101
+ color: token.colorPrimary,
102
+ display: 'block'
103
+ },
104
+ onClick: function onClick() {
105
+ var _CcsDialog$message;
106
+ CcsUtils.copy(content);
107
+ (_CcsDialog$message = CcsDialog.message) === null || _CcsDialog$message === void 0 || _CcsDialog$message.info('复制成功');
100
108
  },
101
- children: /*#__PURE__*/_jsx(Button, {
102
- icon: /*#__PURE__*/_jsx(CopyOutlined, {}),
103
- size: "small",
104
- type: "link",
105
- onClick: function onClick() {
106
- var _CcsDialog$message;
107
- CcsUtils.copy(content);
108
- (_CcsDialog$message = CcsDialog.message) === null || _CcsDialog$message === void 0 || _CcsDialog$message.info('复制成功');
109
+ children: [/*#__PURE__*/_jsx(CopyOutlined, {
110
+ style: {
111
+ marginRight: 5
109
112
  }
110
- })
113
+ }), "\u590D\u5236"]
111
114
  })]
112
115
  });
113
116
  },
@@ -150,3 +150,9 @@
150
150
  }
151
151
  }
152
152
  }
153
+
154
+ .ccs-table-ellipsis {
155
+ overflow: hidden;
156
+ text-overflow: ellipsis;
157
+ white-space: nowrap;
158
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.6-beta-19",
3
+ "version": "2.3.6-beta-21",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {