no message

This commit is contained in:
macbook
2024-04-24 19:57:24 +08:00
parent 8d0dc785c5
commit 22cbf7c130
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const columns = [
{ {
title: 'Name', title: 'Name',
dataIndex: 'name', dataIndex: 'name',
render: (text) => <a>{text}</a>, render: (text) => <a href='http://www.baidu.com'>{text}</a>,
}, },
{ {
title: 'Age', title: 'Age',
+1 -1
View File
@@ -22,7 +22,7 @@ class Footer extends React.Component {
return ( return (
<div className="todo-footer"> <div className="todo-footer">
<li className="text"> <li className="text">
<input type="checkbox" onChange={this.handleCheckAll} checked={(doneCount== total && total!=0) ? true : false} /> <input type="checkbox" onChange={this.handleCheckAll} checked={(doneCount=== total && total!==0) ? true : false} />
<span>已完成({doneCount})</span> / 全部({total}) <span>已完成({doneCount})</span> / 全部({total})
</li> </li>
<Button type="primary" <Button type="primary"
+1 -1
View File
@@ -23,7 +23,7 @@ class Footer extends React.Component {
return <Item key={i.id} {...i} deleteTodo={deleteTodo} updateTodo={updateTodo}/> return <Item key={i.id} {...i} deleteTodo={deleteTodo} updateTodo={updateTodo}/>
}) })
} }
{todos.length==0 && <Empty image={myImage} imageStyle={{height: 160}} description="暂无任务,请添加" />} {todos.length===0 && <Empty image={myImage} imageStyle={{height: 160}} description="暂无任务,请添加" />}
</div> </div>
) )
} }