tntd 1.4.16 → 1.4.18
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 +1 -1
- package/components/Layout/Layout.js +4 -3
- package/dist/stats.json +94 -94
- package/dist/tntd.js +1 -1
- package/es/Ellipsis/index.js +1 -1
- package/es/Layout/Layout.js +2 -1
- package/lib/Ellipsis/index.js +1 -1
- package/lib/Layout/Layout.js +2 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ const isEllipsisActive = (e) => {
|
|
|
17
17
|
if(e.offsetWidth === e.scrollWidth && e.offsetHeight === e.scrollHeight){
|
|
18
18
|
let styleStr = 'overflow:visible; ';
|
|
19
19
|
if(!e?.parentNode?.getAttribute('style')?.includes('width')){
|
|
20
|
-
styleStr+='
|
|
20
|
+
styleStr+='maxWidth:100%;';
|
|
21
21
|
}
|
|
22
22
|
e.parentNode.setAttribute('style',styleStr);
|
|
23
23
|
}
|
|
@@ -113,7 +113,7 @@ export default withTheme(
|
|
|
113
113
|
onChangePassword,
|
|
114
114
|
onLogout,
|
|
115
115
|
config,
|
|
116
|
-
extendMap={},
|
|
116
|
+
extendMap = {},
|
|
117
117
|
AvatarCustom // 右上角用户信息自定义
|
|
118
118
|
} = props;
|
|
119
119
|
let {
|
|
@@ -160,7 +160,7 @@ export default withTheme(
|
|
|
160
160
|
|
|
161
161
|
return (
|
|
162
162
|
<TNTLayout className={cn(
|
|
163
|
-
`tnt-${theme} ${props.className || ''}`,
|
|
163
|
+
`tnt-layout tnt-${theme} ${props.className || ''}`,
|
|
164
164
|
{
|
|
165
165
|
'large-size': props.theme.size === 'large',
|
|
166
166
|
compatible: props.theme.compatible,
|
|
@@ -168,6 +168,7 @@ export default withTheme(
|
|
|
168
168
|
isEmptyLayout,
|
|
169
169
|
noAppList: !appList,
|
|
170
170
|
hasHeaderTabs: !!headerTabs,
|
|
171
|
+
layoutMenusCollapsed: collapsed,
|
|
171
172
|
collapseIconPlacementBottom: collapseIconPlacement === 'bottom'
|
|
172
173
|
}
|
|
173
174
|
)}>
|
|
@@ -216,7 +217,7 @@ export default withTheme(
|
|
|
216
217
|
className="tnt-layout-menu-collapse"
|
|
217
218
|
onClick={collapseChangeHandle}
|
|
218
219
|
>
|
|
219
|
-
<Icon type={`menu-${collapsed ? 'unfold' : 'fold'}`}/>
|
|
220
|
+
<Icon type={`menu-${collapsed ? 'unfold' : 'fold'}`} />
|
|
220
221
|
</div>
|
|
221
222
|
)
|
|
222
223
|
}
|