Open ffeeng opened 3 years ago
name of compnent is Anonymous Component
I can fix this bug like this。
function Options(options) { return function (Component) { // add such line options.name = options.name || Component.name; Component.__o = options; return Component; }; }
this is the result
Same issue with 8.0.0-rc.1 You can force a name with @Options({ name: "Foo" }); but by default, it should take the Class's name.
@Options({ name: "Foo" })
name of compnent is Anonymous Component![image](https://user-images.githubusercontent.com/21271974/124882166-afdd3b80-e002-11eb-98be-de9893b14230.png)
I can fix this bug like this。
this is the result![image](https://user-images.githubusercontent.com/21271974/124882142-a8b62d80-e002-11eb-8ddc-f9a13d5424b7.png)