16 lines
388 B
Plaintext
16 lines
388 B
Plaintext
![]() |
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
|
||
|
};
|