fix: complete field and OTP public contracts (HD-07)
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from "vue";
|
||||
import { textFieldProps, useTextField } from "../field/useTextField";
|
||||
import { defineComponent, type SlotsType, type VNode } from "vue";
|
||||
import {
|
||||
textFieldProps,
|
||||
useTextField,
|
||||
type TextFieldRenderProps,
|
||||
} from "../field/useTextField";
|
||||
export default defineComponent({
|
||||
name: "TextField",
|
||||
inheritAttrs: false,
|
||||
props: textFieldProps,
|
||||
slots: Object as SlotsType<{
|
||||
default: (state: TextFieldRenderProps) => VNode[];
|
||||
}>,
|
||||
emits: { "update:modelValue": (_value: string) => true },
|
||||
setup(props, context) {
|
||||
return useTextField(props, context).render;
|
||||
|
||||
Reference in New Issue
Block a user