amis wrapper size:none 无默认边距配置下,存在minHeight:34px默认值

wmomyfyw  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(40)
描述问题:

wrapper 在size : none ,即无默认边距的设置下,存在min-height属性 值为34px,需要手动设置
"style": {
"minHeight": "0px"
},
来覆写掉,这个问题在demo文档中没问题,但是在demo编辑器中存在

截图或视频:

demo文档:正常情况:

demo编辑器:BUG情况:

demo编辑器,设置minHeight为0后:正常:

如何复现(请务必完整填写下面内容):

使用以下配置,edge浏览器,在demo编辑器中(https://aisuda.github.io/amis-editor-demo/#/edit/0),即可复现:
{
"type": "page",
"id": "u:generated_page_id",
"body": [
{
"type": "wrapper",
"body": [
{
"type": "tpl",
"className": "w-20 text-gray-500",
"id": "u:2e20ada28262",
"tpl": "就诊人"
},
{
"type": "tpl",
"tpl": "张三",
"className": "",
"id": "u:192c95b156fa"
}
],
"size": "none",
"id": "u:eafd78ab915c",
"className": "flex",
"style": {
"minHeight": "0px"
},
"isFixedHeight": false,
"isFixedWidth": false
}
],
"asideResizor": false,
"pullRefresh": {
"disabled": true
},
"regions": [
"body"
]
}

  1. 你是如何使用 amis 的?
    https://aisuda.github.io/amis-editor-demo/#/edit/0
    demo编辑器即可复现
  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    demo编辑器,本地部署6.6.0版本均可复现
  3. 粘贴有问题的完整 amis schema 代码:

{
"type": "page",
"id": "u:generated_page_id",
"body": [
{
"type": "wrapper",
"body": [
{
"type": "tpl",
"className": "w-20 text-gray-500",
"id": "u:2e20ada28262",
"tpl": "就诊人"
},
{
"type": "tpl",
"tpl": "张三",
"className": "",
"id": "u:192c95b156fa"
}
],
"size": "none",
"id": "u:eafd78ab915c",
"className": "flex",
"style": {
"minHeight": "0px"
},
"isFixedHeight": false,
"isFixedWidth": false
}
],
"asideResizor": false,
"pullRefresh": {
"disabled": true
},
"regions": [
"body"
]
}

  1. 操作步骤

粘贴schema

kuarbcqp

kuarbcqp1#

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

相关问题