index.sjs 235 B

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