1
0
mirror of synced 2025-12-11 17:08:00 +08:00

chore: remove dom plugin snippet

This commit is contained in:
redhoodsu
2022-12-20 00:21:24 +08:00
parent 25c75bf4e6
commit 24bb74835b
3 changed files with 4 additions and 12 deletions

View File

@@ -65,7 +65,7 @@
"licia": "^1.37.0",
"luna-console": "^1.2.0",
"luna-data-grid": "^0.3.2",
"luna-dom-viewer": "^1.1.2",
"luna-dom-viewer": "^1.2.2",
"luna-modal": "^1.0.0",
"luna-notification": "^0.1.4",
"luna-object-viewer": "^0.2.4",

View File

@@ -131,7 +131,7 @@ export default class Elements extends Tool {
}
this._$crumbs.html(html)
}
_back() {
_back = () => {
if (this._curNode === this._htmlEl) return
const parentQueue = this._curParentQueue
@@ -165,7 +165,7 @@ export default class Elements extends Tool {
.on('click', c('.copy-node'), this._copyNode)
.on('click', c('.delete-node'), this._deleteNode)
this._domViewer.on('select', this._setNode)
this._domViewer.on('select', this._setNode).on('deselect', this._back)
chobitsu
.domain('Overlay')
@@ -177,8 +177,6 @@ export default class Elements extends Tool {
if (node.parentNode) {
node.parentNode.removeChild(node)
}
this._back()
}
_copyNode = () => {
const node = this._curNode
@@ -215,6 +213,7 @@ export default class Elements extends Tool {
chobitsu.domain('Overlay').setInspectMode({
mode: 'none',
})
chobitsu.domain('Overlay').hideHighlight()
}
}
_inspectNodeRequested = ({ backendNodeId }) => {

View File

@@ -144,13 +144,6 @@ export default [
},
desc: 'Test geolocation',
},
{
name: 'Load Dom Plugin',
fn() {
loadPlugin('dom')
},
desc: 'Navigate dom tree',
},
{
name: 'Load Orientation Plugin',
fn() {