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>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
<div v-for="item in 4" :key="item">
|
<div v-for="item in 4" :key="item">
|
||||||
<img :src="baseUrl + 'abstract0' + item + '.jpg'" />
|
<img :src="getImgUrl(item - 1)" />
|
||||||
</div>
|
</div>
|
||||||
</a-carousel>
|
</a-carousel>
|
||||||
</template>
|
</template>
|
||||||
|
@ -39,7 +39,6 @@ export default defineComponent({
|
||||||
return `${baseUrl}abstract0${i + 1}.jpg`;
|
return `${baseUrl}abstract0${i + 1}.jpg`;
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
baseUrl,
|
|
||||||
getImgUrl,
|
getImgUrl,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue