mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
refactor: v-bind
first
This commit is contained in:
parent
4abbb4b2fc
commit
298dc73dfd
5 changed files with 5 additions and 5 deletions
|
@ -2,8 +2,8 @@
|
|||
<div class="config-panel">
|
||||
<RoutableTabs
|
||||
v-if="routes_.length > 1"
|
||||
:routes="routes_"
|
||||
v-bind="{ panels, forms, v: v$, ...$attrs }"
|
||||
:routes="routes_"
|
||||
v-on="$listeners"
|
||||
>
|
||||
<template #tab-top>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="query-header w-100" v-on="$listeners" v-bind="$attrs">
|
||||
<div v-bind="$attrs" class="query-header w-100" v-on="$listeners">
|
||||
<!-- STATUS -->
|
||||
<span
|
||||
class="status"
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
<slot v-bind="{ self: { ...props, state }, touch }">
|
||||
<!-- if no component was passed as slot, render a component from the props -->
|
||||
<Component
|
||||
:is="component"
|
||||
v-bind="props"
|
||||
:is="component"
|
||||
v-on="$listeners"
|
||||
:value="value"
|
||||
:state="state"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<BListGroupItem class="yuno-list-group-item" :class="_class" v-bind="$attrs">
|
||||
<BListGroupItem v-bind="$attrs" class="yuno-list-group-item" :class="_class">
|
||||
<div v-if="!noStatus" class="yuno-list-group-item-status">
|
||||
<YIcon v-if="_icon" :iname="_icon" :class="['icon-' + variant]" />
|
||||
</div>
|
||||
|
|
|
@ -186,8 +186,8 @@
|
|||
<template v-for="(field, fname) in fields">
|
||||
<Component
|
||||
v-if="field.visible"
|
||||
:is="field.is"
|
||||
v-bind="field.props"
|
||||
:is="field.is"
|
||||
v-model="form[fname]"
|
||||
:validation="v$.form[fname]"
|
||||
:key="fname"
|
||||
|
|
Loading…
Reference in a new issue