feature(view) add getType