style(components): remove unused icon class & autocomplete tweaks (#21565)

* style(components): remove unused icon class & autocomplete tweaks

* fix: review

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
This commit is contained in:
Noblet Ouways
2025-08-01 11:16:15 +02:00
committed by GitHub
parent c1b3ace687
commit 24cfc3685d
3 changed files with 3 additions and 10 deletions

View File

@ -279,9 +279,9 @@ describe('Autocomplete.vue', () => {
vi.runAllTimers()
await nextTick()
expect(document.body.querySelector('.el-icon-loading')).toBeDefined()
expect(document.body.querySelector('.el-icon.is-loading')).toBeDefined()
await wrapper.setProps({ hideLoading: true })
expect(document.body.querySelector('.el-icon-loading')).toBeNull()
expect(document.body.querySelector('.el-icon.is-loading')).toBeNull()
})
test('selectWhenUnmatched', async () => {

View File

@ -71,6 +71,7 @@
@include when(loading) {
li {
text-align: center;
cursor: default;
height: 100px;
line-height: 100px;
font-size: 20px;
@ -81,9 +82,5 @@
background-color: getCssVar('bg-color', 'overlay');
}
}
& .#{$namespace}-icon-loading {
vertical-align: middle;
}
}
}

View File

@ -1,10 +1,6 @@
@use 'mixins/mixins' as *;
@use 'common/var' as *;
.#{$namespace}-icon-loading {
animation: rotating 2s linear infinite;
}
.#{$namespace}-icon--right {
margin-left: 5px;
}