From 9bec4dcae002f36aa23231da11cb03a156b40110 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周三, 30 4月 2025 16:24:16 +0800
Subject: [PATCH] 222

---
 PipeLineLems/web/src/provider/index.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/PipeLineLems/web/src/provider/index.vue b/PipeLineLems/web/src/provider/index.vue
index 526c17d..ad1e51c 100644
--- a/PipeLineLems/web/src/provider/index.vue
+++ b/PipeLineLems/web/src/provider/index.vue
@@ -1,7 +1,12 @@
 <template>
   <el-config-provider :namespace="namespace" :z-index="100" :locale="local">
     <!-- 椤甸潰 -->
-    <div v-if="!notPage" class="widget_slot_page_content" v-bind="widgetProps">
+    <div
+      v-if="!notPage"
+      class="widget_slot_page_content"
+      v-bind="widgetProps"
+      :style="{ width, height, ...widgetProps.style }"
+    >
       <template v-if="hasNested">
         <!-- 鑷畾涔夊澹� -->
         <slot name="nested"></slot>
@@ -89,11 +94,11 @@
     })
     const width = computed(() => {
       const { width } = props.defaultConfig
-      return props.isApp ? '100%' : width || '1920px'
+      return props.isApp ? '100%' : width || '100%'
     })
     const height = computed(() => {
       const { height } = props.defaultConfig
-      return props.isApp ? '100%' : height || '1080px'
+      return props.isApp ? '100%' : height || '100%'
     })
 
     const widgetProps = computed(() => {

--
Gitblit v1.9.3