release: v1.7.0

This commit is contained in:
redhoodsu
2019-10-09 00:09:08 +08:00
parent 71c1891b69
commit 6f840ea834
3 changed files with 18 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
## v1.7.0 (8 Oct 2019)
* feat: resize [#89](https://github.com/liriliri/eruda/issues/89)
* feat(console): replace help button with filter
* feat(console): disable js execution
* feat(console): [utilities api](https://developers.google.cn/web/tools/chrome-devtools/console/utilities)
* fix(console): disable log collapsing for group
* fix(elements): select not working for desktop
## v1.6.3 (1 Oct 2019)
* fix(console): log border style

View File

@@ -1,6 +1,6 @@
{
"name": "eruda",
"version": "1.6.3",
"version": "1.7.0",
"description": "Console for Mobile Browsers",
"main": "eruda.js",
"scripts": {

View File

@@ -23,7 +23,8 @@ import {
isNaN,
isNum,
stringifyAll,
nextTick
nextTick,
Emitter
} from '../lib/util'
export default class Elements extends Tool {
@@ -39,6 +40,8 @@ export default class Elements extends Tool {
this._selectElement = false
this._observeElement = true
this._history = []
Emitter.mixin(this)
}
init($el, container) {
super.init($el)
@@ -71,11 +74,15 @@ export default class Elements extends Tool {
return super.hide()
}
set(e) {
if (e === this._curEl) return
this._setEl(e)
this.scrollToTop()
this._render()
this._updateHistory()
this.emit('change', e)
return this
}
overrideEventTarget() {