<uni-file-picker ref="filePicker" v-model="data.imageList" file-mediatype="image" mode="grid" file-extname="png,jpg,bmp,jpeg,wbmp,jp2,tiff,exif,mbm,webp" :limit="3" :auto-upload="false" @select="select" @delete="handleDelete" :readonly="data.isDetail"/>
export default {
name: 'addRoom',
setup() {
const filePicker = ref(null)
function select({tempFilePaths, tempFiles}) {
console.log(filePicker)
}
}
}
vue3 select里想拿到 filePicker.value 打印出来是null
CV大师 (作者)
已贴
2023-02-16 17:25
YUANRJ
回复 CV大师: 未复现,在 setup 中 return filePicker 了吗
2023-02-16 17:38
CV大师 (作者)
回复 YUANRJ: 感谢,忘记return了
2023-02-16 17:44