Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhoufanglu opened this issue Jun 4, 2024 · 0 comments
Open

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

zhoufanglu opened this issue Jun 4, 2024 · 0 comments
Labels
question Further information is requested uni-ui

Comments

@zhoufanglu
Copy link

zhoufanglu commented Jun 4, 2024

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

// template
<uni-file-picker
                ref="bgFilePickerRef"
                ...
 />
  • 需求是直接动态触发打开文件的弹窗,有什么办法吗?
@Otto-J Otto-J added uni-ui question Further information is requested labels Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested uni-ui
Projects
None yet
Development

No branches or pull requests

2 participants