doc(carousel): using getImgUrl function in customPaging demo (#5679)
Co-authored-by: dingyihui <dingyihui@cmss.chinamobile.com>pull/5702/head
parent
c87ecd7ffc
commit
09cb907bee
|
@ -24,7 +24,7 @@ Custom paging display
|
|||
</a>
|
||||
</template>
|
||||
<div v-for="item in 4" :key="item">
|
||||
<img :src="baseUrl + 'abstract0' + item + '.jpg'" />
|
||||
<img :src="getImgUrl(item - 1)" />
|
||||
</div>
|
||||
</a-carousel>
|
||||
</template>
|
||||
|
@ -39,7 +39,6 @@ export default defineComponent({
|
|||
return `${baseUrl}abstract0${i + 1}.jpg`;
|
||||
};
|
||||
return {
|
||||
baseUrl,
|
||||
getImgUrl,
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue