From 3f5058897f9b4a5d2026b0c3b69cbdaf9071e4cb Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 20 Feb 2025 16:34:39 +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 --- core/core-frontend/src/locales/en.ts | 2 + core/core-frontend/src/locales/tw.ts | 2 + core/core-frontend/src/locales/zh-CN.ts | 2 + .../filter/auth-tree-chart/FilterFiled.vue | 388 ++++++++++-------- .../editor/filter/auth-tree/FilterFiled.vue | 349 +++++++++------- 5 files changed, 428 insertions(+), 315 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 6c1fc50046..23d988f050 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -10,6 +10,8 @@ export default { dateRange: 'Date Range Picker', add_component_hint: 'Click or drag the component on the left to add a field' }, + list_selection: 'List selection', + date_setting: 'Date setting', openMobileTerminal: 'Open mobile terminal', watermarkManagement: 'Watermark Management', inputText: 'Please enter', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index 3a954c2e41..6334b1aaf9 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -10,6 +10,8 @@ export default { dateRange: '時間範圍', add_component_hint: '點選或拖曳左側元件新增欄位' }, + list_selection: '清單選擇', + date_setting: '日期設定', openMobileTerminal: '開啟行動端', watermarkManagement: '水印管理', inputText: '請輸入', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 88dd31ea40..236362c413 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -2,6 +2,8 @@ export default { common: { timeout_tips: '请求超时,请稍后再试', watermarkManagement: '水印管理', + list_selection: '列表选择', + date_setting: '日期设置', component: { input: '单行输入', textarea: '多行输入', diff --git a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/FilterFiled.vue b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/FilterFiled.vue index 1e02c93b52..625b410357 100644 --- a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/FilterFiled.vue +++ b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree-chart/FilterFiled.vue @@ -1,5 +1,6 @@ @@ -529,39 +603,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') }}
@@ -588,33 +658,28 @@ const emits = defineEmits(['update:item', 'del'])
-
    -
  • - - - - - - -
  • -
-
- - - {{ t('auth.sure') }} - - + +
  • +
    {{ i }}
    + + + +
  • +
    + +
    +
    + + {{ t('common.cancel') }} + + + {{ t('auth.sure') }} +
    @@ -629,14 +694,16 @@ const emits = defineEmits(['update:item', 'del']) class="create-dialog" append-to-body v-model="dialogVisible" - title="日期设置" + :title="t('common.date_setting')" width="420" > @@ -929,6 +996,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); @@ -976,82 +1055,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; + } } } } @@ -1065,7 +1143,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; @@ -1085,28 +1163,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; - } - } } } diff --git a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree/FilterFiled.vue b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree/FilterFiled.vue index 241c6a3845..6a63e23396 100644 --- a/core/core-frontend/src/views/chart/components/editor/filter/auth-tree/FilterFiled.vue +++ b/core/core-frontend/src/views/chart/components/editor/filter/auth-tree/FilterFiled.vue @@ -1,5 +1,6 @@ @@ -379,39 +451,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') }}
    @@ -438,33 +506,28 @@ const emits = defineEmits(['update:item', 'del'])
    -
      -
    • - - - - - - -
    • -
    -
    - - - {{ t('auth.sure') }} - - + +
  • +
    {{ i }}
    + + + +
  • +
    + +
    +
    + + {{ t('common.cancel') }} + + + {{ t('auth.sure') }} +
    @@ -764,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); @@ -811,82 +886,80 @@ 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; - } - - 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; + .right-checkbox__label { + text-overflow: ellipsis; + overflow: hidden; + width: 140px; + color: #1f2329; + white-space: nowrap; + font-weight: 400; + font-size: 14px; + } + 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; + } } } } @@ -900,7 +973,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; @@ -920,28 +993,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; - } - } } }