docs: 修复二开自动拆分工具的一些bug
This commit is contained in:
@ -99,9 +99,17 @@ const subFormTmpl = `
|
||||
|
||||
<script>
|
||||
import SubFormV2Setup from '/@/components/Form/src/components/SubFormV2Setup.vue';
|
||||
import { Form } from 'ant-design-vue';
|
||||
const FormItem = Form.Item;
|
||||
const FormItemRest = Form.ItemRest;
|
||||
|
||||
export default {
|
||||
extends: SubFormV2Setup,
|
||||
components: {
|
||||
FormItem,
|
||||
Form,
|
||||
FormItemRest
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const ret = SubFormV2Setup.setup(props, ctx);
|
||||
return {
|
||||
@ -127,18 +135,21 @@ const subFormItem = `
|
||||
>
|
||||
<!-- 这里原先是component is写法,现在需要换成你自己的明细表 -->
|
||||
<!-- 也可以根据v-if渲染不同表格,这样就不需要定义很多次FormItem了 -->
|
||||
<custom-dev-form v-model:value="formModel[schema.field]" :disabled="getDisable" :size="formProps?.size" v-bind="schema.componentProps" />
|
||||
<custom-dev-sub-form v-model:value="formModel[schema.field]" :disabled="getDisable" :size="formProps?.size" v-bind="schema.componentProps" />
|
||||
</FormItem>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import SimpleFormItemSetup from '/@/components/SimpleForm/src/components/SimpleFormItemSetup.vue';
|
||||
import CustomDevSubForm from '/@/views/test/cascadeDemo/components/CascadeDetailTable[count].vue';
|
||||
import CustomDevSubForm from './CustomDevSubForm[count].vue';
|
||||
import { Form } from 'ant-design-vue';
|
||||
const FormItem = Form.Item;
|
||||
|
||||
export default {
|
||||
extends: SimpleFormItemSetup,
|
||||
components: {
|
||||
CustomDevSubForm
|
||||
CustomDevSubForm,
|
||||
FormItem
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const ret = SimpleFormItemSetup.setup(props, ctx);
|
||||
|
||||
Reference in New Issue
Block a user