禁用特性繼承 官網(wǎng)解釋:1、inheritAttrs默認為true;即允許繼承的意思。2、$attrs為組件標簽內(nèi)沒有在組件內(nèi)用props聲明的屬性(除style和class外)。