Feat: Add multiline support for editing objects and arrays in `on.editInspectorState`
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
从 on.editInspectorState 的实现开始,检查当前输入元素是如何被选中以编辑值的。验证对象和数组的编辑路径,然后确认多行编辑支持可读的 JSON 结构,同时原始值编辑仍然能够正常工作。
由索引模型根据 Issue 内容生成。
描述
Problem
Currently, editInspectorState uses an <input/> element for editing values. This works fine for primitives, but becomes difficult when editing objects or arrays.
Proposed solution:
Switch to a <textarea> (or similar multiline input) when the value being edited is an object or array. This would allow:
- Better visibility of the JSON structure
- Easier editing with proper line breaks and indentation
- Reduced chance of syntax errors
Example
Tanstack Devtools already does this:
https://github.com/user-attachments/assets/9f96c5d1-6b07-42bc-aa6b-25740b90bed8
I'll happily open a PR to add this feature
- 主要语言
- TypeScript
- 星标
- 2.9k
- 派生
- 289
- 平均合并
- 2 天 48 分钟
- 30 天内合并 PR
- 19
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vuejs/devtools 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 2 天内回复
-
Upgrade Electron to fix ZIP extraction on Node.js 26可能已有人在做 @ondrhn 于 46 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
On the landing site, the "Developer experience" card is redundant可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 18/100
维护者通常 2 天内回复
相似的 Issue
-
area:cli bug P4
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug from-studio
难度 2/5 1-3 小时 新手友好度 65/100
esengine/DeepSeek-Reasonix#14868 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
loopbackio/loopback-next#11878 ·
维护者通常 2 天内回复
-
bug 🐛
难度 2/5 1-3 小时 新手友好度 78/100
comunica/comunica#1925 · 1 条评论 ·
维护者通常 1 天内回复