schema2code生成的页面中为啥lable部分的文字老自动换行,就是图中红框部分,怎么样让前面的提示文字显示在一行,谢谢
这是数据库的定义文件
···
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
{
"bsonType": "object",
"required": ["type", "order_id", ],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"type": {
"bsonType": "int",
"description": "订单类型",
"enum": [{
"text": "新订单",
"value": 1
},
{
"text": "续订单",
"value": 2
},
{
"text": "赠送单",
"value": 9
}
],
"title": "订单类型",
"permission": {
"read": true,
"write": true
}
},
"created_time": {
"bsonType": "timestamp",
"description": "订单创建时间",
"forceDefaultValue": {
"$env": "now"
}
},
"order_id": {
"bsonType": "string",
"description": "单据编号",
"title": "单据编号",
"trim": "both"
},
"customer_name": {
"bsonType": "string",
"description": "客户姓名",
"title": "客户姓名",
"trim": "both"
},
"customer_tel": {
"bsonType": "string",
"description": "客户电话",
"pattern": "^\\+?[0-9-]{3,20}$",
"title": "客户电话",
"trim": "both"
},
"city": {
"bsonType": "string",
"description": "城市",
"title": "城市",
"foreignKey": "opendb-city-china.code",
"enumType": "tree",
"enum": {
"collection": "opendb-city-china",
"orderby": "value asc",
"field": "code as value, name as text"
}
},
"address": {
"bsonType": "string",
"description": "详细地址",
"title": "详细地址",
"trim": "both"
}
}
}
···
YouKnowMe (作者)
加上labelWidth就可以了,谢谢
2023-01-13 20:34