Skip to content

Commit

Permalink
feat(components): [select, select-v2] add loading class to validateIc…
Browse files Browse the repository at this point in the history
…on (#19379)

fix(components): [select, select-v2] add loading class to validateIcon
  • Loading branch information
LoTwT authored Jan 2, 2025
1 parent 1ca9d9c commit 6bc4544
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/components/select-v2/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@
</el-icon>
<el-icon
v-if="validateState && validateIcon && needStatusIcon"
:class="[nsInput.e('icon'), nsInput.e('validateIcon')]"
:class="[
nsInput.e('icon'),
nsInput.e('validateIcon'),
nsInput.is('loading', validateState === 'validating'),
]"
>
<component :is="validateIcon" />
</el-icon>
Expand Down
6 changes: 5 additions & 1 deletion packages/components/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@
</el-icon>
<el-icon
v-if="validateState && validateIcon && needStatusIcon"
:class="[nsInput.e('icon'), nsInput.e('validateIcon')]"
:class="[
nsInput.e('icon'),
nsInput.e('validateIcon'),
nsInput.is('loading', validateState === 'validating'),
]"
>
<component :is="validateIcon" />
</el-icon>
Expand Down

0 comments on commit 6bc4544

Please sign in to comment.