| | |
| | | </el-alert> |
| | | <component v-else :is="currentComponent" |
| | | :btmType="btmType" |
| | | :content="content" |
| | | :context="context" |
| | | :inDialog="true" |
| | | :key="areasName+'customCom-'+componentVO.oid" |
| | | :componentVO="componentVO" |
| | |
| | | 'test2': () => import('@/views/custom-ui/test2'), |
| | | }, |
| | | props: { |
| | | //ui上下文的业务类型(或链接类型) |
| | | uiBtmType: { |
| | | type: String |
| | | }, |
| | | //ui上下文 |
| | | uiContext:{ |
| | | type: String |
| | | }, |
| | | componentVO: { |
| | | type: Object, |
| | | default: {} |
| | |
| | | inDialog: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | canEdit:{ |
| | | //内容是否可编辑 |
| | | type:Boolean, |
| | | default:false |
| | | }, |
| | | areasName: { |
| | | type: String, |
| | |
| | | data() { |
| | | return { |
| | | btmType: '', |
| | | content: '', |
| | | context: '', |
| | | urlParams: {}, |
| | | height: '300px', |
| | | customClass: '', //?type=xxx&context=yyy¶m=zzz 或者 组件name?type=xxx&context=yyy¶m=zzz |
| | |
| | | } |
| | | |
| | | this.btmType = urlParams.type; |
| | | this.content = urlParams.context; |
| | | this.context = urlParams.context; |
| | | this.urlParams = Object.assign(this.paramVOS, urlParams) |
| | | |
| | | //this.getHeight(this.$parent); |