nostrmarket/static/components/customer-stall-list/customer-stall-list.js
2023-07-18 16:40:43 +02:00

28 lines
534 B
JavaScript

async function customerStallList(path) {
const template = await loadTemplateAsync(path)
Vue.component('customer-stall-list', {
name: 'customer-stall-list',
template,
props: ['stalls'],
data: function () {
return {
showStalls: true
}
},
watch: {
stalls() {
this.showProducts = false
setTimeout(() => { this.showProducts = true }, 0)
}
},
computed: {},
methods: {
},
created() {
console.log('### stalls', this.stalls)
}
})
}