JSFiddle - React, Tailwind, and code Playground
JavaScript
export default {
data: () => ({
dialog: false,
}),
props: ['newday'],
computed: {
},
watch: {
newday: (newDay, oldDay) => {
console.log('oldDay:', oldDay)
console.log('newDay:', newDay)
this.changeShowStatus()
}
},
methods: {
changeShowStatus(){
this.dialog = !this.dialog
},
},
mounted(){
}
}