generated from Wxh16144/easy-antd-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: init * chore: update * chore: update * chore: update * chore: update * chore: remove * feat: feature * test: add hook * chore: add test * chore: update pnpm-lock * fix: bug * feat: feature * chore: update demo * fix: clean bug
- Loading branch information
Showing
93 changed files
with
1,984 additions
and
3,593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
_test_ | ||
__test__ | ||
|
||
/node_modules | ||
node_modules | ||
jest* | ||
/es | ||
/lib | ||
/docs | ||
es | ||
lib | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +0,0 @@ | ||
## [1.5.1](https://github.com/Wxh16144/easy-antd-modal/compare/v1.5.0...v1.5.1) (2024-01-12) | ||
|
||
### Bug Fixes | ||
|
||
- 修复部分机器安装依赖失败问题 ([#16](https://github.com/Wxh16144/easy-antd-modal/issues/16)) ([397cb22](https://github.com/Wxh16144/easy-antd-modal/commit/397cb2225b466c7a276ad012be5003926d516edd)) | ||
|
||
# [1.5.0](https://github.com/Wxh16144/easy-antd-modal/compare/v1.4.2...v1.5.0) (2024-01-10) | ||
|
||
### Features | ||
|
||
- 克隆 antd 静态方法 ([#15](https://github.com/Wxh16144/easy-antd-modal/issues/15)) ([2f8cdac](https://github.com/Wxh16144/easy-antd-modal/commit/2f8cdacd48efa318d563302f399947f3b6a2e46b)) | ||
|
||
## [1.4.2](https://github.com/Wxh16144/easy-antd-modal/compare/v1.4.1...v1.4.2) (2023-08-29) | ||
|
||
### Bug Fixes | ||
|
||
- 修复 drawer 类型未导出错误 ([#13](https://github.com/Wxh16144/easy-antd-modal/issues/13)) ([002e26c](https://github.com/Wxh16144/easy-antd-modal/commit/002e26c42282d43d908173b56a299857297454de)) | ||
|
||
# [1.4.1](https://github.com/Wxh16144/easy-antd-modal/compare/v1.3.0...v1.4.1) (2023-08-14) | ||
|
||
### Features | ||
|
||
- 补充 prefixCls 逻辑 ([#11](https://github.com/Wxh16144/easy-antd-modal/issues/11)) ([e88e9df](https://github.com/Wxh16144/easy-antd-modal/commit/e88e9df32a8d29c4ce3a65facad1cde24a3fc21b)) | ||
|
||
# [1.4.0-beta.1](https://github.com/Wxh16144/easy-antd-modal/compare/v1.3.0...v1.4.0-beta.1) (2023-08-14) | ||
|
||
### Features | ||
|
||
- 补充 prefixCls 逻辑 ([#10](https://github.com/Wxh16144/easy-antd-modal/issues/10)) ([287bfde](https://github.com/Wxh16144/easy-antd-modal/commit/287bfdede391840b3b85d3987667724fa9d29e0f)) | ||
|
||
# [1.3.0](https://github.com/Wxh16144/easy-antd-modal/compare/v1.2.1...v1.3.0) (2023-08-11) | ||
|
||
### Features | ||
|
||
- 调整 package#exports ([#8](https://github.com/Wxh16144/easy-antd-modal/issues/8)) ([8206020](https://github.com/Wxh16144/easy-antd-modal/commit/8206020b4aecf7289a419b57446d096ce0aa257d)) | ||
|
||
## [1.2.1](https://github.com/Wxh16144/easy-antd-modal/compare/v1.2.0...v1.2.1) (2023-08-08) | ||
|
||
### Bug Fixes | ||
|
||
- 修复前置依赖版本问题 ([#5](https://github.com/Wxh16144/easy-antd-modal/issues/5)) ([79051f8](https://github.com/Wxh16144/easy-antd-modal/commit/79051f8b1da3f53f10a258656e07a94df2e68fa4)) | ||
|
||
# [1.2.0](https://github.com/Wxh16144/easy-antd-modal/compare/v1.1.1...v1.2.0) (2023-08-01) | ||
|
||
### Features | ||
|
||
- 添加 useEasyAntdModal 导出 ([#4](https://github.com/Wxh16144/easy-antd-modal/issues/4)) ([5464171](https://github.com/Wxh16144/easy-antd-modal/commit/5464171fb50f41feb126f7885d23ec5930878056)) | ||
|
||
# [1.2.0-beta.1](https://github.com/Wxh16144/easy-antd-modal/compare/v1.1.1...v1.2.0-beta.1) (2023-08-01) | ||
|
||
### Features | ||
|
||
- 基础功能开发 ([2fb3ac2](https://github.com/Wxh16144/easy-antd-modal/commit/2fb3ac29b479fd27a947b1fef38b17aba3f0ebcb)) | ||
- 导出上下文中的 useEasyAntdModal hook ([e614ead](https://github.com/Wxh16144/easy-antd-modal/commit/e614ead7b310c0fecf547fea9266fbc71d19c032)) | ||
- 添加移动端 & 使用文档 ([4ab7905](https://github.com/Wxh16144/easy-antd-modal/commit/4ab790594c3c250226a798a7fec42b36dcc15caf)) | ||
|
||
## [1.1.1](https://github.com/Wxh16144/easy-antd-modal/compare/v1.1.0...v1.1.1) (2023-07-24) | ||
|
||
### Bug Fixes | ||
|
||
- 修复 contentNode 中 props.enhancedAction 未定义错误 ([#3](https://github.com/Wxh16144/easy-antd-modal/issues/3)) ([7394edf](https://github.com/Wxh16144/easy-antd-modal/commit/7394edf066456d054846673a0efa6ae66a2e182d)) | ||
|
||
# [1.1.0](https://github.com/Wxh16144/easy-antd-modal/compare/v1.0.0...v1.1.0) (2023-07-19) | ||
|
||
### Features | ||
|
||
- support antd-mobile & update docs ([#2](https://github.com/Wxh16144/easy-antd-modal/issues/2)) ([3804b6c](https://github.com/Wxh16144/easy-antd-modal/commit/3804b6cd7a50c0dfe3b4b2fa8ab5ee92cd302f10)) | ||
|
||
# Changelog | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* eslint-env node */ | ||
|
||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
'plugin:react-hooks/recommended', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: true, | ||
tsconfigRootDir: __dirname, | ||
}, | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# React + TypeScript + Vite | ||
|
||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. | ||
|
||
Currently, two official plugins are available: | ||
|
||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh | ||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh | ||
|
||
## Expanding the ESLint configuration | ||
|
||
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: | ||
|
||
- Configure the top-level `parserOptions` property like this: | ||
|
||
```js | ||
export default { | ||
// other rules... | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: ['./tsconfig.json', './tsconfig.node.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}; | ||
``` | ||
|
||
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` | ||
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` | ||
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link href="https://unpkg.com/modern-normalize" rel="stylesheet" /> | ||
<title>Vite + React + TS</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "react-hooks", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build": "tsc && vite build", | ||
"dev": "vite", | ||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"antd": "^5.12.8", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-use-record-hotkey": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.14", | ||
"@types/react-dom": "^18.2.6", | ||
"@typescript-eslint/eslint-plugin": "^5.61.0", | ||
"@typescript-eslint/parser": "^5.61.0", | ||
"@vitejs/plugin-react": "^4.0.1", | ||
"eslint": "^8.44.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.1", | ||
"typescript": "^5.0.2", | ||
"vite": "^4.4.0" | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.