index.coffee 547 B

1234567891011121314151617181920212223242526
  1. # app/components/Domain/ProductGrid/index.coffee
  2. # Импорт компонентов
  3. module.exports =
  4. name: 'product-grid'
  5. components: {
  6. 'product-card': require 'app/components/Domain/ProductCard/index.coffee'
  7. }
  8. props:
  9. products:
  10. type: Array
  11. default: -> []
  12. loading:
  13. type: Boolean
  14. default: false
  15. methods:
  16. productClick: (productId) ->
  17. @$emit 'product-click', productId
  18. render: (new Function '_ctx', '_cache', globalThis.renderFns['app/components/Domain/ProductGrid/index.pug'])()