Commit 583e23a43c80370ea6d19605697da0637f829eaa
1 parent
5c24d42a
修复 'multiple' is assigned a value but never used no-unused-vars
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/select/select.vue
... | ... | @@ -408,10 +408,10 @@ |
408 | 408 | }; |
409 | 409 | }, |
410 | 410 | getInitialValue(){ |
411 | - const {multiple, value} = this; | |
411 | + const {value} = this; | |
412 | 412 | let initialValue = Array.isArray(value) ? value : [value]; |
413 | 413 | return initialValue.filter((item) => { |
414 | - return Boolean(item) || item === 0 | |
414 | + return Boolean(item) || item === 0; | |
415 | 415 | }); |
416 | 416 | }, |
417 | 417 | processOption(option, values, isFocused){ | ... | ... |