About the disabled problem of element tree control?

< el-tree
: data= "tagTree"
show-checkbox
node-key= "id"
ref= "tree"
: default-expanded-keys= "tags [index] .tags"
: default-checked-keys= "tags [index] .selected
: props=" defaultProps ">
< / el-tree >

defaultProps: {
children: "children",
label:" label",
disabled: function (data, node) {

if(node.store.getCheckedKeys(true).length >= 5) {
  return node.store.getCheckedKeys(true).indexOf(data.id) < 0
}

}
},
you can now select five and the rest of the disabled will be true,. When I change the data of the tree control, how can I select only five (if the data has not changed, three have been selected, and two can be selected after the change)

Oct.20,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31c17-2b538.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31c17-2b538.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?