From 4bef876e9caeda503945f6b88e76c5cf13b31090 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 04 5月 2025 06:33:06 +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