调整表格多选数据为空的选中问题

This commit is contained in:
姜棚 2021-12-21 16:03:54 +08:00
parent 2dfc2b3f0f
commit 23b0982d40
2 changed files with 26 additions and 0 deletions

View File

@ -30,3 +30,23 @@ function buling (num) {
return num
}
}
const common ={
translateStar (str,start,end) {
let translate_str = ""
for(let i = 0;i < str.length;i++)
{
console.log(str[i])
if(i >= start && i < end)
{
translate_str += "*"
}
else{
translate_str += str[i]
}
}
return translate_str;
}
}
export default common;

View File

@ -208,6 +208,12 @@ export default class menu extends React.Component {
//多选
AllCheckChange = (e) => {
if(this.state.tableData.length == 0)
{
return;
}
this.setState({
indeterminate: false
})