index.sjs 246 B

12345678910
  1. function getClass(size) {
  2. var list = ['x-small', 'small', 'medium', 'large'];
  3. if (list.indexOf(size) >= 0) {
  4. return "ant-skeleton-avatar-".concat(size);
  5. }
  6. return 'ant-skeleton-avatar-medium';
  7. }
  8. export default {
  9. getClass: getClass
  10. };