<Steps :current="current"> <Step title="已完成" content="注冊(cè)"></Step> <Step title="進(jìn)行中" content="商家信息填寫"></Step> <Step title="待進(jìn)行" content="提交審核"></Step></Steps>這里,我想獲取step子組件上的title屬性值并修改,請(qǐng)問大家該怎么獲取呢?我給他加了id,用dom獲取獲取不到,是undefined,用ref獲取由于是在methods中,也是Undefined。
vue如何獲取組件的屬性值并修改
白板的微信
2018-12-19 18:13:30