From 6ef6771ee16784371a13a359820442ef1da162f2 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 21 Feb 2025 09:56:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/dataset/auth-tree/FilterFiled.vue | 350 ++++++++++-------- 1 file changed, 202 insertions(+), 148 deletions(-) diff --git a/core/core-frontend/src/views/visualized/data/dataset/auth-tree/FilterFiled.vue b/core/core-frontend/src/views/visualized/data/dataset/auth-tree/FilterFiled.vue index abad12680b..e5d53b0204 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/auth-tree/FilterFiled.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/auth-tree/FilterFiled.vue @@ -1,5 +1,6 @@ @@ -378,39 +452,35 @@ const emits = defineEmits(['update:item', 'del']) :hide-on-click="false" >
-
    -
  • - - - + -
  • +
      +
      + +
      + + +
    • + + {{ i }} + +
    • +
      +
    - - {{ t('auth.select_all') }} -
- {{ t('auth.added') }}{{ checklist.length }} + {{ t('common.list_selection') }}
@@ -437,33 +507,28 @@ const emits = defineEmits(['update:item', 'del'])
-
    -
  • - - - - - - -
  • -
-
- - - {{ t('auth.sure') }} - - + +
  • +
    {{ i }}
    + + + +
  • +
    + +
    +
    + + {{ t('common.cancel') }} + + + {{ t('auth.sure') }} +
    @@ -762,6 +827,18 @@ const emits = defineEmits(['update:item', 'del']) background-color: #fff; box-shadow: none; border: 1px solid rgba(0, 0, 0, 0.05); + .right-menu-foot { + text-align: right; + padding: 5px; + float: right; + width: 100%; + border-top: 1px solid hsla(0, 0%, 59%, 0.1); + .ed-button { + line-height: 28px; + height: 28px; + min-width: 70px; + } + } .mod-left { font-family: var(--de-custom_font, 'PingFang'); color: rgba(0, 0, 0, 0.65); @@ -809,82 +886,81 @@ const emits = defineEmits(['update:item', 'del']) border-left: 1px solid hsla(0, 0%, 59%, 0.1); } .autochecker-list { - font-family: var(--de-custom_font, 'PingFang'); - color: rgba(0, 0, 0, 0.65); - box-sizing: border-box; width: 100%; - overflow: hidden; - overflow-y: auto; - height: 221px; position: relative; - padding: 0; - li { - direction: ltr; + .select-all { padding: 0 5px; - text-overflow: ellipsis; - overflow: hidden; - color: #333; - white-space: nowrap; - list-style: none; - line-height: 28px; - height: 28px; - width: 100%; - position: relative; - box-sizing: border-box; + .ed-checkbox__label { + font-weight: 400; + } + } - &:hover { - background-color: #f8f8fa; - color: #2153d4; - opacity: 1; - span { - display: block; + .clear-checkbox__label { + display: flex; + align-items: center; + line-height: 32px; + padding: 0 5px; + height: 32px; + font-weight: 400; + width: 100%; + justify-content: space-between; + :nth-child(2) { + height: 26px; + line-height: 26px; + border-radius: 4px; + padding: 0 4px; + color: #3370ff; + &:hover { + background-color: #3370ff1a; } } + } - i { - color: #333; - font-size: 12px; - cursor: pointer; - vertical-align: top; - line-height: 28px; - height: 28px; - display: inline-block; - } + .right-checkbox__label { + text-overflow: ellipsis; + overflow: hidden; + width: 140px; + color: #1f2329; + white-space: nowrap; + font-weight: 400; + font-size: 14px; + } - label { - font-family: var(--de-custom_font, 'PingFang'); - font-size: 12px; - direction: ltr; - color: #333; - box-sizing: border-box; - touch-action: manipulation; - width: 87%; - height: 28px; - line-height: 14px; - padding: 8px 20px; - cursor: pointer; - display: inline-block; - position: relative; - white-space: nowrap; + li { + padding: 0 5px; + list-style: none; + display: flex; + align-items: center; + line-height: 32px; + height: 32px; + width: 100%; + position: relative; + .ed-checkbox__label { text-overflow: ellipsis; overflow: hidden; + width: 140px; + white-space: nowrap; + font-weight: 400; } - span { - display: none; - position: absolute; - width: 14px; - height: 14px; - line-height: 11px; - top: 6px; - right: 5px; - font-size: 15px; + &:hover { + background-color: #1f23291a; + } + + .remove-hover-icon { + width: 16px; + height: 16px; cursor: pointer; - background: #2153d4; - color: #fff; - text-align: center; - border-radius: 999px; + color: #8f959e; + margin: 4px; + &:hover { + width: 24px; + margin: 0px; + height: 24px; + border-radius: 4px; + background-color: #1f23291a; + } } } } @@ -898,7 +974,7 @@ const emits = defineEmits(['update:item', 'del']) height: 30px; width: 100%; font-size: 12px; - line-height: 35px; + line-height: 27px; text-overflow: ellipsis; white-space: nowrap; @@ -918,28 +994,6 @@ const emits = defineEmits(['update:item', 'del']) width: 75px; } } - - .right-menu-foot { - color: rgba(0, 0, 0, 0.65); - font-size: 12px; - box-sizing: border-box; - height: 30px; - text-align: right; - line-height: 30px; - margin-top: 9px; - border-top: 1px solid hsla(0, 0%, 59%, 0.1); - - .footer-left { - box-sizing: border-box; - float: left; - } - - .footer-right { - float: right; - padding-left: 10px; - cursor: pointer; - } - } } }