From 506b5b59e3899d8dd40a61cc8b9a575bbde3caaa Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期一, 06 五月 2024 18:24:33 +0800 Subject: [PATCH] 添加action --- Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue index 9a1a0cf..2d6c692 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue +++ b/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¶m=zzz 鎴栬�� 缁勪欢name?type=xxx&context=yyy¶m=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); -- Gitblit v1.9.3