mirror of https://github.com/ElemeFE/element
Cascader: set separator when filtering (#13389)
parent
bf7bb4b6f5
commit
61f2b8afae
|
@ -367,7 +367,7 @@ export default {
|
|||
const keywordIndex = label.toLowerCase().indexOf(inputValue.toLowerCase());
|
||||
const labelPart = label.slice(keywordIndex, inputValue.length + keywordIndex);
|
||||
const node = keywordIndex > -1 ? this.highlightKeyword(label, labelPart) : label;
|
||||
return index === 0 ? node : [' / ', node];
|
||||
return index === 0 ? node : [` ${this.separator} `, node];
|
||||
});
|
||||
},
|
||||
highlightKeyword(label, keyword) {
|
||||
|
|
Loading…
Reference in New Issue