add ace-editor

This commit is contained in:
jxxghp
2024-02-08 19:56:28 +08:00
parent 3ab0229275
commit 6695fd8c14
5 changed files with 83 additions and 3 deletions

View File

@@ -35,12 +35,14 @@ const formData = ref<any>(elementProps.form || {})
v-if="!formItem.html"
v-bind="formItem.props"
v-model="formData[formItem.props?.model || '']"
v-model:value="formData[formItem.props?.modelvalue || '']"
>
{{ formItem.text }}
<FormRender
v-for="(innerItem, innerIndex) in (formItem.content || [])"
:key="innerIndex"
v-model="formData[innerItem.props?.model || '']"
v-model:value="formData[formItem.props?.modelvalue || '']"
:config="innerItem"
:form="formData"
/>