mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 15:47:08 +00:00
Add predicate mode
This commit is contained in:
2
model.js
2
model.js
@@ -148,7 +148,7 @@ function copySource(el) {
|
||||
function getPath(el) {
|
||||
let $node = $(el).closest('[data-index]');
|
||||
let index = $node.attr('data-index');
|
||||
if (index === 'table') return [];
|
||||
if (index === 'root') return [];
|
||||
let parent = getPath($node.parent());
|
||||
parent = parent.concat(index.split('.'));
|
||||
return parent;
|
||||
|
||||
Reference in New Issue
Block a user