|
@@ -1,10 +1,16 @@
|
|
|
<template>
|
|
<template>
|
|
|
|
|
+<!--
|
|
|
|
|
+
|
|
|
|
|
+ width: elementInfo.width + 'px',
|
|
|
|
|
+ height: elementInfo.height + 'px',
|
|
|
|
|
+
|
|
|
|
|
+-->
|
|
|
<div class="base-element-frame"
|
|
<div class="base-element-frame"
|
|
|
:style="{
|
|
:style="{
|
|
|
top: elementInfo.top + 'px',
|
|
top: elementInfo.top + 'px',
|
|
|
left: elementInfo.left + 'px',
|
|
left: elementInfo.left + 'px',
|
|
|
- width: elementInfo.width + 'px',
|
|
|
|
|
- height: elementInfo.height + 'px',
|
|
|
|
|
|
|
+ width: '100%',
|
|
|
|
|
+ height: '100%',
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<div
|
|
<div
|
|
@@ -27,8 +33,10 @@
|
|
|
v-else-if="elementInfo.toolType === 75 && !isThumbnail && isVisible"
|
|
v-else-if="elementInfo.toolType === 75 && !isThumbnail && isVisible"
|
|
|
:key="`bilibili-${iframeKey}`"
|
|
:key="`bilibili-${iframeKey}`"
|
|
|
:src="elementInfo.url"
|
|
:src="elementInfo.url"
|
|
|
- :width="elementInfo.width"
|
|
|
|
|
- :height="elementInfo.height"
|
|
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ width: '100%',
|
|
|
|
|
+ height: '100%',
|
|
|
|
|
+ }"
|
|
|
:frameborder="0"
|
|
:frameborder="0"
|
|
|
:allowfullscreen="true"
|
|
:allowfullscreen="true"
|
|
|
allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
|
|
allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
|
|
@@ -39,8 +47,10 @@
|
|
|
:key="`html-${iframeKey}`"
|
|
:key="`html-${iframeKey}`"
|
|
|
:srcdoc="elementInfo.url"
|
|
:srcdoc="elementInfo.url"
|
|
|
v-else-if="elementInfo.isHTML && !isThumbnail && isVisible"
|
|
v-else-if="elementInfo.isHTML && !isThumbnail && isVisible"
|
|
|
- :width="elementInfo.width"
|
|
|
|
|
- :height="elementInfo.height"
|
|
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ width: '100%',
|
|
|
|
|
+ height: '100%',
|
|
|
|
|
+ }"
|
|
|
:frameborder="0"
|
|
:frameborder="0"
|
|
|
:allowfullscreen="true"
|
|
:allowfullscreen="true"
|
|
|
allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
|
|
allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
|
|
@@ -50,8 +60,10 @@
|
|
|
:key="`src-${iframeKey}`"
|
|
:key="`src-${iframeKey}`"
|
|
|
v-else-if="!isThumbnail && isVisible"
|
|
v-else-if="!isThumbnail && isVisible"
|
|
|
:src="elementInfo.url"
|
|
:src="elementInfo.url"
|
|
|
- :width="elementInfo.width"
|
|
|
|
|
- :height="elementInfo.height"
|
|
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ width: '100%',
|
|
|
|
|
+ height: '100%',
|
|
|
|
|
+ }"
|
|
|
:frameborder="0"
|
|
:frameborder="0"
|
|
|
:allowfullscreen="true"
|
|
:allowfullscreen="true"
|
|
|
allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
|
|
allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
|