Skip to content

Commit

Permalink
fix(back-top): 将内联样式改为更精确的类样式
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare committed Aug 29, 2022
1 parent 2b8f3bd commit e1c0e4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 1 addition & 6 deletions packages/ui/back-top/src/BackTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,7 @@ export const BackTop = forwardRef<HTMLDivElement | null, BackTopProps>(
<div ref={ref} role={role} className={cls} onClick={handleClick} {...rest}>
{children || (
<div className={contentCls}>
<ArrowUpOutlined
style={{
width: 'var(--hi-v4-height-5, 20px)',
height: 'var(--hi-v4-height-5, 20px)',
}}
/>
<ArrowUpOutlined />
</div>
)}
</div>
Expand Down
5 changes: 5 additions & 0 deletions packages/ui/back-top/src/styles/back-top.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,10 @@ $prefix: "#{$component-prefix}-back-top" !default;
}

@include render-status();

> svg[class^=hi-v4-icon] {
width: use-height-size(5);
height: use-height-size(5);
}
}
}

0 comments on commit e1c0e4e

Please sign in to comment.