wangting
2024-04-29 208548501db7256ab364f904196f614c4f1a0b40
Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue
@@ -11,7 +11,7 @@
    </el-alert>
    <component v-else :is="currentComponent"
               :btmType="btmType"
               :content="content"
               :context="context"
               :inDialog="true"
               :key="areasName+'customCom-'+componentVO.oid"
               :componentVO="componentVO"
@@ -33,6 +33,14 @@
    'test2': () => import('@/views/custom-ui/test2'),
  },
  props: {
    //ui上下文的业务类型(或链接类型)
    uiBtmType: {
      type: String
    },
    //ui上下文
    uiContext:{
      type: String
    },
    componentVO: {
      type: Object,
      default: {}
@@ -40,6 +48,11 @@
    inDialog: {
      type: Boolean,
      default: false
    },
    canEdit:{
      //内容是否可编辑
      type:Boolean,
      default:false
    },
    areasName: {
      type: String,
@@ -68,7 +81,7 @@
  data() {
    return {
      btmType: '',
      content: '',
      context: '',
      urlParams: {},
      height: '300px',
      customClass: '', //?type=xxx&context=yyy&param=zzz  或者 组件name?type=xxx&context=yyy&param=zzz
@@ -114,7 +127,7 @@
    }
    this.btmType = urlParams.type;
    this.content = urlParams.context;
    this.context = urlParams.context;
    this.urlParams = Object.assign(this.paramVOS, urlParams)
    //this.getHeight(this.$parent);