Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sidebar:
- option1.title
- option2.title(if "options" exists, b-collapse is rendered here)
- option2.title(lack of "options", b-collapse doesn't render here )
- option2.title(same logic as above)
- option1.title
- option2.title(if "options" exists, b-collapse is rendered here)
- option2.title(lack of "options", b-collapse doesn't render here )
- option2.title(same logic as above)
- <b-list-group :key="option1.id" v-for="option1 in category">
- FIRST LEVEL
- <b-list-group-item ><span>{{ option1.title }}</span></b-list-group-item>
- SECOND LEVEL
- <b-list-group-item v-b-toggle.collapse-1 @click.stop="toShow" class="subCategory" role="button" :key="option2.id" v-for="option2 in option1.subCategory">
- <!-- Подкатегории -->
- <a>{{ option2.title }}</a>
- <b-collapse id="collapse-1" v-if="typeof option2.options !=
- 'undefined'">
- <b-list-group class="d-md-none d-lg-none d-sm-block" >
- <ul class="list-group">
- THIRD LEVEL
- <router-link class="list-group-item" to="formProperty"
- :key="option3.id" v-for="option3 in option2.options">
- <!-- Опций -->
- {{ option3.title }}
- </router-link>
- </ul>
- </b-list-group>
- </b-collapse>
- </b-list-group-item>
- </b-list-group>
- data(){
- return {
- category : [
- {
- "title" : "ФИЗ.ЛИЦАМ",
- subCategory: [
- {
- "title" : "НАЛОГИ",
- "options": [
- { "title" : 'НАЛОГ НА ИМУЩЕСТВО' },
- { "title" : 'НАЛОГ НА ИМУЩЕСТВО(ПЕНИ)' },
- { "title" : 'ЗЕМЕЛЬНЫЙ НАЛОГ' },
- { "title" : 'ЗЕМЕЛЬНЫЙ НАЛОГ(ПЕНИ)' },
- { "title" : 'СОЦИАЛЬНЫЙ НАЛОГ' },
- { "title" : 'СОЦИАЛЬНЫЙ НАЛОГ(ПЕНИ)' },
- { "title" : 'ИПН НЕОБЛАГАЕМЫЙ' },
- { "title" : 'ИПН НЕОБЛАГАЕМЫЙ(ПЕНИ)' },
- { "title" : 'ИПН ОБЛАГАЕМЫЙ' },
- { "title" : 'ИПН ОБЛАГАЕМЫЙ(ПЕНИ)' }
- ]
- },
- {
- "title": "ШТРАФЫ",
- "id": 19,
- "url": "/form/19"
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement