| | |
| | | <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> |
| | |
| | | }) |
| | | 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(() => { |