<template>
    <view class="upload" @click="handlerUpload">
        <input type="file" ref='upload_inp' class="upload_inp">
    </view>
</template>

<script>
    export default {
        data() {
            return {}
        },
        methods: {
            handlerUpload() {
                const upload = this.$refs.upload_inp
                upload.onclick = function (e) {
                    console.log(e)
                }
            }
        }
    }
</script>

<style scoped lang="scss">
    .upload {
        width: 210rpx;
        height: 210rpx;
        border-radius: 6rpx 6rpx 6rpx 6rpx;
        border: 1rpx dotted #B2B2B2;
    }
    .upload_inp {
        display: none;
    }
</style>