fix: nav收纳图标样式问题修复 (#6821)

Co-authored-by: wanglinfang <wanglinfang@MacBook-Pro.local>
This commit is contained in:
wanglinfang2014 2023-05-08 15:19:18 +08:00 committed by GitHub
parent f299743428
commit ff7084ed9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ export interface NavOverflow {
/**
*
* @default "fa fa-ellipsis"
* @default "fa fa-ellipsis-h"
*/
overflowIndicator?: SchemaIcon;
@ -597,7 +597,7 @@ export class Navigation extends React.Component<
if (isOverflow) {
const {
maxVisibleCount,
overflowIndicator = 'fa fa-ellipsis',
overflowIndicator = 'fa fa-ellipsis-h',
overflowLabel,
overflowClassName
} = link.overflow;
@ -613,7 +613,7 @@ export class Navigation extends React.Component<
{getIcon(overflowIndicator!) ? (
<Icon icon={overflowIndicator} className="icon" />
) : (
generateIcon(cx, overflowIndicator, 'Nav-itemIcon')
generateIcon(cx, overflowIndicator, 'Nav-item-icon')
)}
{overflowLabel && isObject(overflowLabel)
? render('nav-overflow-label', overflowLabel)
@ -690,7 +690,7 @@ export class Navigation extends React.Component<
let overflowedIndicator = null;
if (overflow && isObject(overflow) && overflow.enable) {
const {
overflowIndicator = 'fa fa-ellipsis',
overflowIndicator = 'fa fa-ellipsis-h',
overflowLabel,
overflowClassName
} = overflow;