Files

16 lines
388 B
Plaintext
Raw Permalink Normal View History

2025-08-18 09:11:51 +08:00
function getLoadingColor(color) {
if (typeof color === 'string' && color[0] === '#') {
return color.slice(1);
}
}
function getClass(size) {
var list = ['small', 'medium', 'large', 'x-large'];
if (list.indexOf(size) >= 0) {
return "ant-loading-".concat(size);
}
return 'ant-loading-medium';
}
export default {
getLoadingColor: getLoadingColor,
getClass: getClass
};