perf(X-Pack): 优化整合视图插件demo

This commit is contained in:
fit2cloud-chenyw
2024-06-17 17:37:03 +08:00
parent 9f54efbf82
commit 43fffdee71
9 changed files with 31 additions and 17 deletions

View File

@@ -44,7 +44,6 @@ import { activeWatermark } from '@/components/watermark/watermark'
import { personInfoApi } from '@/api/user'
import ComponentHangPopver from '@/custom-component/independent-hang/ComponentHangPopver.vue'
import { PluginComponent } from '@/components/plugin'
const snapshotStore = snapshotStoreWithOut()
const dvMainStore = dvMainStoreWithOut()
const composeStore = composeStoreWithOut()
@@ -1492,7 +1491,7 @@ defineExpose({
@linkageSetOpen="linkageSetOpen(item)"
>
<!--如果是图表 则动态获取预存的chart-view数据-->
<PluginComponent
<!-- <PluginComponent
v-if="item['isPlugin']"
:jsname="item['pluginFlag'] || 'L2NvbXBvbmVudC9pbmRleA=='"
class="component"
@@ -1509,10 +1508,10 @@ defineExpose({
@input="handleInput"
:dv-info="dvInfo"
:canvas-active="canvasActive"
/>
/> -->
<component
:is="findComponent(item.component)"
v-else-if="item.component === 'UserView'"
v-if="item.component === 'UserView' || item['isPlugin']"
class="component"
:id="'component' + item.id"
:active="item.id === curComponentId"