Browse Source

tableForm组件

master
zhang_li 11 months ago
parent
commit
1dcf78a31b
  1. 27
      src/components/TableForm/src/TableForm.vue

27
src/components/TableForm/src/TableForm.vue

@ -97,31 +97,6 @@
</el-form-item>
<!-- 下拉框 -->
<el-form-item
v-if="row.formType == 'Select'"
:prop="headerItem.field">
<el-select
v-model="row[headerItem.field]"
:clearable="headerItem?.tableForm.clearable || true"
:multiple="headerItem?.tableForm.multiple"
:size="headerItem?.tableForm.size"
:collapse-tags ="headerItem?.tableForm.collapseTags"
:collapse-tags-tooltip ="headerItem?.tableForm.collapseTagsTooltip"
:multiple-limit ="headerItem?.tableForm.multipleLimit"
:disabled="itemIsDisabled(headerItem, row)"
:filterable="headerItem?.tableForm.filterable"
:allow-create="headerItem?.tableForm.allowCreate"
style="width: 100%"
:placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label"
@change="formSelectChange(headerItem.field, $event,row)"
@visible-change="formSelectvVisibleChange(headerItem.field, $event,row)">
<el-option
v-for="op in initSelectOptions(headerItem)"
:label="op.label"
:value="op.value"
:key="op.value" />
</el-select>
</el-form-item>
<!-- <el-form-item
v-if="headerItem?.tableForm?.type == 'Select'"
:prop="headerItem.field">
<el-select
@ -145,7 +120,7 @@
:value="op.value"
:key="op.value" />
</el-select>
</el-form-item> -->
</el-form-item>
<!-- 时间选择器 -->
<el-form-item
v-if="headerItem?.tableForm?.type == 'FormTime'"

Loading…
Cancel
Save