1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <view class="img-box">
- <image :src="fileItem" @click.stop="previewImage(fileIndex)" v-for="(fileItem,fileIndex) in fileList" mode="widthFix"></image>
- </view>
- </template>
- <script>
- export default {
- name: "img-one",
- components: {},
- props: {
- fileList:{
- default:[]
- }
- },
- data() {
- return {}
- },
- watch: {},
- mounted() {
- },
- methods: {
- previewImage(index){
- uni.previewImage({
- urls: this.fileList,
- current:index
- });
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .img-box{
- image{
- width: 394rpx;
- border-radius: 16rpx;
- }
- }
- </style>
|