12345678910111213141516 |
- 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
- };
|