Commit bcfadeba741a073bb7f8677171fb592abff1250f

Authored by ww
1 parent ef11abc0

fix: 开发环境下报错BasicForm before initialization BasicTable

1   -import BasicForm from './src/BasicForm.vue';
  1 +export { default as BasicForm } from './src/BasicForm.vue';
2 2
3 3 export * from './src/types/form';
4 4 export * from './src/types/formItem';
... ... @@ -22,4 +22,4 @@ export {
22 22 } from '/@/components/Form/src/externalCompns/components/JEasyCron';
23 23 // Jeecg自定义校验
24 24 export { JCronValidator } from '/@/components/Form/src/externalCompns/components/JEasyCron';
25   -export { BasicForm };
  25 +// export { BasicForm };
... ...
... ... @@ -38,9 +38,6 @@ import ApiSearchSelect from './components/ApiSearchSelect.vue';
38 38 import CustomMinMaxInput from './externalCompns/components/CustomMinMaxInput.vue';
39 39 import StructForm from './externalCompns/components/StructForm/StructForm.vue';
40 40 import ApiSelectScrollLoad from './components/ApiSelectScrollLoad.vue';
41   -import TransferModal from './components/TransferModal.vue';
42   -import TransferTableModal from './components/TransferTableModal.vue';
43   -import ObjectModelValidateForm from './externalCompns/components/ObjectModelValidateForm/ObjectModelValidateForm.vue';
44 41
45 42 const componentMap = new Map<ComponentType, Component>();
46 43
... ... @@ -86,9 +83,6 @@ componentMap.set('ApiSearchSelect', ApiSearchSelect);
86 83 componentMap.set('CustomMinMaxInput', CustomMinMaxInput);
87 84 componentMap.set('StructForm', StructForm);
88 85 componentMap.set('ApiSelectScrollLoad', ApiSelectScrollLoad);
89   -componentMap.set('TransferModal', TransferModal);
90   -componentMap.set('TransferTableModal', TransferTableModal);
91   -componentMap.set('ObjectModelValidateForm', ObjectModelValidateForm);
92 86
93 87 export function add(compName: ComponentType, component: Component) {
94 88 componentMap.set(compName, component);
... ...
... ... @@ -50,6 +50,12 @@
50 50 import { postAddConvertApi } from '/@/api/datamanager/dataManagerApi';
51 51 import { useMessage } from '/@/hooks/web/useMessage';
52 52 import { Button } from '/@/components/Button';
  53 + import { add } from '/@/components/Form/src/componentMap';
  54 + import TransferModal from '/@/components/Form/src/components/TransferModal.vue';
  55 + import TransferTableModal from '/@/components/Form/src/components/TransferTableModal.vue';
  56 +
  57 + add('TransferModal', TransferModal);
  58 + add('TransferTableModal', TransferTableModal);
53 59
54 60 export default defineComponent({
55 61 name: 'ConfigDrawer',
... ...
... ... @@ -127,6 +127,10 @@
127 127 import Action from './cpns/Action.vue';
128 128 import { findOperation } from './config/formatData';
129 129 import { formatToDateTime } from '/@/utils/dateUtil';
  130 + import ObjectModelValidateForm from '/@/components/Form/src/externalCompns/components/ObjectModelValidateForm/ObjectModelValidateForm.vue';
  131 + import { add } from '/@/components/Form/src/componentMap';
  132 +
  133 + add('ObjectModelValidateForm', ObjectModelValidateForm);
130 134
131 135 const emit = defineEmits(['register', 'success']);
132 136 const provideOrgid = ref('');
... ...