index.js 249 B

12345678910111213
  1. import common from './common'
  2. const templates = {
  3. ...common
  4. }
  5. const templateArray = []
  6. Object.keys(common).forEach(key => {
  7. if (common[key].dataTpl) templateArray.push(common[key].dataTpl)
  8. })
  9. export { templateArray }
  10. export default templates