@douyinfe/semi-ui 2.42.0 → 2.42.2
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/dist/umd/semi-ui.js +8 -4
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/overflowList/index.js +2 -2
- package/lib/cjs/typography/base.js +1 -0
- package/lib/es/overflowList/index.js +2 -2
- package/lib/es/typography/base.js +1 -0
- package/package.json +9 -9
|
@@ -127,13 +127,13 @@ class OverflowList extends _baseComponent.default {
|
|
|
127
127
|
const element = visibleItemRenderer(item, idx);
|
|
128
128
|
const child = /*#__PURE__*/_react.default.cloneElement(element);
|
|
129
129
|
return /*#__PURE__*/_react.default.createElement(_resizeObserver.default, {
|
|
130
|
-
key: key,
|
|
130
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
131
131
|
onResize: _ref2 => {
|
|
132
132
|
let [entry] = _ref2;
|
|
133
133
|
return this.onItemResize(entry, item, idx);
|
|
134
134
|
}
|
|
135
135
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
136
|
-
key: key,
|
|
136
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
137
137
|
className: `${prefixCls}-item`
|
|
138
138
|
}, child));
|
|
139
139
|
}), collapseFrom === Boundary.END ? overflow : null];
|
|
@@ -404,6 +404,7 @@ class Base extends _react.Component {
|
|
|
404
404
|
// Perform type conversion on children to prevent component crash due to non-string type of children
|
|
405
405
|
String(children), extraNode, ELLIPSIS_STR, suffix, pos);
|
|
406
406
|
this.setState({
|
|
407
|
+
isOverflowed: false,
|
|
407
408
|
ellipsisContent: content,
|
|
408
409
|
isTruncated: children !== content
|
|
409
410
|
});
|
|
@@ -120,13 +120,13 @@ class OverflowList extends BaseComponent {
|
|
|
120
120
|
const element = visibleItemRenderer(item, idx);
|
|
121
121
|
const child = /*#__PURE__*/React.cloneElement(element);
|
|
122
122
|
return /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
123
|
-
key: key,
|
|
123
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
124
124
|
onResize: _ref2 => {
|
|
125
125
|
let [entry] = _ref2;
|
|
126
126
|
return this.onItemResize(entry, item, idx);
|
|
127
127
|
}
|
|
128
128
|
}, /*#__PURE__*/React.createElement("div", {
|
|
129
|
-
key: key,
|
|
129
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
130
130
|
className: `${prefixCls}-item`
|
|
131
131
|
}, child));
|
|
132
132
|
}), collapseFrom === Boundary.END ? overflow : null];
|
|
@@ -395,6 +395,7 @@ export default class Base extends Component {
|
|
|
395
395
|
// Perform type conversion on children to prevent component crash due to non-string type of children
|
|
396
396
|
String(children), extraNode, ELLIPSIS_STR, suffix, pos);
|
|
397
397
|
this.setState({
|
|
398
|
+
isOverflowed: false,
|
|
398
399
|
ellipsisContent: content,
|
|
399
400
|
isTruncated: children !== content
|
|
400
401
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.42.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "2.42.2",
|
|
4
|
+
"description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
7
7
|
"typings": "lib/es/index.d.ts",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"@dnd-kit/core": "^6.0.8",
|
|
21
21
|
"@dnd-kit/sortable": "^7.0.2",
|
|
22
22
|
"@dnd-kit/utilities": "^3.2.1",
|
|
23
|
-
"@douyinfe/semi-animation": "2.
|
|
24
|
-
"@douyinfe/semi-animation-react": "2.
|
|
25
|
-
"@douyinfe/semi-foundation": "2.
|
|
26
|
-
"@douyinfe/semi-icons": "2.
|
|
27
|
-
"@douyinfe/semi-illustrations": "2.
|
|
28
|
-
"@douyinfe/semi-theme-default": "2.
|
|
23
|
+
"@douyinfe/semi-animation": "2.42.2",
|
|
24
|
+
"@douyinfe/semi-animation-react": "2.42.2",
|
|
25
|
+
"@douyinfe/semi-foundation": "2.42.2",
|
|
26
|
+
"@douyinfe/semi-icons": "2.42.2",
|
|
27
|
+
"@douyinfe/semi-illustrations": "2.42.2",
|
|
28
|
+
"@douyinfe/semi-theme-default": "2.42.2",
|
|
29
29
|
"async-validator": "^3.5.0",
|
|
30
30
|
"classnames": "^2.2.6",
|
|
31
31
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
],
|
|
76
76
|
"author": "",
|
|
77
77
|
"license": "MIT",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "b3f0c8dcfe99018798e64505557fdc5cf3ccf4c3",
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
81
81
|
"@babel/plugin-transform-runtime": "^7.15.8",
|