update yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue.

解决tagViews左右两侧按钮不能垂直居中的问题,直接使用flex,简简单单

Signed-off-by: AKING <2734339436@qq.com>
This commit is contained in:
AKING 2023-02-09 06:53:39 +00:00 committed by Gitee
parent b7198bd373
commit 7fc50f186c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -262,7 +262,7 @@ watch(
> >
<span <span
:class="`${prefixCls}__tool`" :class="`${prefixCls}__tool`"
class="w-[var(--tags-view-height)] h-[var(--tags-view-height)] text-center leading-[var(--tags-view-height)] cursor-pointer" class="w-[var(--tags-view-height)] h-[var(--tags-view-height)] cursor-pointer"
@click="move(-200)" @click="move(-200)"
> >
<Icon <Icon
@ -470,6 +470,9 @@ $prefix-cls: #{$namespace}-tags-view;
&__tool { &__tool {
position: relative; position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
&:hover { &:hover {
:deep(span) { :deep(span) {