<template>
	<view>
		<uni-file-picker 
			v-model="imageValue" 
			fileMediatype="image" 
			mode="grid" 
			ref="files" :auto-upload="false"
			@select="select" 
			@progress="progress" 
			 
		/>
		<button @click="upload">上传文件</button>
		<view v-if="fileInfo">
			{{fileInfo}}
		</view>
	</view>
</template>

<script setup>
	 import {
	 	ref
	 } from 'vue'
	 let files=ref(null);
	 let imageValue=ref(null);
	 const upload=()=>{
		  
	 }
	 const progress=(e)=>{
		 console.log(e)
	 }
	 let fileInfo=ref(null);
	 const select=(e)=>{
		 console.log('-------',e)
		 fileInfo.value=e
		 fileInfo.value= JSON.stringify(fileInfo.value)
	 }
</script>

<style>

</style>
