|
@@ -28,6 +28,12 @@
|
|
:item="item"
|
|
:item="item"
|
|
@change="handleChange(item)"
|
|
@change="handleChange(item)"
|
|
></radioGroupUI>
|
|
></radioGroupUI>
|
|
|
|
+ <textareaUI
|
|
|
|
+ v-if="item.type === 'textarea'"
|
|
|
|
+ v-model="item.value"
|
|
|
|
+ :item="item"
|
|
|
|
+ @change="handleChange(item)"
|
|
|
|
+ ></textareaUI>
|
|
<template v-if="item.slotName">
|
|
<template v-if="item.slotName">
|
|
<slot :name="item.slotName" :item="item"></slot>
|
|
<slot :name="item.slotName" :item="item"></slot>
|
|
</template>
|
|
</template>
|
|
@@ -44,6 +50,7 @@ defineOptions({ name:'components-ct-form'})
|
|
import textUI from './../FormUI/TextInput'
|
|
import textUI from './../FormUI/TextInput'
|
|
import autocompleteUI from './../FormUI/autocomplete'
|
|
import autocompleteUI from './../FormUI/autocomplete'
|
|
import radioGroupUI from './../FormUI/radioGroup'
|
|
import radioGroupUI from './../FormUI/radioGroup'
|
|
|
|
+import textareaUI from './../FormUI/textarea'
|
|
import { ref, defineEmits } from 'vue'
|
|
import { ref, defineEmits } from 'vue'
|
|
const emit = defineEmits(['change', 'inputUpdateAutocomplete'])// 定义一个或多个自定义事件
|
|
const emit = defineEmits(['change', 'inputUpdateAutocomplete'])// 定义一个或多个自定义事件
|
|
const props = defineProps({items: Object})
|
|
const props = defineProps({items: Object})
|