import { VNode } from 'vue' ; import { CreateInput } from '@/lib/CreateInput' ; import { FieldElement } from '@/components/FieldElement' ; import { TextareaComponent , InputField } from '../../types' ; export const TextareaElement = { name : 'TextareaElement' , functional : true , render ( h , { data , props , children } ) { return h ( FieldElement , data , [ CreateInput < InputField > ( h , 'textarea' , data , props . field . value ) , ... ( children || [ ] ) ] ) ; } } ;