PAGComposition/getLayersByName 这个方法支持模糊搜索吗 #3149
-
|
我想传入一个前缀,然后获得所有名字中包含这个前缀的 layer。比如我一个应用场景,一个 pag 中有多个 layer 是支持点击的,但是对应不同功能,我就定义这种 layer 的名字都是 |
Beta Was this translation helpful? Give feedback.
Answered by
kevingpqi123
Dec 11, 2025
Replies: 2 comments
-
|
不支持,这里都是精确搜索,pag 的图层一般情况下都不会太多,你直接遍历下也花不了太多时间 pag 使用了那么久,还没有遇到你所谓的这种场景,如果是点击事件,获取的应该是某点的所有图层,也不是这种模糊搜索 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kevingpqi123
-
|
了解,谢谢 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不支持,这里都是精确搜索,pag 的图层一般情况下都不会太多,你直接遍历下也花不了太多时间
pag 使用了那么久,还没有遇到你所谓的这种场景,如果是点击事件,获取的应该是某点的所有图层,也不是这种模糊搜索