add dropdown component

This commit is contained in:
2023-03-31 17:35:36 +08:00
parent b9447997fe
commit 41b1bbd7d6
20 changed files with 575 additions and 74 deletions

View File

@ -26,10 +26,7 @@ function padStart(s, num, char) {
if (nullOrEmpty(s) || isNaN(num) || num <= s.length) {
return s;
}
if (char == null) {
char = ' ';
}
return char.repeat(num - s.length);
return (char ?? ' ').repeat(num - s.length);
}
export {