1、data(){}中引入图片

{
    icon: require('@/assets/images/modules-a5.png'),
    text: '图片',
    type: 'ui-picture'
}

或者 

{
    icon: require('../../assets/images/modules-picture.png'),
    text: '图片',
    type: 'ui-picture'
}

2、style 中引入图片

background: url(../../assets/images/entry-icon.png) 0 0 no-repeat; 

3、html中引入图片

<img src="@/assets/images/a-1.png" alt="">

或者 

<img src="../../assets/images/a-1.png" alt="">

 

Logo

前往低代码交流专区

更多推荐