slot.js 236 B

12345678
  1. export default function getSlot(slots, exclude) {
  2. return Object.keys(slots).reduce((lst, name) => {
  3. if (!exclude || exclude.indexOf(name) === -1) {
  4. lst.push(slots[name])
  5. }
  6. return lst;
  7. }, [])
  8. }