mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
17 lines
332 B
Vue
17 lines
332 B
Vue
<script setup lang="ts">
|
|
import { reactive, useTemplateRef } from 'vue'
|
|
|
|
const state = reactive<any>({})
|
|
const form = useTemplateRef('form')
|
|
</script>
|
|
|
|
<template>
|
|
<UForm ref="form" :state>
|
|
<UFormField name="field1">
|
|
<UInput />
|
|
</UFormField>
|
|
<UFormField name="field2" />
|
|
<UFormField />
|
|
</UForm>
|
|
</template>
|