FilePicker: add an option to specify also the file name
维护者通常 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud-libraries/nextcloud-dialogs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
nextcloud-libraries/nextcloud-dialogs#2669 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
nextcloud-libraries/nextcloud-dialogs#2510 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 55/100
nextcloud-libraries/nextcloud-dialogs#2299 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 55/100
nextcloud-libraries/nextcloud-dialogs#2203 ·
维护者通常 1 天内回复
-
Positioning of toast notifications可能重新可做 @skjnldsv 于 217 天前认领,目前没有进行中的 PR。 未关闭1. to develop accessibility design & UX enhancement
nextcloud-libraries/nextcloud-dialogs#2071 · 23 条评论 · 2 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
查看 nextcloud-libraries/nextcloud-dialogs 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
LogicLabs-OU/OpenArchiver#509 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
bigcapitalhq/bigcapital#1545 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复