From 8e9634c375bdcb12365d73ef455bd78106720ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E4=B9=88=E4=BA=86?= Date: Fri, 2 Feb 2024 09:29:19 +0800 Subject: [PATCH] =?UTF-8?q?el-select=E9=BB=98=E8=AE=A4=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/header/index.vue | 19 ++++++++++++++----- src/styles/element.scss | 1 + src/views/auth/userList/popupEdit.vue | 7 +++---- .../govern/manage/basic/popupVersion.vue | 4 ++-- src/views/govern/manage/basic/template.vue | 1 - src/views/govern/manage/basic/version.vue | 1 - src/views/govern/manage/factory.vue | 5 ++--- .../setting/dictionary/list/popupEdit.vue | 2 -- 8 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index e860912..6177074 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -81,7 +81,7 @@ const showUnfoldButton = ref(false) const headerFormSecondStyleOpen = { opacity: 1, height: 'auto', - padding: '13px 15px' + padding: '0 15px 13px 15px' } const headerFormSecondStyleClose = { opacity: 0, @@ -116,7 +116,7 @@ const handlerHeight = () => { const computedSearchRow = () => { const headerForm = document.getElementById('header-form') as HTMLElement const headerFormSecond = document.getElementById('header-form-second') as HTMLElement - if(!headerForm) return + if (!headerForm) return // 判断是否需要折叠 if (headerForm.scrollHeight > 50) { showUnfoldButton.value = true @@ -197,9 +197,9 @@ defineExpose({ onComSearch, areaRef }) #header-form-second, #header-form { - display: flex; - flex-wrap: wrap; - transition: all 0.3s; + // display: flex; + // flex-wrap: wrap; + // transition: all 0.3s; } .mlr-12 { @@ -270,4 +270,13 @@ html.dark { } } } +#header-form, +#header-form-second { + :deep(.el-select) { + --el-select-width: 220px; + } + :deep(.el-input) { + --el-input-width: 220px; + } +} diff --git a/src/styles/element.scss b/src/styles/element.scss index c10dd43..8058ed3 100644 --- a/src/styles/element.scss +++ b/src/styles/element.scss @@ -129,3 +129,4 @@ font-weight: 700; } } + diff --git a/src/views/auth/userList/popupEdit.vue b/src/views/auth/userList/popupEdit.vue index ca40329..f63754f 100644 --- a/src/views/auth/userList/popupEdit.vue +++ b/src/views/auth/userList/popupEdit.vue @@ -12,8 +12,7 @@ - - + - + - + - + @@ -98,7 +97,7 @@ - + - + diff --git a/src/views/setting/dictionary/list/popupEdit.vue b/src/views/setting/dictionary/list/popupEdit.vue index 712354d..a5a4b61 100644 --- a/src/views/setting/dictionary/list/popupEdit.vue +++ b/src/views/setting/dictionary/list/popupEdit.vue @@ -16,7 +16,6 @@