wangting
2024-03-27 353efff194122e281925a390be5d576c2f4fff6d
Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue
@@ -3,10 +3,11 @@
    <div v-if="isError" style="color: #F56C6C">这个自定义页面的地址格式不正确。推荐使用UI:type#content?param=xxx这种形式</div>
    <component v-else :is="currentComponent"
               :customOptions="customOptions"
               :inDialog="inDialog"
               :inDialog="true"
               :key="areasName+'customCom-'+componentVO.oid"
               :componentVO="componentVO"
               :sourceData="sourceData"
               :dataStore="dataStore"
               :areasName="areasName"
               :paramVOS="paramVOS"></component>
  </div>
@@ -38,6 +39,11 @@
      type:Object,
      default: {}
    },
    dataStore:{
      //弹窗时按钮所属区域选中数据
      type:Array,
      default: []
    },
    paramVOS:{
      type:Object,
      default: {}
@@ -56,6 +62,14 @@
      currentComponent: 'UI',//组件name
    }
  },
  watch:{
    sourceData:{
      handler(newval) {
        console.log(this.areasName);
        console.log(newval);
      }
    }
  },
  computed:{
    customOptions() {
      if(this.customClass.indexOf(":") <0){