const PANELS = {
PANEL_0: 1,
PANEL_1: 2,
PANEL_2: 3,
PANEL_3: 4,
};
<div v-if="currentPanel == PANELS.PANEL_0">
<button type="button" class="btn btn-default" v-on:click="showPanel(PANELS.PANEL_1)">
data(){
return{
currentPanel: PANELS.PANEL_0,
}
}
data () {
return {
currentPanel: PANELS.PANEL_0,
PANELS
}
}