* 创建匹配器,要求所有指定的组件 * @param types 组件类型
(...types: ComponentType[])
| 45 | * @param types 组件类型 |
| 46 | */ |
| 47 | public static all(...types: ComponentType[]): Matcher { |
| 48 | const matcher = new Matcher(); |
| 49 | return matcher.all(...types); |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * 创建匹配器,要求至少一个指定的组件 |