Commit 1bd113bb authored by haiyoucuv's avatar haiyoucuv

new 模板

parent ac0ce987
...@@ -53,7 +53,7 @@ class LoadingDemo extends React.Component { ...@@ -53,7 +53,7 @@ class LoadingDemo extends React.Component {
setEvenProgress = (percentage) => { setEvenProgress = (percentage) => {
this.intervalId && clearInterval(this.intervalId); this.intervalId && clearInterval(this.intervalId);
let curPercentage = this.curPercentage; let curPercentage = this.curPercentage;
this.intervalId = setInterval(() => { this.intervalId = window.setInterval(() => {
if (curPercentage >= percentage) { if (curPercentage >= percentage) {
clearInterval(this.intervalId); clearInterval(this.intervalId);
this.jump(); this.jump();
......
...@@ -2,11 +2,15 @@ ...@@ -2,11 +2,15 @@
"compilerOptions": { "compilerOptions": {
"target": "ES2020", "target": "ES2020",
"module": "ESNext", "module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"], "lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"useDefineForClassFields": true, "useDefineForClassFields": true,
"skipLibCheck": true, "skipLibCheck": false,
"experimentalDecorators": true, "experimentalDecorators": true,
/* Bundler mode */
"moduleResolution": "bundler", "moduleResolution": "bundler",
"allowImportingTsExtensions": true, "allowImportingTsExtensions": true,
"isolatedModules": true, "isolatedModules": true,
...@@ -15,12 +19,13 @@ ...@@ -15,12 +19,13 @@
"jsx": "react-jsx", "jsx": "react-jsx",
"jsxImportSource": "react", "jsxImportSource": "react",
/* Linting */
"strict": false, "strict": false,
"noImplicitAny": false, "noImplicitAny": false,
"noUnusedLocals": false, "noUnusedLocals": false,
"noUnusedParameters": false, "noUnusedParameters": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true
}, },
"include": ["src"], "include": [
"src"
]
} }
...@@ -1315,7 +1315,7 @@ ...@@ -1315,7 +1315,7 @@
resolved "http://npm.dui88.com:80/@types%2fjson-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" resolved "http://npm.dui88.com:80/@types%2fjson-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
"@types/node@*": "@types/node@*", "@types/node@^22.7.6":
version "22.7.6" version "22.7.6"
resolved "http://npm.dui88.com:80/@types%2fnode/-/node-22.7.6.tgz#3ec3e2b071e136cd11093c19128405e1d1f92f33" resolved "http://npm.dui88.com:80/@types%2fnode/-/node-22.7.6.tgz#3ec3e2b071e136cd11093c19128405e1d1f92f33"
integrity sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw== integrity sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment