Skip to content

Commit

Permalink
新增是否存在子组件判断
Browse files Browse the repository at this point in the history
  • Loading branch information
zengln committed Apr 7, 2021
1 parent 9a427b6 commit a821fe2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Jmeter2Blade/util/JmeterElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ def get_sub_elements(self):

return sub_elements

def has_sub_elements(self):
'''
判断是否有子组件
:return:
'''
if len(self.get_sub_elements()) == 0:
return False
return True

def isEnabled(self):
"""
判断组件是否启用
Expand Down

0 comments on commit a821fe2

Please sign in to comment.