* @description 任务窗口 * @returns
()
| 4736 | * @returns |
| 4737 | */ |
| 4738 | function Frame() { |
| 4739 | // 最大化 |
| 4740 | const max = ref(false); |
| 4741 | // 容器 |
| 4742 | return createElementNode('div', undefined, { |
| 4743 | class: watchEffectRef(() => `egg_frame_wrap${frame.show ? '' : ' hide'}`), |
| 4744 | onclick(e) { |
| 4745 | e.stopPropagation(); |
| 4746 | }, |
| 4747 | onmousedown(e) { |
| 4748 | e.stopPropagation(); |
| 4749 | }, |
| 4750 | onmousemove(e) { |
| 4751 | e.stopPropagation(); |
| 4752 | }, |
| 4753 | onmouseup(e) { |
| 4754 | e.stopPropagation(); |
| 4755 | }, |
| 4756 | onmouseenter(e) { |
| 4757 | e.stopPropagation(); |
| 4758 | }, |
| 4759 | onmouseleave(e) { |
| 4760 | e.stopPropagation(); |
| 4761 | }, |
| 4762 | onmouseover(e) { |
| 4763 | e.stopPropagation(); |
| 4764 | }, |
| 4765 | ontouchstart(e) { |
| 4766 | e.stopPropagation(); |
| 4767 | }, |
| 4768 | ontouchmove(e) { |
| 4769 | e.stopPropagation(); |
| 4770 | }, |
| 4771 | ontouchend(e) { |
| 4772 | e.stopPropagation(); |
| 4773 | }, |
| 4774 | oninput(e) { |
| 4775 | e.stopPropagation(); |
| 4776 | }, |
| 4777 | onchange(e) { |
| 4778 | e.stopPropagation(); |
| 4779 | }, |
| 4780 | onblur(e) { |
| 4781 | e.stopPropagation(); |
| 4782 | }, |
| 4783 | }, watchRef(() => [login.value, settings[SettingType.SAME_TAB]], () => { |
| 4784 | // 同屏任务 |
| 4785 | if (login.value && settings[SettingType.SAME_TAB]) { |
| 4786 | return [ |
| 4787 | // 遮罩 |
| 4788 | createElementNode('div', undefined, { class: 'egg_frame_mask' }), |
| 4789 | // 窗口内容 |
| 4790 | createElementNode('div', undefined, { |
| 4791 | class: watchEffectRef(() => `egg_frame_content_wrap ${max.value ? ' max' : ''}`), |
| 4792 | }, [ |
| 4793 | // 窗口控制 |
| 4794 | createElementNode('div', undefined, { class: 'egg_frame_controls_wrap' }, [ |
| 4795 | // 标题 |
no test coverage detected