docs: 更新自动拆分组件和二开文档

fix: 修复响应式换行失效的bug
fix: 修复下拉框staticOptions会生成无用代码的bug
This commit is contained in:
gaoyunqi
2024-06-13 13:47:01 +08:00
parent c0b51c4e20
commit 1ed4b6f5d4
5 changed files with 198 additions and 8 deletions

View File

@ -3,8 +3,8 @@
<Form ref="formRef" :label-col="getProps?.labelCol" :labelAlign="getProps?.labelAlign" :layout="getProps?.layout" :model="formModel" :wrapper-col="getProps?.wrapperCol" @keypress.enter="handleEnterPress">
<Row v-bind="getRow">
<template v-for="schema in getSchemas" :key="schema.field">
<div v-if="schema?.componentProps.respBreakLine" style="width: 100%; height: 1px"></div>
<Col v-if="getIfShow(schema, formModel[schema.field])" v-show="getIsShow(schema, formModel[schema.field])" :span="getColWidth(schema)">
<div v-if="schema?.componentProps.respBreakLine" style="width: 100%; height: 1px"></div>
<template v-if="showComponent(schema) && schema.type !== 'slot'">
<SimpleFormItem v-model:value="formModel[schema.field]" :form-api="formApi" :isWorkFlow="isWorkFlow" :refreshFieldObj="refreshFieldObj" :schema="schema" />
</template>