Define a multi type in properties

It’s like this.
Any solution for this?
image

Why don’t you just use cc.Node? You still have to decide if it’s a button or a Sprite when you use this array