222
schangxiang@126.com
2025-04-30 9bec4dcae002f36aa23231da11cb03a156b40110
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(() => {