Commit bcfadeba741a073bb7f8677171fb592abff1250f
1 parent
ef11abc0
fix: 开发环境下报错BasicForm before initialization BasicTable
Showing
4 changed files
with
12 additions
and
8 deletions
| 1 | -import BasicForm from './src/BasicForm.vue'; | 1 | +export { default as BasicForm } from './src/BasicForm.vue'; | 
| 2 | 2 | ||
| 3 | export * from './src/types/form'; | 3 | export * from './src/types/form'; | 
| 4 | export * from './src/types/formItem'; | 4 | export * from './src/types/formItem'; | 
| @@ -22,4 +22,4 @@ export { | @@ -22,4 +22,4 @@ export { | ||
| 22 | } from '/@/components/Form/src/externalCompns/components/JEasyCron'; | 22 | } from '/@/components/Form/src/externalCompns/components/JEasyCron'; | 
| 23 | // Jeecg自定义校验 | 23 | // Jeecg自定义校验 | 
| 24 | export { JCronValidator } from '/@/components/Form/src/externalCompns/components/JEasyCron'; | 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,9 +38,6 @@ import ApiSearchSelect from './components/ApiSearchSelect.vue'; | ||
| 38 | import CustomMinMaxInput from './externalCompns/components/CustomMinMaxInput.vue'; | 38 | import CustomMinMaxInput from './externalCompns/components/CustomMinMaxInput.vue'; | 
| 39 | import StructForm from './externalCompns/components/StructForm/StructForm.vue'; | 39 | import StructForm from './externalCompns/components/StructForm/StructForm.vue'; | 
| 40 | import ApiSelectScrollLoad from './components/ApiSelectScrollLoad.vue'; | 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 | const componentMap = new Map<ComponentType, Component>(); | 42 | const componentMap = new Map<ComponentType, Component>(); | 
| 46 | 43 | ||
| @@ -86,9 +83,6 @@ componentMap.set('ApiSearchSelect', ApiSearchSelect); | @@ -86,9 +83,6 @@ componentMap.set('ApiSearchSelect', ApiSearchSelect); | ||
| 86 | componentMap.set('CustomMinMaxInput', CustomMinMaxInput); | 83 | componentMap.set('CustomMinMaxInput', CustomMinMaxInput); | 
| 87 | componentMap.set('StructForm', StructForm); | 84 | componentMap.set('StructForm', StructForm); | 
| 88 | componentMap.set('ApiSelectScrollLoad', ApiSelectScrollLoad); | 85 | componentMap.set('ApiSelectScrollLoad', ApiSelectScrollLoad); | 
| 89 | -componentMap.set('TransferModal', TransferModal); | ||
| 90 | -componentMap.set('TransferTableModal', TransferTableModal); | ||
| 91 | -componentMap.set('ObjectModelValidateForm', ObjectModelValidateForm); | ||
| 92 | 86 | ||
| 93 | export function add(compName: ComponentType, component: Component) { | 87 | export function add(compName: ComponentType, component: Component) { | 
| 94 | componentMap.set(compName, component); | 88 | componentMap.set(compName, component); | 
| @@ -50,6 +50,12 @@ | @@ -50,6 +50,12 @@ | ||
| 50 | import { postAddConvertApi } from '/@/api/datamanager/dataManagerApi'; | 50 | import { postAddConvertApi } from '/@/api/datamanager/dataManagerApi'; | 
| 51 | import { useMessage } from '/@/hooks/web/useMessage'; | 51 | import { useMessage } from '/@/hooks/web/useMessage'; | 
| 52 | import { Button } from '/@/components/Button'; | 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 | export default defineComponent({ | 60 | export default defineComponent({ | 
| 55 | name: 'ConfigDrawer', | 61 | name: 'ConfigDrawer', | 
| @@ -127,6 +127,10 @@ | @@ -127,6 +127,10 @@ | ||
| 127 | import Action from './cpns/Action.vue'; | 127 | import Action from './cpns/Action.vue'; | 
| 128 | import { findOperation } from './config/formatData'; | 128 | import { findOperation } from './config/formatData'; | 
| 129 | import { formatToDateTime } from '/@/utils/dateUtil'; | 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 | const emit = defineEmits(['register', 'success']); | 135 | const emit = defineEmits(['register', 'success']); | 
| 132 | const provideOrgid = ref(''); | 136 | const provideOrgid = ref(''); |