feat: improve Select component performance (#1472)

This commit is contained in:
Yaodong Yu
2023-01-12 23:11:11 +08:00
committed by GitHub
parent 6d4f94986e
commit fcdf1e8dd2
12 changed files with 115 additions and 159 deletions

View File

@ -924,6 +924,14 @@ export function getItem(label, key, icon, children, type) {
type,
};
}
export function getOption(label, value) {
return {
label,
value,
};
}
function repeat(str, len) {
while (str.length < len) {
str += str.substr(0, len - str.length);