🌐 AI搜索 & 代理 主页
Skip to content

Commit 65c6851

Browse files
authored
Update make-icon.js
1 parent 2dce20a commit 65c6851

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/icons/helpers/make-icon.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const BVIconBase = {
3838
...commonIconProps
3939
},
4040
render(h, { data, props }) {
41-
const fontScale = (toFloat(props.fontScale) || 1)
41+
const fontScale = toFloat(props.fontScale) || 1
4242
const angle = toFloat(props.scale) || 0
4343
const transforms = [
44-
props.flipH || props.flipV ? `scale(${props.flipH ? -1 : 1}, ${ props.flipV ? -1 : 1})` : null,
44+
props.flipH || props.flipV ? `scale(${props.flipH ? -1 : 1}, ${props.flipV ? -1 : 1})` : null,
4545
angle ? `rotate(${angle}, 0, 0)` : null
4646
]
4747
return h(
@@ -59,8 +59,8 @@ const BVIconBase = {
5959
alt: 'icon'
6060
},
6161
style: {
62-
fontSize: fontScale === 1 ? null : scale * 100,
63-
transform: transforms.filter(identity).join(' '),
62+
fontSize: fontScale === 1 ? null : fontScale * 100,
63+
transform: transforms.filter(identity).join(' ') || null,
6464
}
6565
},
6666
// Merge in user supplied data

0 commit comments

Comments
 (0)