uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

uni-file-picker 组件可以动态触发吗?

Open zhoufanglu opened this issue 1 year ago • 0 comments

  • 目前这么写,不生效
//js
const bgFilePickerRef = ref(null)
bgFilePickerRef.value.click()

// template
<uni-file-picker
                ref="bgFilePickerRef"
                ...
 />
  • 需求是直接动态触发打开文件的弹窗,有什么办法吗?

zhoufanglu avatar Jun 04 '24 08:06 zhoufanglu