mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 12:32:17 +08:00
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:
@ -279,9 +279,9 @@ describe('Autocomplete.vue', () => {
|
|||||||
vi.runAllTimers()
|
vi.runAllTimers()
|
||||||
await nextTick()
|
await nextTick()
|
||||||
|
|
||||||
expect(document.body.querySelector('.el-icon-loading')).toBeDefined()
|
expect(document.body.querySelector('.el-icon.is-loading')).toBeDefined()
|
||||||
await wrapper.setProps({ hideLoading: true })
|
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 () => {
|
test('selectWhenUnmatched', async () => {
|
||||||
|
@ -71,6 +71,7 @@
|
|||||||
@include when(loading) {
|
@include when(loading) {
|
||||||
li {
|
li {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
cursor: default;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
line-height: 100px;
|
line-height: 100px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@ -81,9 +82,5 @@
|
|||||||
background-color: getCssVar('bg-color', 'overlay');
|
background-color: getCssVar('bg-color', 'overlay');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& .#{$namespace}-icon-loading {
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
@use 'mixins/mixins' as *;
|
@use 'mixins/mixins' as *;
|
||||||
@use 'common/var' as *;
|
@use 'common/var' as *;
|
||||||
|
|
||||||
.#{$namespace}-icon-loading {
|
|
||||||
animation: rotating 2s linear infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
.#{$namespace}-icon--right {
|
.#{$namespace}-icon--right {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user