xxx
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
[{"/Users/chenxuan/Documents/code/react/B/P/todoList/src/index.js":"1","/Users/chenxuan/Documents/code/react/B/P/todoList/src/App.js":"2","/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/List/index.jsx":"3","/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/Footer/index.jsx":"4","/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/Header/index.jsx":"5","/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/item/index.jsx":"6"},{"size":319,"mtime":1642695902058,"results":"7","hashOfConfig":"8"},{"size":2333,"mtime":1643211604681,"results":"9","hashOfConfig":"8"},{"size":765,"mtime":1643211747327,"results":"10","hashOfConfig":"8"},{"size":1006,"mtime":1643209497992,"results":"11","hashOfConfig":"8"},{"size":1092,"mtime":1643213505186,"results":"12","hashOfConfig":"8"},{"size":1182,"mtime":1643211880659,"results":"13","hashOfConfig":"8"},{"filePath":"14","messages":"15","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1f16zr7",{"filePath":"16","messages":"17","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"18","messages":"19","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"20","messages":"21","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"22","messages":"23","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/chenxuan/Documents/code/react/B/P/todoList/src/index.js",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/App.js",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/List/index.jsx",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/Footer/index.jsx",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/Header/index.jsx",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/item/index.jsx",[]]
|
||||
[{"/Users/chenxuan/Documents/code/react/B/P/todoList/src/index.js":"1","/Users/chenxuan/Documents/code/react/B/P/todoList/src/App.js":"2","/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/List/index.jsx":"3","/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/Footer/index.jsx":"4","/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/Header/index.jsx":"5","/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/item/index.jsx":"6"},{"size":319,"mtime":1642695902058,"results":"7","hashOfConfig":"8"},{"size":2347,"mtime":1643887526396,"results":"9","hashOfConfig":"8"},{"size":765,"mtime":1643211747327,"results":"10","hashOfConfig":"8"},{"size":1008,"mtime":1644160998439,"results":"11","hashOfConfig":"8"},{"size":1092,"mtime":1643213505186,"results":"12","hashOfConfig":"8"},{"size":1182,"mtime":1643885160464,"results":"13","hashOfConfig":"8"},{"filePath":"14","messages":"15","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1f16zr7",{"filePath":"16","messages":"17","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"19","messages":"20","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"21","messages":"22","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"23","messages":"24","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"25","messages":"26","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/chenxuan/Documents/code/react/B/P/todoList/src/index.js",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/App.js",[],["27","28"],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/List/index.jsx",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/Footer/index.jsx",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/Header/index.jsx",[],"/Users/chenxuan/Documents/code/react/B/P/todoList/src/components/item/index.jsx",[],{"ruleId":"29","replacedBy":"30"},{"ruleId":"31","replacedBy":"32"},"no-native-reassign",["33"],"no-negated-in-lhs",["34"],"no-global-assign","no-unsafe-negation"]
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: chenxuan
|
||||
* @Date: 2022-01-26 00:22:11
|
||||
* @LastEditTime: 2022-01-26 23:04:57
|
||||
* @LastEditTime: 2022-02-06 23:23:18
|
||||
* @LastEditors: chenxuan
|
||||
*/
|
||||
import React, { Component } from 'react'
|
||||
@@ -28,7 +28,7 @@ export default class Footer extends Component {
|
||||
return (
|
||||
<div className="todo-footer">
|
||||
<label>
|
||||
<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}/>
|
||||
</label>
|
||||
<span>
|
||||
<span>已完成{doneCount}</span> / 全部{total}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: chenxuan
|
||||
* @Date: 2022-01-26 23:03:02
|
||||
* @LastEditTime: 2022-01-26 23:03:03
|
||||
* @LastEditTime: 2022-02-03 18:46:00
|
||||
* @LastEditors: chenxuan
|
||||
*/
|
||||
import React, { Component } from 'react'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: chenxuan
|
||||
* @Date: 2022-01-19 00:04:09
|
||||
* @LastEditTime: 2022-01-26 23:40:04
|
||||
* @LastEditTime: 2022-02-03 19:25:25
|
||||
* @LastEditors: chenxuan
|
||||
*/
|
||||
import React, { Component } from 'react'
|
||||
@@ -37,7 +37,9 @@ export default class App extends Component {
|
||||
const {todos} = this.state
|
||||
//匹配处理数据
|
||||
const newTodos = todos.map((todoObj)=>{
|
||||
if(todoObj.id === id) return {...todoObj,done}
|
||||
if(todoObj.id === id) return {
|
||||
...todoObj,done:done
|
||||
}
|
||||
else return todoObj
|
||||
})
|
||||
this.setState({todos:newTodos})
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
/*
|
||||
* @Author: chenxuan
|
||||
* @Date: 2022-01-22 22:51:10
|
||||
* @LastEditTime: 2022-01-25 00:05:31
|
||||
* @LastEditors: chenxuan
|
||||
*/
|
||||
import React,{Component} from "react";
|
||||
import haha from './haha.module.css'
|
||||
class Haha extends Component{
|
||||
render(){
|
||||
return (
|
||||
<h1 className={haha.title}>hello world!</h1>
|
||||
)
|
||||
}
|
||||
}
|
||||
export default Haha
|
||||
@@ -1,3 +0,0 @@
|
||||
.title{
|
||||
background-color: orange;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
/*
|
||||
* @Author: chenxuan
|
||||
* @Date: 2022-01-25 00:29:43
|
||||
* @LastEditTime: 2022-01-25 00:32:00
|
||||
* @LastEditors: chenxuan
|
||||
*/
|
||||
import React from 'react';
|
||||
|
||||
export default function test() {
|
||||
return <div></div>;
|
||||
}
|
||||
Reference in New Issue
Block a user