30 lines
816 B
Vue
30 lines
816 B
Vue
<script setup lang="ts">
|
|
interface Props {
|
|
formItemList: any
|
|
}
|
|
|
|
defineProps<Props>()
|
|
</script>
|
|
|
|
<template>
|
|
<el-form :inline="true" label-width="auto" size="small">
|
|
<el-form-item v-for="item in formItemList" :key="item.v_label" :label="item.v_label">
|
|
<el-input
|
|
:placeholder="`请输入${item.v_label}`"
|
|
clearable
|
|
style="width: 120px"
|
|
v-if="item.v_typ === 'ipt'" />
|
|
<el-select
|
|
:placeholder="`请选择${item.v_label}`"
|
|
v-if="item.v_typ === 'sel'"
|
|
style="width: 120px"
|
|
clearable>
|
|
<el-option></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<slot></slot>
|
|
</el-form>
|
|
</template>
|
|
|
|
<style></style>
|