tntd 1.4.15 → 1.4.17
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/components/Ellipsis/index.js +5 -1
- package/components/Layout/Layout.js +4 -3
- package/dist/stats.json +115 -115
- package/dist/tntd.js +1 -1
- package/es/Ellipsis/index.js +9 -1
- package/es/Layout/Layout.js +2 -1
- package/lib/Ellipsis/index.js +9 -1
- package/lib/Layout/Layout.js +2 -1
- package/package.json +1 -1
package/es/Ellipsis/index.js
CHANGED
|
@@ -33,7 +33,15 @@ var tolerance = 0; // In px. Depends on the font you are using
|
|
|
33
33
|
|
|
34
34
|
var isEllipsisActive = function isEllipsisActive(e) {
|
|
35
35
|
if (e.offsetWidth === e.scrollWidth && e.offsetHeight === e.scrollHeight) {
|
|
36
|
-
|
|
36
|
+
var _e$parentNode, _e$parentNode$getAttr;
|
|
37
|
+
|
|
38
|
+
var styleStr = 'overflow:visible; ';
|
|
39
|
+
|
|
40
|
+
if (!(e == null ? void 0 : (_e$parentNode = e.parentNode) == null ? void 0 : (_e$parentNode$getAttr = _e$parentNode.getAttribute('style')) == null ? void 0 : _e$parentNode$getAttr.includes('width'))) {
|
|
41
|
+
styleStr += 'width:100%;';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
e.parentNode.setAttribute('style', styleStr);
|
|
37
45
|
}
|
|
38
46
|
|
|
39
47
|
return e.offsetWidth + tolerance < e.scrollWidth || e.offsetHeight < e.scrollHeight;
|
package/es/Layout/Layout.js
CHANGED
|
@@ -146,13 +146,14 @@ export default withTheme(function (props) {
|
|
|
146
146
|
setUserInfo(props.userInfo);
|
|
147
147
|
}, [props.userInfo]);
|
|
148
148
|
return React.createElement(TNTLayout, {
|
|
149
|
-
className: cn("tnt-".concat(theme, " ").concat(props.className || ''), {
|
|
149
|
+
className: cn("tnt-layout tnt-".concat(theme, " ").concat(props.className || ''), {
|
|
150
150
|
'large-size': props.theme.size === 'large',
|
|
151
151
|
compatible: props.theme.compatible,
|
|
152
152
|
isInIframe: isInIframe,
|
|
153
153
|
isEmptyLayout: isEmptyLayout,
|
|
154
154
|
noAppList: !appList,
|
|
155
155
|
hasHeaderTabs: !!headerTabs,
|
|
156
|
+
layoutMenusCollapsed: collapsed,
|
|
156
157
|
collapseIconPlacementBottom: collapseIconPlacement === 'bottom'
|
|
157
158
|
})
|
|
158
159
|
}, React.createElement(Sider, {
|
package/lib/Ellipsis/index.js
CHANGED
|
@@ -45,7 +45,15 @@ var tolerance = 0; // In px. Depends on the font you are using
|
|
|
45
45
|
|
|
46
46
|
var isEllipsisActive = function isEllipsisActive(e) {
|
|
47
47
|
if (e.offsetWidth === e.scrollWidth && e.offsetHeight === e.scrollHeight) {
|
|
48
|
-
|
|
48
|
+
var _e$parentNode, _e$parentNode$getAttr;
|
|
49
|
+
|
|
50
|
+
var styleStr = 'overflow:visible; ';
|
|
51
|
+
|
|
52
|
+
if (!(e == null ? void 0 : (_e$parentNode = e.parentNode) == null ? void 0 : (_e$parentNode$getAttr = _e$parentNode.getAttribute('style')) == null ? void 0 : _e$parentNode$getAttr.includes('width'))) {
|
|
53
|
+
styleStr += 'width:100%;';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
e.parentNode.setAttribute('style', styleStr);
|
|
49
57
|
}
|
|
50
58
|
|
|
51
59
|
return e.offsetWidth + tolerance < e.scrollWidth || e.offsetHeight < e.scrollHeight;
|
package/lib/Layout/Layout.js
CHANGED
|
@@ -172,13 +172,14 @@ var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
|
172
172
|
setUserInfo(props.userInfo);
|
|
173
173
|
}, [props.userInfo]);
|
|
174
174
|
return React.createElement(TNTLayout, {
|
|
175
|
-
className: (0, _classnames["default"])("tnt-".concat(theme, " ").concat(props.className || ''), {
|
|
175
|
+
className: (0, _classnames["default"])("tnt-layout tnt-".concat(theme, " ").concat(props.className || ''), {
|
|
176
176
|
'large-size': props.theme.size === 'large',
|
|
177
177
|
compatible: props.theme.compatible,
|
|
178
178
|
isInIframe: isInIframe,
|
|
179
179
|
isEmptyLayout: isEmptyLayout,
|
|
180
180
|
noAppList: !appList,
|
|
181
181
|
hasHeaderTabs: !!headerTabs,
|
|
182
|
+
layoutMenusCollapsed: collapsed,
|
|
182
183
|
collapseIconPlacementBottom: collapseIconPlacement === 'bottom'
|
|
183
184
|
})
|
|
184
185
|
}, React.createElement(Sider, {
|