mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-30 14:23:22 +08:00
17 lines
357 B
Vue
17 lines
357 B
Vue
<template>
|
|
<input v-if="model" v-model="model[name]" type="hidden" />
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { FieldProps, HiddenConfig } from '../schema';
|
|
import { useAddField } from '../utils/useAddField';
|
|
|
|
defineOptions({
|
|
name: 'MFormHidden',
|
|
});
|
|
|
|
const props = defineProps<FieldProps<HiddenConfig>>();
|
|
|
|
useAddField(props.prop);
|
|
</script>
|