mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
configpanels: allow slots to be passed to ConfigPanel views
This commit is contained in:
parent
a216d59098
commit
3a3846bdac
3 changed files with 11 additions and 3 deletions
|
@ -91,7 +91,7 @@ export default {
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
border-bottom: solid $border-width $gray-500;
|
border-bottom: solid $border-width $gray-500;
|
||||||
}
|
}
|
||||||
.panel-section:not(:last-child) {
|
::v-deep .panel-section:not(:last-child) {
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
:routes="routes_"
|
:routes="routes_"
|
||||||
v-bind="{ panels, forms, v: $v, ...$attrs }"
|
v-bind="{ panels, forms, v: $v, ...$attrs }"
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
/>
|
>
|
||||||
|
<slot name="tab-top" slot="tab-top"></slot>
|
||||||
|
<slot name="tab-before" slot="tab-before"></slot>
|
||||||
|
<slot name="tab-after" slot="tab-after"></slot>
|
||||||
|
</routable-tabs>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -13,7 +13,11 @@
|
||||||
</b-card-header>
|
</b-card-header>
|
||||||
|
|
||||||
<!-- Bind extra props to the child view and forward child events to parent -->
|
<!-- Bind extra props to the child view and forward child events to parent -->
|
||||||
<router-view v-bind="$attrs" v-on="$listeners" />
|
<router-view v-bind="$attrs" v-on="$listeners">
|
||||||
|
<slot name="tab-top" slot="tab-top"></slot>
|
||||||
|
<slot name="tab-before" slot="tab-before"></slot>
|
||||||
|
<slot name="tab-after" slot="tab-after"></slot>
|
||||||
|
</router-view>
|
||||||
</b-card>
|
</b-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue