@giteeteam/apps-team-components 1.0.11 → 1.0.13

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/README.md CHANGED
@@ -16,3 +16,8 @@ const Demo = ({children}) => {
16
16
  )
17
17
  }
18
18
  ```
19
+
20
+ ## TODO
21
+ - SimpleOverflowTooltip 统一为 BaseOverflowToolTip 导出
22
+ - 去除 BaseOverflowToolTip 的 maxline
23
+
@@ -4,7 +4,8 @@ export const getNameBadge = (name) => {
4
4
  var _a;
5
5
  if (!((_a = name === null || name === void 0 ? void 0 : name.trim) === null || _a === void 0 ? void 0 : _a.call(name)))
6
6
  return null;
7
- return name.slice(0, 1);
7
+ const str = name.trim();
8
+ return String.fromCodePoint(str.codePointAt(0));
8
9
  };
9
10
  const randomBackgroundColor = ['#5EA1FF', '#4BCC87', '#FFD15E', '#FF945E', '#A994FF'];
10
11
  export const getBackgroundColor = (s) => {
@@ -30,7 +30,7 @@ const Transition = props => {
30
30
  }, [objectId, name, type]);
31
31
  return (_jsx(ClassNames, { children: ({ cx, css }) => {
32
32
  var _a, _b, _c;
33
- return (_jsx("div", { css: css(workflowContentStyle), children: _jsx(Popover, { overlayClassName: statePopoverStyle(antPrefix), destroyTooltipOnHide: true, open: popoverVisible, onOpenChange: visible => {
33
+ return (_jsx("div", { css: css(workflowContentStyle), children: _jsx(Popover, { overlayClassName: cx(css(statePopoverStyle(antPrefix))), destroyTooltipOnHide: true, open: popoverVisible, onOpenChange: visible => {
34
34
  if (isProcessing.current || flowing) {
35
35
  return;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",