fix(tabs): rewrite directive api for your suggestion