|
@@ -2,6 +2,7 @@ import { defineComponent, toRefs, ref, PropType, reactive } from 'vue';
|
|
|
import styles from './pen.module.less';
|
|
|
import { ToolType } from '../../index';
|
|
|
import { NButton, NModal, NSpace } from 'naive-ui';
|
|
|
+import { iframeDislableKeyboard } from '/src/utils';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'pen-page',
|
|
@@ -59,7 +60,7 @@ export default defineComponent({
|
|
|
width="100vw"
|
|
|
height="100vh"
|
|
|
src={src}
|
|
|
- onLoad={() => {
|
|
|
+ onLoad={(val: any) => {
|
|
|
firstRender.value = false;
|
|
|
if (props.type === 'call') {
|
|
|
const iframeRef: any = document.getElementById(penIframeRefId);
|
|
@@ -67,6 +68,7 @@ export default defineComponent({
|
|
|
iframeRef.contentWindow.renderData(props.callStudents);
|
|
|
}
|
|
|
}
|
|
|
+ iframeDislableKeyboard(val.target);
|
|
|
}}></iframe>
|
|
|
{props.type !== 'call' && (
|
|
|
<div class={styles.rightItem} onClick={() => (modal.status = true)}>
|