From a36c93b06475a8703aa36a68767feb97d616b14e Mon Sep 17 00:00:00 2001 From: tackchen Date: Wed, 9 Feb 2022 08:52:25 +0800 Subject: [PATCH] feat: 0.2.3 - view version.md for details --- README.cn.md | 1 + README.md | 1 + helper/version.en.md | 6 +++++- helper/version.md | 6 +++++- index.html | 2 +- npm/README.md | 1 + npm/disable-devtool.min.js | 2 +- npm/index.d.ts | 1 + npm/package.json | 2 +- package.json | 2 +- public/main.js | 1 + src/detector/size.js | 6 +++++- src/index.d.ts | 1 + src/utils/config.js | 1 + src/utils/log.js | 10 ++++++++-- src/utils/util.js | 4 +++- src/version.js | 2 +- 17 files changed, 38 insertions(+), 11 deletions(-) diff --git a/README.cn.md b/README.cn.md index cb44e3c..9ec9e6d 100644 --- a/README.cn.md +++ b/README.cn.md @@ -114,6 +114,7 @@ declare interface optionStatic { stopIntervalTime?: number; // 在移动端时取消监视的等待时长 clearIntervalWhenDevOpenTrigger?: boolean; // 是否在触发之后停止监控 默认为false, 在使用ondevtoolclose时该参数无效 detactors?: Array; // 启用的检测器 检测器详情见 3.5 默认为全部,建议使用全部 + clearLog?: boolean; // 是否每次都清除log } declare type DETECTOR_TYPE = -1 | 0 | 1 | 2 | 3 | 4 | 5; // 检测器详情见 3.5 diff --git a/README.md b/README.md index 9fc67be..5450967 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ declare interface optionStatic { disableMenu?: boolean; // Whether to disable the right-click menu The default is true clearIntervalWhenDevOpenTrigger?: boolean; // Whether to stop monitoring after triggering The default is false. This parameter is invalid when using ondevtoolclose detactors?: Array; // Enabled detectors For details of detectors, see 3.5. The default is all, it is recommended to use all + clearLog?: boolean; // Whether to clear the log every time } declare type DETECTOR_TYPE = -1 | 0 | 1 | 2 | 3 | 4 | 5; // For details of the detector, see 3.5 diff --git a/helper/version.en.md b/helper/version.en.md index 8ca0d9d..e604258 100644 --- a/helper/version.en.md +++ b/helper/version.en.md @@ -84,4 +84,8 @@ 1. Add ondevtoolclose configuration 2. Add isDevToolOpened api 3. Fix the accidental injury problem of ios mobile chrome -4. Added a debug page \ No newline at end of file +4. Added a debug page + +## 0.2.3 +1. Opening the sidebar under edge will cause accidental injury, so disable sizeDetector under edge +2. Increase the clearLog parameter to control whether the console is required for each situation, the default is true \ No newline at end of file diff --git a/helper/version.md b/helper/version.md index 5bd8ca1..25d9ab2 100644 --- a/helper/version.md +++ b/helper/version.md @@ -85,4 +85,8 @@ 1. 增加 ondevtoolclose 配置 2. 增加 isDevToolOpened api 3. 修复 ios mobile chrome 的误伤问题 -4. 增加了一个debug页面 \ No newline at end of file +4. 增加了一个debug页面 + +## 0.2.3 +1. edge 下打开侧边栏会误伤,所以禁用edge下的sizeDetector +2. 增加clearLog参数,控制是否需要每次情况控制台,默认为true \ No newline at end of file diff --git a/index.html b/index.html index c2a81a0..6aa54d1 100644 --- a/index.html +++ b/index.html @@ -183,7 +183,7 @@

3.3 script does not use attribute configuration