瀏覽代碼

update yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue.
解决tagViews左右两侧按钮不能垂直居中的问题,直接使用flex,简简单单

Signed-off-by: AKING <2734339436@qq.com>

AKING 2 年之前
父節點
當前提交
7fc50f186c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue

+ 4 - 1
yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue

@@ -262,7 +262,7 @@ watch(
   >
     <span
       :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)"
     >
       <Icon
@@ -470,6 +470,9 @@ $prefix-cls: #{$namespace}-tags-view;
 
   &__tool {
     position: relative;
+    display: inline-flex;
+    align-items: center;
+    justify-content: center;
 
     &:hover {
       :deep(span) {