diff --git a/packages/theme-saas/src/autocomplete/index.less b/packages/theme-saas/src/autocomplete/index.less index 6285fce8e3..92c1262177 100644 --- a/packages/theme-saas/src/autocomplete/index.less +++ b/packages/theme-saas/src/autocomplete/index.less @@ -8,6 +8,7 @@ .@{autocomplete-prefix-cls} { @apply relative; @apply inline-block; + @apply w-full; &.show-auto-width { @apply w-full; @@ -30,7 +31,8 @@ } // 兼容ie10-ie11 - @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { + @media screen and (-ms-high-contrast: active), + (-ms-high-contrast: none) { &__wrap { margin-bottom: -17px !important; @apply ~'pb-1.5'; @@ -69,6 +71,7 @@ } &:only-of-type { + &, &:hover { @apply bg-color-bg-3; @@ -108,4 +111,4 @@ @apply ~'mt-0.5'; } } -} +} \ No newline at end of file diff --git a/packages/theme/src/autocomplete/index.less b/packages/theme/src/autocomplete/index.less index 9c2abfbbdd..ff617bbfcd 100644 --- a/packages/theme/src/autocomplete/index.less +++ b/packages/theme/src/autocomplete/index.less @@ -18,6 +18,7 @@ .@{autocomplete-prefix-cls} { position: relative; display: inline-block; + width: 100%; &.show-auto-width { width: 100%; @@ -75,4 +76,4 @@ } } } -} +} \ No newline at end of file