amis
amis copied to clipboard
tabs设置的disabled优先级没有form的高
描述问题:
form设置了属性disabled 但是我不想让form下面的tabs禁用,给tabs设置了disabled,结果无效,tabs仍然是禁用。 希望是tabs设置的disabled属性优先级更高
截图或视频:
如何复现(请务必完整填写下面内容):
-
你是如何使用 amis 的? npm
-
amis 版本是什么?请先在最新 beta 版本测试问题是否存在 6.2.2
-
粘贴有问题的完整
amis schema
代码:
{
"type": "form",
"body": [
{
"type": "tabs",
"tabs": [
{
"title": "Tab 1",
"disabled": false,
"body": [
{
"type": "tpl",
"tpl": "Content",
"id": "u:6b421b486ddf"
}
],
"id": "u:f65b32ad9ef6"
},
{
"title": "Tab 2",
"body": [
{
"type": "tpl",
"tpl": "Content"
}
],
"disabled": false
}
],
"disabled": false,
"id": "u:d3fbf1dd5f29"
}
],
"disabled": true,
"id": "u:70d586f0d433",
"actions": [
{
"type": "submit",
"label": "提交",
"primary": true,
"id": "u:54c611c65732"
}
],
"feat": "Insert"
}
- 操作步骤
- 复制code
- 打开官方编辑器
- 粘贴到code里面
- 查看tab是否禁用