Skip to content

Commit

Permalink
feat: add hideConsole
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-lx committed Sep 19, 2023
1 parent db2acc4 commit 53e34f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export class MyElement extends LitElement {
showSwitch: boolean = false;
@property()
autoToggle: boolean = false;
@property()
hideConsole: boolean = false;

@state()
position = { top: 0, left: 0, width: 0, height: 0 }; // 弹窗位置
Expand Down Expand Up @@ -275,7 +277,9 @@ export class MyElement extends LitElement {

protected firstUpdated(): void {
this.eliminateWarning();
this.printTip();
if (!this.hideConsole) {
this.printTip();
}
window.addEventListener('mousemove', this.handleMouseMove);
window.addEventListener('mousemove', this.moveSwitch);
window.addEventListener('click', this.handleMouseClick, true);
Expand Down

0 comments on commit 53e34f2

Please sign in to comment.