mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
fix(front): bind additional attributes to Switch component in SwitchField for improved flexibility
This commit is contained in:
@@ -12,6 +12,6 @@ const { value } = useField<boolean>(props.name, props?.rules)
|
||||
<template>
|
||||
<div class="flex flex-row gap-2 items-center">
|
||||
<Label v-if="label">{{ label }}</Label>
|
||||
<Switch v-model="value" />
|
||||
<Switch v-model="value" v-bind="$attrs" />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user