refactor: v-bind first

This commit is contained in:
axolotle 2024-03-04 04:57:03 +01:00
parent 4abbb4b2fc
commit 298dc73dfd
5 changed files with 5 additions and 5 deletions

View file

@ -2,8 +2,8 @@
<div class="config-panel"> <div class="config-panel">
<RoutableTabs <RoutableTabs
v-if="routes_.length > 1" v-if="routes_.length > 1"
:routes="routes_"
v-bind="{ panels, forms, v: v$, ...$attrs }" v-bind="{ panels, forms, v: v$, ...$attrs }"
:routes="routes_"
v-on="$listeners" v-on="$listeners"
> >
<template #tab-top> <template #tab-top>

View file

@ -1,5 +1,5 @@
<template> <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 --> <!-- STATUS -->
<span <span
class="status" class="status"

View file

@ -11,8 +11,8 @@
<slot v-bind="{ self: { ...props, state }, touch }"> <slot v-bind="{ self: { ...props, state }, touch }">
<!-- if no component was passed as slot, render a component from the props --> <!-- if no component was passed as slot, render a component from the props -->
<Component <Component
:is="component"
v-bind="props" v-bind="props"
:is="component"
v-on="$listeners" v-on="$listeners"
:value="value" :value="value"
:state="state" :state="state"

View file

@ -1,5 +1,5 @@
<template> <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"> <div v-if="!noStatus" class="yuno-list-group-item-status">
<YIcon v-if="_icon" :iname="_icon" :class="['icon-' + variant]" /> <YIcon v-if="_icon" :iname="_icon" :class="['icon-' + variant]" />
</div> </div>

View file

@ -186,8 +186,8 @@
<template v-for="(field, fname) in fields"> <template v-for="(field, fname) in fields">
<Component <Component
v-if="field.visible" v-if="field.visible"
:is="field.is"
v-bind="field.props" v-bind="field.props"
:is="field.is"
v-model="form[fname]" v-model="form[fname]"
:validation="v$.form[fname]" :validation="v$.form[fname]"
:key="fname" :key="fname"