fix: modal内toggle失效
Showing
This diff is collapsed.
{ | { | ||
"name": "modal-router", | "name": "modal-router", | ||
"version": "0.0.4", | "version": "0.0.7", | ||
"description": "a simple way to toggle modals", | "description": "a simple way to toggle modals", | ||
"main": "dist/index.js", | "main": "dist/index.js", | ||
"scripts": { | "scripts": { | ||
"build": "webpack --config webpack.prod.config.js", | "build": "webpack --config webpack.prod.config.js", | ||
"dev": "webpack --config webpack.dev.config.js" | "dev": "webpack serve --config webpack.dev.config.js" | ||
}, | }, | ||
"keywords": [ | "keywords": [ | ||
"react", | "react", | ||
... | @@ -23,12 +23,14 @@ | ... | @@ -23,12 +23,14 @@ |
"@babel/preset-react": "^7.12.10", | "@babel/preset-react": "^7.12.10", | ||
"babel-loader": "^8.2.2", | "babel-loader": "^8.2.2", | ||
"css-loader": "^5.0.1", | "css-loader": "^5.0.1", | ||
"html-webpack-plugin": "^4.5.1", | |||
"react": "^17.0.1", | "react": "^17.0.1", | ||
"react-dom": "^17.0.1", | "react-dom": "^17.0.1", | ||
"style-loader": "^2.0.0", | "style-loader": "^2.0.0", | ||
"terser-webpack-plugin": "^5.1.1", | "terser-webpack-plugin": "^5.1.1", | ||
"webpack": "^5.15.0", | "webpack": "^5.15.0", | ||
"webpack-cli": "^4.3.1" | "webpack-cli": "^4.3.1", | ||
"webpack-dev-server": "^3.11.2" | |||
}, | }, | ||
"dependencies": {}, | "dependencies": {}, | ||
"peerDependencies": { | "peerDependencies": { | ||
... | ... |
public/favicon.ico
0 → 100644
3.78 KB
public/index.html
0 → 100644
src/ScrollLocker.jsx
0 → 100644
src/getScrollBarSize.jsx
0 → 100644
src/test/control.jsx
0 → 100644
src/test/index.css
0 → 100644
src/test/index.jsx
0 → 100644
src/test/modal.jsx
0 → 100644