mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
feat: update to antd 5.0 (#1362)
* feat: update to ant5.X * fix: incompatible styles * fix: adjust the style
This commit is contained in:
@ -858,6 +858,15 @@ export function getLabel(text, tooltip) {
|
||||
);
|
||||
}
|
||||
|
||||
export function getItem(label, key, icon, children, type) {
|
||||
return {
|
||||
key,
|
||||
icon,
|
||||
children,
|
||||
label,
|
||||
type,
|
||||
};
|
||||
}
|
||||
function repeat(str, len) {
|
||||
while (str.length < len) {
|
||||
str += str.substr(0, len - str.length);
|
||||
|
Reference in New Issue
Block a user