UNPKG

shineout

Version:

Shein 前端组件库

27 lines (22 loc) 490 B
import L from './List'; import hidable from '../hoc/hidable'; var List = function List(type, duration, display) { switch (duration) { case 'fast': duration = 240; break; case 'slow': duration = 480; break; default: if (typeof duration !== 'number') duration = 360; break; } if (typeof type === 'string') type = [type]; return hidable(L, { type: type, duration: duration, display: display }); }; export default List;