Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在Combo中使用TableView,单元格内文本框的static属性失效了 #7088

Closed
Icodezhan opened this issue Jun 6, 2023 · 2 comments · Fixed by #7643
Closed

在Combo中使用TableView,单元格内文本框的static属性失效了 #7088

Icodezhan opened this issue Jun 6, 2023 · 2 comments · Fixed by #7643
Assignees
Labels
awaiting-release confirmed style Bug or PR related to component's style

Comments

@Icodezhan
Copy link

描述问题:

在表单里在TableView单元格里使用文本框,以及使用"static”: true可以控制有些给编辑有些不给编辑,功能可以实现的,例如下面图1
但因为需求需要多个TableView,并且将一个TableView的数据组装进一个对象,所以使用Combo组件将TableView组件包裹起来但是此时TableView单元格内的文本框的static属性就全部失效了。全部变成了输入状态,看下面图2

截图或视频:

2d3e268aeda63e28806a32339d7e63e

acf768df495f769a31c6554676f57fe

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

  1. 你是如何使用 amis 的?
    sdknpm其他...

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    3.1.0

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

{
  "type": "page",
  "body": [
    {
      "type": "form",
      "body": [
        {
          "type": "combo",
          "name": "user",
          "static": false,
          "label": "用户",
          "items": [
            {
              "type": "table-view",
              "trs": [
                {
                  "tds": [
                    {
                      "id": "u:09b945637855",
                      "body": {
                        "tpl": "项目",
                        "wrapperComponent": "",
                        "id": "u:c75dc0b68087",
                        "type": "tpl"
                      }
                    },
                    {
                      "width": 0,
                      "style": {
                        "display": ""
                      },
                      "id": "u:2bd0379b1639",
                      "bold": true,
                      "body": {
                        "tpl": "Original Policy",
                        "wrapperComponent": "",
                        "id": "u:d54911127d2f",
                        "type": "tpl"
                      }
                    },
                    {
                      "id": "u:85ba15ba7d09",
                      "bold": true,
                      "body": {
                        "tpl": "RSD Gross",
                        "wrapperComponent": "",
                        "id": "u:b80678c94492",
                        "type": "tpl"
                      }
                    },
                    {
                      "id": "u:5d39bc428c82",
                      "bold": true,
                      "body": {
                        "tpl": "100% Cession",
                        "wrapperComponent": "",
                        "id": "u:e93099b7bd6e",
                        "type": "tpl"
                      }
                    },
                    {
                      "id": "u:645274e266d1",
                      "bold": true,
                      "body": {
                        "tpl": "TPRB Share Cession",
                        "wrapperComponent": "",
                        "id": "u:696ccef0c3c4",
                        "type": "tpl"
                      }
                    },
                    {
                      "id": "u:15a693928746",
                      "bold": true,
                      "body": {
                        "tpl": "Remarks",
                        "wrapperComponent": "",
                        "id": "u:d39b9dafd9bd",
                        "type": "tpl"
                      }
                    },
                    {
                      "id": "u:01d0566c4f7b",
                      "bold": true,
                      "body": {
                        "tpl": "Another CCY",
                        "wrapperComponent": "",
                        "id": "u:fc3099d2808d",
                        "type": "tpl"
                      }
                    },
                    {
                      "id": "u:93619035bc6c",
                      "bold": true,
                      "body": {
                        "tpl": "Exchange Rate",
                        "wrapperComponent": "",
                        "id": "u:c01a981053c7",
                        "type": "tpl"
                      }
                    },
                    {
                      "id": "u:a1f04abcdc3f",
                      "bold": true,
                      "body": {
                        "tpl": "This Cash Call in another Currency",
                        "wrapperComponent": "",
                        "id": "u:7f9c26c21411",
                        "type": "tpl"
                      }
                    }
                  ],
                  "background": "#F7F7F7",
                  "id": "u:8611262e700a",
                  "height": ""
                },
                {
                  "tds": [
                    {
                      "padding": 10,
                      "background": "#F7F7F7",
                      "id": "u:a365b251461c",
                      "bold": true,
                      "body": {
                        "tpl": "Basis of %",
                        "wrapperComponent": "",
                        "id": "u:20d00cca345e",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "0 10px",
                      "id": "u:fdd4f7183be0",
                      "static": false,
                      "body": {
                        "static": false,
                        "name": "a1",
                        "id": "u:d6b86a51f75d",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "static": true,
                      "id": "u:13fe1956ede2",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:e0acfd342792",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:d2b16bd2571b",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:076035611c92",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:2b189ed3c2ba",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:237159da37a7",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:0d06ef8cdbc2",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:f1911e47c479",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:b8b0562b8491",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:534147104099",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:6cb7e2c5fa7e",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:0c92538cf34c",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:64b4ef1d218d",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:16c6bebab523",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "style": {
                    "marginRight": "0px",
                    "paddingBottom": "0px",
                    "paddingRight": "0px",
                    "marginBottom": "0px",
                    "paddingTop": "0px",
                    "paddingLeft": "0px",
                    "marginTop": "0px",
                    "marginLeft": "0px"
                  },
                  "id": "u:884d6f40d64c"
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:9d7de2926323",
                      "bold": true,
                      "body": {
                        "tpl": "Sum Insured CCY",
                        "wrapperComponent": "",
                        "id": "u:63de125513f8",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:51523ae6643d",
                      "body": {
                        "static": true,
                        "name": "a2",
                        "id": "u:b42d3eed9878",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:6f56129ba32e",
                      "body": {
                        "size": "full",
                        "showCounter": false,
                        "name": "text",
                        "id": "u:08733d7b4d8b",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:e43a50250ec1",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:f4e12dc94387",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:7925b109de8c",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:09ecebad503a",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:3a6a849484f3",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:b1f3ceab97a9",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:b709c574cbe4",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:dedba04f5570",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:e44d8eb76a8c",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:dddb66ea0082",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:166db1dd9fc7",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:cd38d628b7b9",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:6095f4f9d5f4",
                  "height": ""
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:94dd1aea8c01",
                      "bold": true,
                      "body": {
                        "tpl": "Sum Insured",
                        "wrapperComponent": "",
                        "id": "u:ff9f4c8a1064",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:7ca6d05c28da",
                      "body": [
                        {
                          "kilobitSeparator": true,
                          "static": true,
                          "precision": 2,
                          "name": "a3",
                          "step": 0,
                          "id": "u:24c018893b6e",
                          "label": "",
                          "type": "input-number"
                        },
                        {
                          "name": "a3",
                          "formula": "b3+c3",
                          "id": "u:46c2f70ade41",
                          "type": "formula"
                        }
                      ]
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:168736598267",
                      "body": {
                        "kilobitSeparator": true,
                        "precision": 2,
                        "name": "b3",
                        "step": 0.01,
                        "id": "u:154ec59d7876",
                        "label": "",
                        "type": "input-number",
                        "showSteps": false
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:be2e18559861",
                      "body": {
                        "kilobitSeparator": true,
                        "precision": 2,
                        "name": "c3",
                        "step": 0.01,
                        "id": "u:8bda64e573d7",
                        "label": "",
                        "type": "input-number",
                        "showSteps": false
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:0fb68316c4b9",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:1e4fd8b6c1e6",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:8c74ed519432",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:0706d5d3de5c",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:28cbe61723c4",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:fbc29a10f9be",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:391f41e8a194",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:dae5cd262a0e",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:d367108ef5c9",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:e4102a40f4ab",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:3f51ef05ac46"
                },
                {
                  "tds": [
                    {
                      "padding": "0 10px",
                      "background": "#F7F7F7",
                      "id": "u:202877e2afa3",
                      "bold": true,
                      "body": {
                        "tpl": "Claim CCY",
                        "wrapperComponent": "",
                        "id": "u:0105991de5b8",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "0 10px",
                      "id": "u:39f594c5f7fd",
                      "body": {
                        "static": true,
                        "name": "a4",
                        "id": "u:71d7e811fc23",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "0 10px",
                      "id": "u:5ec45e1856e6",
                      "body": {
                        "name": "text",
                        "id": "u:e6662ad5ff3e",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:d37727b1a1bb",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:5ffbadb41546",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:9d4fc4c7895d",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:dcb67fd50742",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:6e0fcca7a7e8",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:9f650a5f289f",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:c4b3679dbb06",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:36c08df89210",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:14381641d793",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:216c6dff611b",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:166692517796",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:4ef3376d1bb6",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:81bcb150a32c",
                  "height": ""
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:c10ac3b7bb23",
                      "bold": true,
                      "body": {
                        "tpl": "Total Cash Call",
                        "wrapperComponent": "",
                        "id": "u:a6dd72221538",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:6b06f5971443",
                      "body": {
                        "name": "a5",
                        "id": "u:5f06ac0c46a8",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:8a3a2505cafb",
                      "body": {
                        "name": "text",
                        "id": "u:e099cc438aa4",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:380f74b02a5b",
                      "body": {
                        "name": "text",
                        "id": "u:9b2ac474e19c",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:fcd183ce5085",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:d1cedc4591c2",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:fdd3c5a79206",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:5781cb0c72b6",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:34719a32f77a",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:3f327729104d",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:c9835efe8a36",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:85c954fd3fdc",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:1bce361d5795",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:7963a8144b91",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:07af279ffc92"
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:6013246181eb",
                      "bold": true,
                      "body": {
                        "tpl": "- Previous Cash Call",
                        "wrapperComponent": "",
                        "id": "u:52b645562762",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:e4d6bf36a057",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:8c9d576afe05",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:5dd943eb47e9",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:94f2a805b017",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:2b34090361e7",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:a12021a8f9c8",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:bca806c60c89",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:b817f760fff7",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:5835e0bfc4f3",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:47fdc274793b",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:f984c9e9b196",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:cd7c729c6d12",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:95ae6e7eb62c",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:6b5a066940aa",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:fe046c604b85",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:953a51d7cb84",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:563c12110784"
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:cb2b7b4076ff",
                      "bold": true,
                      "body": {
                        "tpl": "- This Cash Call",
                        "wrapperComponent": "",
                        "id": "u:96bb94211ded",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:d5d6755baf98",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:f556d5e17d6b",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:68a25c946744",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:86f3f28fa1b9",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:91a61d7393be",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:b743ca714358",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:51016eca1396",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:c28ee43e288c",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:9122db838c3b",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:9c0d73094c8c",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:b5dbee6690a8",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:c7dfab5df3d9",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:4fd87d8bc08e",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:60ed8c9a59bb",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:8ee25fda4c47",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:27f0a7a834cd",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:91c2a13c80c4",
                  "height": ""
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:8cb62d5e36b9",
                      "bold": true,
                      "body": {
                        "tpl": "Total Paid in SOA",
                        "wrapperComponent": "",
                        "id": "u:d120330ba48d",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:c323d7d69d12",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:e5b537794e89",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:4e0106ca12f5",
                      "body": {
                        "name": "text",
                        "id": "u:6b3add39f0b1",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:dcb9e24f48f3",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:acf9115dda4e",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:a3793243df22",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:312f3f1f59fa",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:e285976bd8b2",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:9a75c7f3ec18",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:399542f16996",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:eb2c0dbab45a",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:1dcfe368cbd1",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:0b64c25a2d5a",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:f0387a33262b",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:eb98f22ed960",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:15db909f9362"
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:5f3f7969289c",
                      "bold": true,
                      "body": {
                        "tpl": "Total Paid Loss",
                        "wrapperComponent": "",
                        "id": "u:312f1666782f",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:39ec1677f553",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:4106bf650cfe",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:59ba0b1646a9",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:2d370b05bd95",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:80d5d5f784f4",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:60c59ac9f855",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:c8c3c4c2a600",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:65d3078da760",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:a8a6eaf1e3fc",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:0d7db0677399",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:f5369d504d62",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:79e2827a5e69",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:f27bda01f512",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:24b54d24ef08",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:afa6055ef009",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:a2fda40bc226",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:c7f77abcd082"
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:c1d4d7260053",
                      "bold": true,
                      "body": {
                        "tpl": "O/S Loss",
                        "wrapperComponent": "",
                        "id": "u:1330eb7da907",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:86aebd378a85",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:1339ff8ba3ae",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:cbe315bcfd0d",
                      "body": {
                        "name": "text",
                        "id": "u:604413e9d9a3",
                        "label": "",
                        "type": "input-text"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:6bb81eb6e75f",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:8eb03815f724",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:345af11e27fd",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:8486be753406",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:ec9f161bd34c",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:7cdcf4e0a9e3",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:29444a0eff5c",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:5b81b7236402",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:3c11261f476f",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:70fcaab66fb5",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:9a201b034e28",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:65a86702f0e5",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:222e2f4f438a"
                },
                {
                  "tds": [
                    {
                      "padding": "2px 10px",
                      "background": "#F7F7F7",
                      "id": "u:cc22f38995ec",
                      "bold": true,
                      "body": {
                        "tpl": "Total Incurred Loss",
                        "wrapperComponent": "",
                        "id": "u:b21d9acdfb4c",
                        "type": "tpl"
                      }
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:bc1ef8063030",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:1cbe8148e8b9",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:3bbd242b5047",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:459d4607fc50",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:a40ba40f04ec",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:55f84a64496b",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:ef66cab3727f",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:d363d7a004cb",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:c88f57fc53ab",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:05af979ebd58",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:bb1c67b29675",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:adec54b9f832",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:9160091a01a3",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:ef335c1adfef",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    },
                    {
                      "padding": "2px 10px",
                      "id": "u:fb44b875f18e",
                      "body": {
                        "static": true,
                        "name": "a1",
                        "id": "u:74895b21944e",
                        "label": "",
                        "type": "input-text"
                      },
                      "align": "right"
                    }
                  ],
                  "id": "u:d66fe916132c"
                }
              ],
              "name": "mytableV",
              "id": "mytableId",
              "static": false
            }
          ],
          "id": "u:50fd31cc9d7d"
        }
      ],
      "id": "u:07e17ecbf031"
    }
  ],
  "id": "u:7302e94f358f"
}
  1. 操作步骤
    请简单描述一下复现的操作步骤...
@github-actions github-actions bot added the style Bug or PR related to component's style label Jun 6, 2023
@github-actions
Copy link

github-actions bot commented Jun 6, 2023

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

Please review the labels and make any necessary changes.

@Icodezhan
Copy link
Author

@2betop 我觉得是不是优化成:如果输入框(表单项组件)自身有设置static属性则以自身的static为准,否则向外层取父级容器组件的static,这样好些?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-release confirmed style Bug or PR related to component's style
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants