@ecomplus/storefront-components
Version:
Vue components for E-Com Plus Storefront
36 lines (30 loc) • 468 B
JavaScript
import { i19close } from '@ecomplus/i18n'
import { i18n } from '@ecomplus/utils'
export default {
name: 'AAlert',
props: {
canShow: {
type: Boolean,
default: true
},
variant: {
type: String,
default: 'warning'
}
},
data () {
return {
count: 1
}
},
computed: {
i19close: () => i18n(i19close)
},
watch: {
canShow (canShow) {
if (canShow) {
this.count++
}
}
}
}