请问vue,在js中怎么通过标签自定义值获取到dom对象数组?

        <el-button :id="'buttonCollect663" ref="buttonCollect" name="buttonCollect" >

        </el-button>

我的标签是这个样子的,一个页面有很多这样的标签,我想js获取到所有name属性为buttonCollect的dom,然后修改其style样式,每个dom样式可能不一样.

使用vue获取 还是 通过js获取

document.getElementByNames('buttonCollect')