baidu / baidu/amis

表格编辑框里的数字组件,如果后台返回0,页面会显示空。即便默认值设置为0了也显示空。

Open
#8,068 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

描述问题:

表格编辑框里的数字组件,如果后台返回0,页面会显示空。即便默认值设置为0了也显示空。

截图或视频:

image

如何复现(请务必完整填写下面内容):
  1. 你是如何使用 amis 的?
    npm方式。

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    截止今天最新的master代码。

  3. 粘贴有问题的完整 amis schema 代码:

code here...
  1. 操作步骤
    表格编辑框里的数字组件,金额改为0,保存后,重新打开。页面表格编辑框里的该数字组件值为空,后台有返回0。

Contributor guide

No contributing guide indexed for this repository

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 reproducing the issue in the npm-based amis setup using a table edit form and a numeric value of 0. The issue provides no complete schema, file, entry point, or test, so locate the table editor's numeric component before investigating why a returned or default zero is rendered as empty. Done means reopening the saved row displays 0.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.