fix: complete field and OTP public contracts (HD-07)

This commit is contained in:
maoyingjie
2026-10-29 09:30:58 +08:00
parent 27cc62e36f
commit 2d7e3d4e1e
26 changed files with 1067 additions and 100 deletions
@@ -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;