@ecwenze1/vue-datepicker
Version:
A clean datepicker made with VueJs
24 lines (22 loc) • 410 B
JavaScript
const bootable = {
name: 'Bootable',
data: () => ({
isBooted: false,
}),
computed: {
hasContent () {
return this.isBooted || this.isActive;
},
},
watch: {
isActive () {
this.isBooted = true;
},
},
methods: {
showLazyContent (content) {
return (this.hasContent && content) ? content() : [this.$createElement()];
},
},
};
export default bootable;