iView table组件,设置多选时,给data项设置了_disabled, checkbox还是可以选择。

    apprDatas:[
           {
               "id": "dDb7668D--29Ff-d1aA-bA2BA4dE0dC2",
               "type": 1,
               "status":0,
               "doctorId": 1256,
               "nickName": "雷子",
               "hospitalName": "北京医院",
               "professtionTitle": "主任",
               "departmentName": "皮科",
               _disabled: true,
               _checked: true
           },
           {
               "id": "BB3Fe9bC-68b3-397A-cfBDd82e1496",
               "type": 2,
               "status":2,
               "doctorId": 1256,
               "nickName": "雷子",
               "hospitalName": "北京病医院",
               "professtionTitle": "主师",
               "departmentName": "皮科",
           }
        ]

如上, 对应的checkbox仍然可以选择

阅读 9.7k
1 个回答
新手上路,请多包涵

你又设置checked = true,又设置 _disabled: true不让选,这属性也冲突啊。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题