Skip to content

Commit 09cb907

Browse files
dyh333dingyihui
and
dingyihui
authored
doc(carousel): using getImgUrl function in customPaging demo (#5679)
Co-authored-by: dingyihui <[email protected]>
1 parent c87ecd7 commit 09cb907

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/carousel/demo/customPaging.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Custom paging display
2424
</a>
2525
</template>
2626
<div v-for="item in 4" :key="item">
27-
<img :src="baseUrl + 'abstract0' + item + '.jpg'" />
27+
<img :src="getImgUrl(item - 1)" />
2828
</div>
2929
</a-carousel>
3030
</template>
@@ -39,7 +39,6 @@ export default defineComponent({
3939
return `${baseUrl}abstract0${i + 1}.jpg`;
4040
};
4141
return {
42-
baseUrl,
4342
getImgUrl,
4443
};
4544
},

0 commit comments

Comments
 (0)