Commit 7fc50f186ce323c0f8d2315eac3e8b6ecb7b2754

Authored by AKING
Committed by Gitee
1 parent b7198bd3

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

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

Signed-off-by: AKING <2734339436@qq.com>
yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue
... ... @@ -262,7 +262,7 @@ watch(
262 262 >
263 263 <span
264 264 :class="`${prefixCls}__tool`"
265   - class="w-[var(--tags-view-height)] h-[var(--tags-view-height)] text-center leading-[var(--tags-view-height)] cursor-pointer"
  265 + class="w-[var(--tags-view-height)] h-[var(--tags-view-height)] cursor-pointer"
266 266 @click="move(-200)"
267 267 >
268 268 <Icon
... ... @@ -470,6 +470,9 @@ $prefix-cls: #{$namespace}-tags-view;
470 470  
471 471 &__tool {
472 472 position: relative;
  473 + display: inline-flex;
  474 + align-items: center;
  475 + justify-content: center;
473 476  
474 477 &:hover {
475 478 :deep(span) {
... ...