dcloudio / dcloudio/uni-app

schema2code代码生成的input表单有点异常

Open
#5,528 0 comments 0 reactions 0 assignees View on GitHub
uniCloud
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

### 云服务商

阿里云

### Bug 描述

{
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"name": {
"title": "name",
"bsonType": "string"
},
"age": {
"title": "age",
"bsonType": "int"
}
}
}

![Image](https://github.com/user-attachments/assets/25f20cd7-af12-4137-9d4e-8ff05c9cac10)

![Image](https://github.com/user-attachments/assets/a7978038-dfbf-4836-b358-7f4a43f1881d)

### 复现步骤

设置数据库字段类型为int,然后使用schema2code代码生成系统,输入123,再使用拼音输入a

### 预期结果

按道理input框设置为数字类型,不应该使用了拼音就会清空表单,应该保留合法的数字,清空后续的异常输入

### 实际结果

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.