|
|
@ -3,7 +3,8 @@ |
|
|
|
<div v-for="(item, index) in options" :key="`${item.key}|${index}`" class="item"> |
|
|
|
<span v-if="item.prefix" class="prefix" :style="item.prefix.style">{{ item.prefix.text }}</span> |
|
|
|
<!-- <component class="unknown" :is="getComponent(item.type)" v-bind="getBindData(item)" v-model="data[item.key]" /> --> |
|
|
|
<ElFormItem :rules="getRules({ ...item, label: item.label || _config.label, required: _config.required })"> |
|
|
|
<ElFormItem :prop="item.key" |
|
|
|
:rules="getRules({ ...item, label: item.label || _config.label, required: _config.required })"> |
|
|
|
<ProxyCom class="unknown" :value="getValue(item)" :item="item" @update:value="data => updateValue(item, data)" /> |
|
|
|
</ElFormItem> |
|
|
|
|
|
|
|