index.js 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * 导出选择器
  3. */
  4. import CategoryPicker from './CategoryPicker'
  5. import GoodsPicker from './GoodsPicker'
  6. import ImagePicker from './ImagePicker'
  7. import PriceRange from './PriceRange'
  8. import RegionPicker from './RegionPicker'
  9. import TableLayout from './TableLayout'
  10. import TableSearch from './TableSearch'
  11. import TextPicker from './TextPicker'
  12. import YearMonthPicker from './YearMonthPicker'
  13. import MemberPicker from './MemberPicker'
  14. const components = {
  15. CategoryPicker,
  16. GoodsPicker,
  17. PriceRange,
  18. ImagePicker,
  19. RegionPicker,
  20. TableLayout,
  21. TableSearch,
  22. TextPicker,
  23. YearMonthPicker,
  24. MemberPicker
  25. }
  26. components.install = function(Vue, opts) {
  27. Object.keys(components).forEach(key => {
  28. key !== 'install' && Vue.component(components[key].name, components[key])
  29. })
  30. }
  31. export {
  32. CategoryPicker,
  33. GoodsPicker,
  34. PriceRange,
  35. ImagePicker,
  36. RegionPicker,
  37. TableLayout,
  38. TableSearch,
  39. TextPicker,
  40. YearMonthPicker
  41. }
  42. export default components