<img style="position: absolute;height: 100%;width: 100%;left: 0;top: 0;z-index: 1" :src="item.active ? require('../../assets/img/style_icon/' + item.name.value + '_active.png')
: require('../../assets/img/style_icon/' + item.name.value + '.png') "/>
用require()來動態(tài)綁定即可