impl: blood calc, prosedur picker

wip:
radio bloods(note. masih crash dan modelValue ga bisa liftup)

Picker Prosedur
- cherry-pick
- done:  integrasi prosedur w/ therapy-protocol-
This commit is contained in:
Khafid Prayoga
2025-11-26 14:00:15 +07:00
parent 5ad286a44e
commit 71c2833bf2
7 changed files with 167 additions and 30 deletions
+4 -6
View File
@@ -24,6 +24,8 @@ const props = defineProps<{
iconName?: string
}>()
const { class: containerClass } = props
function handleInput(event: Event) {
const target = event.target as HTMLInputElement
let value = target.value
@@ -69,18 +71,14 @@ const hasError = computed(() => !!fieldError.value)
:name="fieldName"
>
<FormItem>
<FormControl class="relative">
<FormControl :class="cn('relative', containerClass)">
<div class="relative w-full max-w-sm items-center">
<Input
:disabled="isDisabled"
v-bind="componentField"
:placeholder="placeholder"
:maxlength="maxLength"
:class="
cn(
hasError && 'border-red-500 focus-visible:border-red-500 focus-visible:ring-red-500',
)
"
:class="cn(hasError && 'border-red-500 focus-visible:border-red-500 focus-visible:ring-red-500')"
autocomplete="off"
aria-autocomplete="none"
autocorrect="off"