浏览代码

fix:限制可以联动的组件

liu.shiyi 1 年之前
父节点
当前提交
46bb9e22df

+ 1 - 1
data-room-ui/packages/BigScreenDesign/RightSetting/ComponentRelation/index.vue

@@ -204,7 +204,7 @@ export default {
           })
         }
       })
-      layouts = layouts?.filter(item => !['Tabs', 'titles', 'currentTime', 'timeCountDown', 'iframeChart', 'linkChart', 'carousel'].includes(item.type))
+      layouts = layouts?.filter(item => item?.option?.displayOption?.dataAllocation?.enable)
       layouts = [...layouts, ...tabComponents]
       this.targetFieldList = layouts.find(
         item => item.code === configMap.componentKey

+ 5 - 5
data-room-ui/packages/js/config/linkageConfig.js

@@ -7,11 +7,11 @@
  */
 export default {
   inParams: [
-    {
-      // 组件用于入参的参数列表
-      name: '', // 参数名
-      code: '' // 参数值
-    }
+    // {
+    //   // 组件用于入参的参数列表
+    //   name: '', // 参数名
+    //   code: '' // 参数值
+    // }
   ],
   // 查询表单联动
   linkage: {