add some attributes for the custom widget

Signed-off-by: YoungLeeForeverBoy <ly513782705@gmail.com>