|
@@ -471,6 +471,19 @@ export default defineComponent({
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ // ppt iframe 点击事件
|
|
|
+ // const iframeClick = () => {
|
|
|
+ // if(document.all) {
|
|
|
+ // document.getElementById("iframe-ppt")?.attachEvent("click", () => {
|
|
|
+ // activeData.model = !activeData.model
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // document.getElementById("iframe-ppt")?.contentWindow?.postMessage({
|
|
|
+ // api: 'onAttendToggleMenu'
|
|
|
+ // }, '*');
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
// 切换播放
|
|
|
// const togglePlay = (m: any, isPlay: boolean) => {
|
|
|
// if (isPlay) {
|
|
@@ -1095,6 +1108,9 @@ export default defineComponent({
|
|
|
{data.itemList.map((m: any, mIndex: number) => {
|
|
|
const isRender = Math.abs(popupData.activeIndex - mIndex) < 2;
|
|
|
const isEmtry = Math.abs(popupData.activeIndex - mIndex) > 4;
|
|
|
+ // if (isRender && m.type === 'PPT') {
|
|
|
+ // setTimeout(() => iframeClick() ,500)
|
|
|
+ // }
|
|
|
// if (isRender) {
|
|
|
// m.isRender = true;
|
|
|
// }
|
|
@@ -1209,7 +1225,10 @@ export default defineComponent({
|
|
|
}}
|
|
|
/>
|
|
|
)
|
|
|
- : m.type === 'PPT' ? <iframe src={`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(m.content)}`} width='100%' height='100%' frameborder='1'></iframe>
|
|
|
+ : m.type === 'PPT' ? <div class={styles.iframePpt}>
|
|
|
+ <div class={styles.pptBox}></div>
|
|
|
+ <iframe src={`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(m.content)}`} width='100%' height='100%' frameborder='1'></iframe>
|
|
|
+ </div>
|
|
|
: (
|
|
|
<MusicScore
|
|
|
activeModel={activeData.model}
|