Skip to content

Commit 1a8cd6f

Browse files
shenjunjianzzcr
authored andcommitted
fix(popper): fix tiny-popper's style
1 parent 230d9be commit 1a8cd6f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/theme/src/base/reset.less

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,24 +177,29 @@
177177
}
178178
}
179179

180+
// 没有箭头的场景, select/ userlink /roles/ dept 等默认距离4 px
180181
.tiny-popper {
181182
&[x-placement^='top'] {
182183
margin-bottom: 4px;
183184
}
185+
184186
&[x-placement^='bottom'] {
185187
margin-top: 4px;
186188
}
189+
187190
&[x-placement^='right'] {
188191
margin-left: 4px;
189192
}
193+
190194
&[x-placement^='left'] {
191195
margin-right: 4px;
192196
}
193197
}
194198

195-
196-
.tiny-popconfirm-popover,
197-
.tiny-tooltip__popper {
199+
// 有箭头的场景,统一规范所有样式
200+
.tiny-popconfirm-popover:has(.popper__arrow),
201+
.tiny-popper:has(.popper__arrow),
202+
.tiny-tooltip__popper:has(.popper__arrow) {
198203
.popper__arrow {
199204
position: absolute;
200205
display: block;

0 commit comments

Comments
 (0)