refactor: svg点击出现边框问题优化

Former-commit-id: c6ab8f093bcd6d139011d80e6b3dc45c77fc5704
This commit is contained in:
haoxr
2023-01-14 12:30:25 +08:00
parent 9522875198
commit 00c52cf5ce

View File

@@ -32,6 +32,7 @@ const symbolId = computed(() => `#${props.prefix}-${props.iconName}`);
<style scoped>
.svg-icon {
outline: none;
width: 1em;
height: 1em;
vertical-align: -0.15em; /* 因icon大小被设置为和字体大小一致而span等标签的下边缘会和字体的基线对齐故需设置一个往下的偏移比例来纠正视觉上的未对齐效果 */