Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

FilePicker: add an option to specify also the file name

未关闭
#2,491 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
frontend

调研方向

定位 FilePicker Vue 组件及其 buttons 回调,然后阅读 allowPickDirectory 当前如何传递 Folder 项。确认未提供 fileName 选项时的现有行为,并决定如何公开新的文件名值而不破坏该回调。当可选的可编辑文件名输入框和回调行为得到明确规定,并由组件现有的测试覆盖时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

FilePicker misses an option to replicate a "Save As" functionality, in which the user can specify not only a path but also a (new) file name.

Probably this can be done with a new prop for the Vue component, fileName. If it is false (the default), just do nothing more than now. If it is a string, display a new editable text input field inited with the specified string.

It is debatable now to pass this new information to the buttons callback. Existing implementations with allowPickDirectory = true expect just a Folder item, and of course this cannot be broken; perhaps the callback can be called as callback(nodes, filename) (using the value of the new text input) when fileName != false.

主要语言
TypeScript
星标
19
派生
8
平均合并
1 天 15 小时
30 天内合并 PR
52

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud-libraries/nextcloud-dialogs 的其他 Issue

查看 nextcloud-libraries/nextcloud-dialogs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。