import { defineComponent, toRefs, ref, PropType } from 'vue'; import styles from './pen.module.less'; import { ToolType } from '../../index'; // import exit1 from '../../image/exit1.png'; // import exit2 from '../../image/exit2.png'; export default defineComponent({ name: 'pen-page', props: { show: { type: Boolean, default: false }, type: { type: String as PropType, default: 'pen' }, close: { type: Function, default: () => ({}) } }, setup(props) { const { show, type } = toRefs(props); const firstRender = ref(true); const origin = /(localhost|192)/.test(location.host) ? 'https://test.lexiaoya.cn/' : location.origin; const src = `${origin}/classroom-whiteboard?type=${props.type}`; return () => (
{/*
props.close()}>
*/}
props.close()}>
); } });