|
@@ -2,6 +2,8 @@ import { BasicColumn } from '/@/components/Table';
|
|
|
import { defineAsyncComponent } from 'vue';
|
|
|
import { FormSchema } from '/@/components/Table';
|
|
|
import { rules } from '/@/utils/helper/validator';
|
|
|
+import EntryThree from './components/entryThree.vue';
|
|
|
+
|
|
|
export const columns: BasicColumn[] = [
|
|
|
{
|
|
|
title: '名称',
|
|
@@ -306,10 +308,9 @@ export const chartsColumns = [
|
|
|
|
|
|
const componentsCaches = new Map<string, any>();
|
|
|
export function getModelComponent(is2DModel: boolean = false, type: string = '') {
|
|
|
+ if (!is2DModel) return EntryThree;
|
|
|
// @ts-ignore
|
|
|
return defineAsyncComponent(() => {
|
|
|
- if (!is2DModel) return import('./components/entryThree.vue');
|
|
|
-
|
|
|
// 为了支持SVG组件切换时不闪烁,先行下载并缓存
|
|
|
if (!componentsCaches.has('windowSVG')) componentsCaches.set('windowSVG', import('./components/windowSVG.vue'));
|
|
|
if (!componentsCaches.has('windowDualSVG')) componentsCaches.set('windowDualSVG', import('./components/windowDualSVG.vue'));
|