File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
playground/app/components Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22defineProps ({
3- disabled : Boolean ,
3+ isButtonEnabled : Boolean ,
44})
55 </script >
66
77<template >
88 <UButton
99 type =" submit"
1010 color =" neutral"
11- :disabled =" !disabled "
11+ :disabled =" !isButtonEnabled "
1212 class =" w-full flex justify-center cursor-pointer"
13- :class =" disabled ? 'bg-primary' : ''"
13+ :class =" isButtonEnabled ? 'bg-primary' : ''"
1414 label =" My custom send button"
1515 />
1616</template >
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ const submitButtonComponent = computed(() => {
144144
145145 <div class =" space-y-2" >
146146 <div v-if =" submitButtonComponent" >
147- <component :is =" toRaw(submitButtonComponent)" v-bind =" { disabled: isButtonEnabled }" />
147+ <component :is =" toRaw(submitButtonComponent)" v-bind =" { isButtonEnabled }" />
148148 </div >
149149 <UButton
150150 v-else
You can’t perform that action at this time.
0 commit comments