第一种:在子组件中直接写静态链接
<img src:"../xxxxxx.png">
第二种 :用:img动态引入img
<hot :oneDiv="oneDiv" :img="require('../images/demo/demo4.jpg')"></hot>
子组件中
<img :src="img" />
props: {
img:{
template: "#hot",
}
},
第一种:在子组件中直接写静态链接
<img src:"../xxxxxx.png">
第二种 :用:img动态引入img
<hot :oneDiv="oneDiv" :img="require('../images/demo/demo4.jpg')"></hot>
子组件中
<img :src="img" />
props: {
img:{
template: "#hot",
}
},