Commit 61f2b8af authored by hetech's avatar hetech Committed by GitHub

Cascader: set separator when filtering (#13389)

parent bf7bb4b6
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment