Browse Source
remove duplicate judgment (#1432)
Co-authored-by: zhangchao3 <zhangchao3@corp.netease.com>
pull/1446/head
arika163
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
src/directives/loading.ts
|
|
|
@ -24,9 +24,7 @@ const loadingDirective: Directive = { |
|
|
|
if (!instance) return; |
|
|
|
instance.setTip(el.getAttribute('loading-tip')); |
|
|
|
if (binding.oldValue !== binding.value) { |
|
|
|
if (binding.oldValue !== binding.value) { |
|
|
|
instance.setLoading?.(binding.value && !instance.loading); |
|
|
|
} |
|
|
|
instance.setLoading?.(binding.value && !instance.loading); |
|
|
|
} |
|
|
|
}, |
|
|
|
unmounted(el) { |
|
|
|
|