|
@@ -1,7 +1,7 @@
|
|
|
import { BasicColumn } from '/@/components/Table';
|
|
import { BasicColumn } from '/@/components/Table';
|
|
|
import { FormSchema } from '/@/components/Table';
|
|
import { FormSchema } from '/@/components/Table';
|
|
|
import { rules } from '/@/utils/helper/validator';
|
|
import { rules } from '/@/utils/helper/validator';
|
|
|
-import { reactive } from 'vue';
|
|
|
|
|
|
|
+import EntryThree from './components/entryThree.vue';
|
|
|
import { defineAsyncComponent } from 'vue';
|
|
import { defineAsyncComponent } from 'vue';
|
|
|
|
|
|
|
|
export const resultColumns: BasicColumn[] = [
|
|
export const resultColumns: BasicColumn[] = [
|
|
@@ -430,9 +430,9 @@ export const option = {
|
|
|
};
|
|
};
|
|
|
const componentsCaches = new Map<string, any>();
|
|
const componentsCaches = new Map<string, any>();
|
|
|
export function getModelComponent(is2DModel: boolean = false, type: string = '') {
|
|
export function getModelComponent(is2DModel: boolean = false, type: string = '') {
|
|
|
|
|
+ if (!is2DModel) return EntryThree;
|
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
|
return defineAsyncComponent(() => {
|
|
return defineAsyncComponent(() => {
|
|
|
- if (!is2DModel) return import('./components/entryThree.vue');
|
|
|
|
|
// 为了支持SVG组件切换时不闪烁,先行下载并缓存
|
|
// 为了支持SVG组件切换时不闪烁,先行下载并缓存
|
|
|
if (!componentsCaches.has('scanSVG')) componentsCaches.set('scanSVG', import('./components/scanSVG.vue'));
|
|
if (!componentsCaches.has('scanSVG')) componentsCaches.set('scanSVG', import('./components/scanSVG.vue'));
|
|
|
if (!componentsCaches.has('fixedSVG')) componentsCaches.set('fixedSVG', import('./components/fixedSVG.vue'));
|
|
if (!componentsCaches.has('fixedSVG')) componentsCaches.set('fixedSVG', import('./components/fixedSVG.vue'));
|