refactor: svg点击出现边框问题优化
Former-commit-id: c6ab8f093bcd6d139011d80e6b3dc45c77fc5704
This commit is contained in:
@@ -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等标签的下边缘会和字体的基线对齐,故需设置一个往下的偏移比例,来纠正视觉上的未对齐效果 */
|
||||
|
||||
Reference in New Issue
Block a user