opentiny / opentiny/tiny-engine

🐛 [Bug]: 使用 code configurator,language 为 json,在 snippets 中配置属性值,json 值未回显在 code configurator 中

Open
#1,206 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug pr welcome
Dominant language
Vue
Stars
2.8k
Forks
476
Avg merge
17h 35m
Merged PRs (30d)
1

Description

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

Step to reproduce

What is expected

使用 code configurator,language 为 json,在 snippets 中配置属性值,json 值未回显在 code configurator 中,属性配置中的 defaultValue 不能设置为 [],设置为 ‘’ 可以回显

What is actually happening

使用 code configurator,language 为 json,在 snippets 中配置属性值,json 值未回显在 code configurator 中,属性配置中的 defaultValue 不能设置为 [],设置为 ‘’ 可以回显

What is your project name

Any additional comments (optional)

defaultValue 不能设置为 []

设置为 ‘’ 可以回显

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code configurator's JSON-language handling and the snippets property defaultValue path. Reproduce the case with defaultValue set to [] and compare it with an empty-string value; done means JSON property values configured in snippets are rendered in the code configurator, including array defaults.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.