Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
INET-TWO
web
Commits
7ec32642
Commit
7ec32642
authored
Sep 29, 2024
by
wangdanlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加findByNameVnode方法
parent
9ca0287c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
util.js
applications/architecture-dee/src/utils/util.js
+10
-1
No files found.
applications/architecture-dee/src/utils/util.js
View file @
7ec32642
...
...
@@ -1620,6 +1620,14 @@ export function loadThirdJs(path) {
}
})
}
export function findByNameVnode(obj, targetName) {
if (obj && obj.$vnode && obj.$vnode.tag && obj.$vnode.tag.includes(targetName)) {
return obj
} else {
return findByNameVnode(obj.$parent, targetName)
}
}
export default {
treeSetProp,
treeFindBackArray,
...
...
@@ -1706,5 +1714,6 @@ export default {
setUserRoleInfo,
getUserRoleInfo,
loadThirdJs,
utilsList
utilsList,
findByNameVnode
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment