using section for tabs
This commit is contained in:
@@ -36,11 +36,12 @@ script#macros-template(type="text/x-template")
|
|||||||
.fa.fa-plus
|
.fa.fa-plus
|
||||||
|
|
||||||
.tabs
|
.tabs
|
||||||
input(type="radio",:id="'tab'+index",v-for="(index.macros) in config.macros",
|
section.tab-cards(v-for="(index,macros) in config.macros")
|
||||||
:name="'tab'+index", @click="tab=index.toString()")
|
input(type="radio",:id="'tab'+index",
|
||||||
|
:name="'tab'+index", @click="tab=index.toString()")
|
||||||
label(:for="'tab'+index",style="height:50px;width:100px") Macros {{index+1}}
|
label(:for="'tab'+index",style="height:50px;width:100px") Macros {{index+1}}
|
||||||
|
|
||||||
section.tab-content(v-for="(index,macros) in config.macros",:id="'content'+index" ,v-show="tab === index")
|
section.tab-content(v-for="(index,macros) in config.macros",:id="'content'+index" ,v-show="tab == index")
|
||||||
.macros-form
|
.macros-form
|
||||||
p.title Name
|
p.title Name
|
||||||
.input-container
|
.input-container
|
||||||
|
|||||||
Reference in New Issue
Block a user