Change the order of v-bind because of migrating vue3

This commit is contained in:
timongh 2023-02-05 05:11:05 +08:00
parent 3b3937975e
commit 6419eec9b3

View File

@ -20,8 +20,8 @@
:is="options.radio ? 'RadioButton' : 'CheckBox'"
v-for="name of Object.keys(options.switches)"
:key="name"
:class="{ dim: isDim(name) }"
v-bind="options.switchProps || {}"
:class="{ dim: isDim(name) }"
:checked="componentOptions[`switch-${name}`]"
@update:checked="componentOptions[`switch-${name}`] = $event"
>
@ -35,8 +35,8 @@
:is="options.radio ? 'RadioButton' : 'CheckBox'"
v-for="name of Object.keys(options.switches)"
:key="name"
:class="{ dim: isDim(name) }"
v-bind="options.switchProps || {}"
:class="{ dim: isDim(name) }"
:checked="componentOptions[`switch-${name}`]"
@update:checked="componentOptions[`switch-${name}`] = $event"
>