{"ast":null,"code":"export default {\n props: {\n images: {\n type: Array,\n required: true\n },\n pageSize: {\n type: Number,\n required: true\n },\n currentPage: {\n type: Number,\n required: true\n },\n currentBench: {\n type: Number | String\n }\n },\n computed: {\n paginatedImages() {\n const startIndex = (this.currentPage - 1) * this.pageSize;\n const endIndex = startIndex + this.pageSize;\n return this.images.slice(startIndex, endIndex);\n }\n },\n methods: {\n handleImageClick(index) {\n this.$emit(\"handleImageClick\", index);\n },\n prevPage() {\n this.$emit(\"prev-page\");\n },\n nextPage() {\n this.$emit(\"next-page\");\n }\n }\n};","map":{"version":3,"names":["props","images","type","Array","required","pageSize","Number","currentPage","currentBench","String","computed","paginatedImages","startIndex","endIndex","slice","methods","handleImageClick","index","$emit","prevPage","nextPage"],"sources":["src/views/ordinaryPage/components/ImageList/index.vue"],"sourcesContent":["\n \n
\n
\n \n
![]()
\n
\n \n \n
\n
\n\n\n\n\n"],"mappings":"AAcA;EACAA,KAAA;IACAC,MAAA;MACAC,IAAA,EAAAC,KAAA;MACAC,QAAA;IACA;IACAC,QAAA;MACAH,IAAA,EAAAI,MAAA;MACAF,QAAA;IACA;IACAG,WAAA;MACAL,IAAA,EAAAI,MAAA;MACAF,QAAA;IACA;IACAI,YAAA;MACAN,IAAA,EAAAI,MAAA,GAAAG;IACA;EACA;EACAC,QAAA;IACAC,gBAAA;MACA,MAAAC,UAAA,SAAAL,WAAA,aAAAF,QAAA;MACA,MAAAQ,QAAA,GAAAD,UAAA,QAAAP,QAAA;MACA,YAAAJ,MAAA,CAAAa,KAAA,CAAAF,UAAA,EAAAC,QAAA;IACA;EACA;EACAE,OAAA;IACAC,iBAAAC,KAAA;MACA,KAAAC,KAAA,qBAAAD,KAAA;IACA;IACAE,SAAA;MACA,KAAAD,KAAA;IACA;IACAE,SAAA;MACA,KAAAF,KAAA;IACA;EACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}