@yilianjituan/yilian_dgerm 0.0.1-alpha.46 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +0 -0
- package/CHANGELOG.md +67 -0
- package/LICENSE +0 -0
- package/README.md +19 -87
- package/dist/business/Entry/index.d.ts +0 -0
- package/dist/business/Entry/index.interface.d.ts +0 -0
- package/dist/business/Entry/index.interface.js +0 -0
- package/dist/business/Entry/index.js +0 -0
- package/dist/business/Entry/index.scss +0 -0
- package/dist/business/TestBtn/index.d.ts +0 -0
- package/dist/business/TestBtn/index.interface.d.ts +0 -0
- package/dist/business/TestBtn/index.interface.js +0 -0
- package/dist/business/TestBtn/index.js +0 -0
- package/dist/commonAxios/Axios.d.ts +0 -0
- package/dist/commonAxios/Axios.js +0 -0
- package/dist/commonAxios/http.d.ts +0 -0
- package/dist/commonAxios/http.js +0 -0
- package/dist/commonAxios/index.d.ts +0 -0
- package/dist/commonAxios/index.js +0 -0
- package/dist/commonAxios/juicer.d.ts +0 -0
- package/dist/commonAxios/juicer.js +0 -0
- package/dist/commonData/address.d.ts +0 -0
- package/dist/commonData/address.js +0 -0
- package/dist/commonImg/ic_im_no_archives_new.png +0 -0
- package/dist/commonType/globalEnum.d.ts +0 -0
- package/dist/commonType/globalEnum.js +0 -0
- package/dist/commonType/globalFun.d.ts +0 -0
- package/dist/commonType/globalFun.js +0 -0
- package/dist/components/BigImage/index.d.ts +0 -0
- package/dist/components/BigImage/index.interface.d.ts +0 -0
- package/dist/components/BigImage/index.interface.js +0 -0
- package/dist/components/BigImage/index.js +0 -0
- package/dist/components/CustomButtonModal/index.d.ts +0 -0
- package/dist/components/CustomButtonModal/index.interface.d.ts +0 -0
- package/dist/components/CustomButtonModal/index.interface.js +0 -0
- package/dist/components/CustomButtonModal/index.js +2 -2
- package/dist/components/DateTimePicker/index.d.ts +0 -0
- package/dist/components/DateTimePicker/index.interface.d.ts +0 -0
- package/dist/components/DateTimePicker/index.interface.js +0 -0
- package/dist/components/DateTimePicker/index.js +0 -0
- package/dist/components/DropDownSelect/index.d.ts +0 -0
- package/dist/components/DropDownSelect/index.interface.d.ts +0 -0
- package/dist/components/DropDownSelect/index.interface.js +0 -0
- package/dist/components/DropDownSelect/index.js +5 -5
- package/dist/components/EmptyDom/index.d.ts +0 -0
- package/dist/components/EmptyDom/index.interface.d.ts +0 -0
- package/dist/components/EmptyDom/index.interface.js +0 -0
- package/dist/components/EmptyDom/index.js +0 -0
- package/dist/components/Entry/index.d.ts +0 -0
- package/dist/components/Entry/index.interface.d.ts +0 -0
- package/dist/components/Entry/index.interface.js +0 -0
- package/dist/components/Entry/index.js +0 -0
- package/dist/components/Entry/index.scss +0 -0
- package/dist/components/ExportExcels/ExportExcels.scss +0 -0
- package/dist/components/ExportExcels/index.d.ts +0 -0
- package/dist/components/ExportExcels/index.interface.d.ts +0 -0
- package/dist/components/ExportExcels/index.interface.js +0 -0
- package/dist/components/ExportExcels/index.js +0 -0
- package/dist/components/FileUpload/fileUtil.d.ts +0 -0
- package/dist/components/FileUpload/fileUtil.js +0 -0
- package/dist/components/FileUpload/index.d.ts +0 -0
- package/dist/components/FileUpload/index.interface.d.ts +0 -0
- package/dist/components/FileUpload/index.interface.js +0 -0
- package/dist/components/FileUpload/index.js +0 -0
- package/dist/components/FileUpload/index.scss +0 -0
- package/dist/components/FilterRadio/index.d.ts +0 -0
- package/dist/components/FilterRadio/index.interface.d.ts +0 -0
- package/dist/components/FilterRadio/index.interface.js +0 -0
- package/dist/components/FilterRadio/index.js +0 -0
- package/dist/components/FilterRadio/index.scss +0 -0
- package/dist/components/MyBtn/index.d.ts +0 -0
- package/dist/components/MyBtn/index.interface.d.ts +0 -0
- package/dist/components/MyBtn/index.interface.js +0 -0
- package/dist/components/MyBtn/index.js +0 -0
- package/dist/components/NumberInput/index.d.ts +0 -0
- package/dist/components/NumberInput/index.interface.d.ts +0 -0
- package/dist/components/NumberInput/index.interface.js +0 -0
- package/dist/components/NumberInput/index.js +0 -0
- package/dist/components/NumberInput/index.scss +0 -0
- package/dist/components/OcrCommon/index.config.d.ts +0 -0
- package/dist/components/OcrCommon/index.config.js +0 -0
- package/dist/components/OcrCommon/index.d.ts +0 -0
- package/dist/components/OcrCommon/index.interface.d.ts +0 -0
- package/dist/components/OcrCommon/index.interface.js +0 -0
- package/dist/components/OcrCommon/index.js +0 -0
- package/dist/components/OcrCommon/index.scss +0 -0
- package/dist/components/PageTemplate/index.d.ts +1 -1
- package/dist/components/PageTemplate/index.interface.d.ts +0 -0
- package/dist/components/PageTemplate/index.interface.js +0 -0
- package/dist/components/PageTemplate/index.js +21 -22
- package/dist/components/PageTemplate/index.scss +0 -0
- package/dist/components/PageTemplate/resizable/index.d.ts +0 -0
- package/dist/components/PageTemplate/resizable/index.js +0 -0
- package/dist/components/PageTemplate/resizable/index.scss +0 -0
- package/dist/components/ReactEcharts/index.d.ts +0 -0
- package/dist/components/ReactEcharts/index.interface.d.ts +0 -0
- package/dist/components/ReactEcharts/index.interface.js +0 -0
- package/dist/components/ReactEcharts/index.js +0 -0
- package/dist/components/SelectMax/index.d.ts +0 -0
- package/dist/components/SelectMax/index.interface.d.ts +0 -0
- package/dist/components/SelectMax/index.interface.js +0 -0
- package/dist/components/SelectMax/index.js +0 -0
- package/dist/components/SelectPosition/index.d.ts +0 -0
- package/dist/components/SelectPosition/index.interface.d.ts +0 -0
- package/dist/components/SelectPosition/index.interface.js +0 -0
- package/dist/components/SelectPosition/index.js +0 -0
- package/dist/components/SelectPosition/index.scss +0 -0
- package/dist/components/SuperCascader/index.d.ts +0 -0
- package/dist/components/SuperCascader/index.interface.d.ts +0 -0
- package/dist/components/SuperCascader/index.interface.js +0 -0
- package/dist/components/SuperCascader/index.js +0 -0
- package/dist/components/SuperInput/index.d.ts +0 -0
- package/dist/components/SuperInput/index.interface.d.ts +0 -0
- package/dist/components/SuperInput/index.interface.js +0 -0
- package/dist/components/SuperInput/index.js +0 -0
- package/dist/components/TabsMode/index.d.ts +0 -0
- package/dist/components/TabsMode/index.interface.d.ts +0 -0
- package/dist/components/TabsMode/index.interface.js +0 -0
- package/dist/components/TabsMode/index.js +0 -0
- package/dist/components/TypographyText/index.d.ts +0 -0
- package/dist/components/TypographyText/index.interface.d.ts +0 -0
- package/dist/components/TypographyText/index.interface.js +0 -0
- package/dist/components/TypographyText/index.js +0 -0
- package/dist/components/TypographyText/index.scss +0 -0
- package/dist/components/VideoProgressModal/index.d.ts +0 -0
- package/dist/components/VideoProgressModal/index.interface.d.ts +0 -0
- package/dist/components/VideoProgressModal/index.interface.js +0 -0
- package/dist/components/VideoProgressModal/index.js +0 -0
- package/dist/components/VideoProgressModal/index.scss +0 -0
- package/dist/components/YLModal/index.d.ts +0 -0
- package/dist/components/YLModal/index.interface.d.ts +0 -5
- package/dist/components/YLModal/index.interface.js +0 -0
- package/dist/components/YLModal/index.js +79 -6
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/react-app-env.d.ts +0 -0
- package/dist/utils/common.d.ts +0 -0
- package/dist/utils/common.js +0 -0
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/index.js +0 -0
- package/dist/utils/notificationHelper.d.ts +0 -0
- package/dist/utils/notificationHelper.js +0 -0
- package/dist/utils/responseMessage.d.ts +0 -0
- package/dist/utils/responseMessage.js +0 -0
- package/dist/utils/userSessionActions.d.ts +0 -0
- package/dist/utils/userSessionActions.js +0 -0
- package/package.json +11 -4
- package/dist/components/YLModal/drag.d.ts +0 -3
- package/dist/components/YLModal/drag.js +0 -56
package/.eslintrc.js
CHANGED
|
File without changes
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# [1.0.0](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v0.0.1-alpha.47...v1.0.0) (2025-03-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* 时间组件添加showTime判断,用来兼容 showTime === false 的情况 ([c365fc3](https://git.yljt.cn:522/web-module/yl_dgerm/commits/c365fc350bb7154bdebd7dc1ab69bccd5a8f5c7b))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.0.1-alpha.47](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v0.0.1-alpha.39...v0.0.1-alpha.47) (2025-02-25)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* YLModal拖拽方案修改 ([4d0135](https://git.yljt.cn/web-module/yl_dgerm/-/commit/4d0135edc8bbf1acff4c66d6ebff3d9f7f1fc0f7))
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* 修复DropDownSelect组件 ([40cf036](https://git.yljt.cn:522/web-module/yl_dgerm/commits/40cf03694b74d59e863e561830e10045074c49c7))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.0.1-alpha.39](https://git.yljt.cn:522/web-module/yl_dgerm/compare/eced17d51f298c04b61797eaea829549ed2c4bfa...v0.0.1-alpha.39) (2024-12-04)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* 版本修改 ([db121a2](https://git.yljt.cn:522/web-module/yl_dgerm/commits/db121a29a55e964bd8c2f54e74b51dd9961f93a8))
|
|
28
|
+
* 变量名称优化 ([3efe62f](https://git.yljt.cn:522/web-module/yl_dgerm/commits/3efe62f5037660137e01e2ad00b48345c93998d7))
|
|
29
|
+
* 封装ocr通用组件 ([de37c47](https://git.yljt.cn:522/web-module/yl_dgerm/commits/de37c476c1c70f3b17a264260c887342c0942095))
|
|
30
|
+
* 更新版本号 ([bb49068](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bb49068c4aec1a75a095b5cbbc84885237fc6305))
|
|
31
|
+
* 更新版本号 ([22008e6](https://git.yljt.cn:522/web-module/yl_dgerm/commits/22008e6823a236515e88ff587ba998c23d0ea446))
|
|
32
|
+
* 清空粘贴板 ([0a38d1e](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0a38d1ef8f9df314e68aff6265a9d4707a5ed152))
|
|
33
|
+
* 删除html ([8bececc](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8bececc59c80b0e98841f29f197896a95391fe60))
|
|
34
|
+
* 删除jest ([bdbd693](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bdbd693aa37c48f46310f94796ad51ac14c4b389))
|
|
35
|
+
* 文档维护 ([bd96292](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bd9629247a451d22ca708cb9c6ca21026cfc9235))
|
|
36
|
+
* 文档维护 ([0794420](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0794420b9fff50e5e497a49bcab898d61556bd9d))
|
|
37
|
+
* 文档维护 ([9503527](https://git.yljt.cn:522/web-module/yl_dgerm/commits/95035277799162ccb76fcaa82d877760114cf1da))
|
|
38
|
+
* 文档维护 ([e4d15d4](https://git.yljt.cn:522/web-module/yl_dgerm/commits/e4d15d4e86cfa79be49a46d7175adf59e9bbe2ca))
|
|
39
|
+
* 文档维护 ([303a5b6](https://git.yljt.cn:522/web-module/yl_dgerm/commits/303a5b60aef5b62463e95ca1ad62fa9f5699e072))
|
|
40
|
+
* 文档维护 ([b695706](https://git.yljt.cn:522/web-module/yl_dgerm/commits/b695706fd17290320f0b797b413612a617acc386))
|
|
41
|
+
* 文档维护 ([95dc2da](https://git.yljt.cn:522/web-module/yl_dgerm/commits/95dc2dae2d23e7141216ebd2bb86a33bac8099c8))
|
|
42
|
+
* 文档维护 ([5523d28](https://git.yljt.cn:522/web-module/yl_dgerm/commits/5523d28f00a8527a131a409ea3fd23a8fa5f8b05))
|
|
43
|
+
* 文档维护 ([8418bc2](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8418bc288628080a93cfd504b11ac91505527573))
|
|
44
|
+
* 文档维护 ([0ca0a06](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0ca0a06cce9c842b5f8b8a6e77883ae07c8d9d18))
|
|
45
|
+
* 文档维护 ([6303e90](https://git.yljt.cn:522/web-module/yl_dgerm/commits/6303e90100ea4cb545a3dfdbc591b0af74e6c124))
|
|
46
|
+
* 新版ocr ([466896c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/466896cbd5cdf8e67d66a3a6bdbdd8ab6f3bb5d9))
|
|
47
|
+
* 修复ocr ([b5e1e6d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/b5e1e6d3b4b456f674d49f653695ff976e52bf9c))
|
|
48
|
+
* 修复ocr ([873297b](https://git.yljt.cn:522/web-module/yl_dgerm/commits/873297bd74ce73baebd33b9e5131ec36a1789646))
|
|
49
|
+
* 修复ocr样式 ([a5e2805](https://git.yljt.cn:522/web-module/yl_dgerm/commits/a5e2805007f0746918a9c0788c05221e9209e425))
|
|
50
|
+
* 修改版本号 ([7979da1](https://git.yljt.cn:522/web-module/yl_dgerm/commits/7979da1e60320e2c4ac393976986dfb8c01a168c))
|
|
51
|
+
* 修改名称 ([77d7d7d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/77d7d7d174b79913b421208bb3e3408a5b61494a))
|
|
52
|
+
* 修改配置文件 ([3f1b7fa](https://git.yljt.cn:522/web-module/yl_dgerm/commits/3f1b7fa71c46fa09fe61b398429887aec356728d))
|
|
53
|
+
* 修改favicon ([eced17d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/eced17d51f298c04b61797eaea829549ed2c4bfa))
|
|
54
|
+
* 引入jest测试单元 ([9da3ee1](https://git.yljt.cn:522/web-module/yl_dgerm/commits/9da3ee178c7d2665b8da6dc61754e2fade1da02b))
|
|
55
|
+
* 组件梳理 ([8148b07](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8148b07d054339c9b381eeba0a5554fc783dc8b3))
|
|
56
|
+
* config配置 ([5615a1c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/5615a1c763a6b834abefa8dcd29bb5e9debcbffb))
|
|
57
|
+
* config配置 ([2504b67](https://git.yljt.cn:522/web-module/yl_dgerm/commits/2504b678703d5fc1bb679f949a348d6b5090da2f))
|
|
58
|
+
* config配置 ([6f44588](https://git.yljt.cn:522/web-module/yl_dgerm/commits/6f44588e05fcd808c069e0f26e4c6e1da2923c89))
|
|
59
|
+
* jsdom降版本 ([e37a38c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/e37a38c4ff90f4ed24f52aaf0b3f5265e10f1ccc))
|
|
60
|
+
* jsdom降版本 ([0b9dd48](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0b9dd4871c5aff303c8c3eb1bb2e2da794861b76))
|
|
61
|
+
* jsdom降版本 ([23d8f01](https://git.yljt.cn:522/web-module/yl_dgerm/commits/23d8f0188014fcee865396aaf665d06ede41929a))
|
|
62
|
+
* ocr添加依赖 ([d23cd95](https://git.yljt.cn:522/web-module/yl_dgerm/commits/d23cd95f033fbd9ff4659e481136f87d0f5dbd8f))
|
|
63
|
+
* ocr通用组件增加请求回调勾子 ([99951c9](https://git.yljt.cn:522/web-module/yl_dgerm/commits/99951c945fee863200909e135bead9e8110ca1bf))
|
|
64
|
+
* ocr修复 ([42264e7](https://git.yljt.cn:522/web-module/yl_dgerm/commits/42264e76c39d9c1490d086b7a7b751edb6f7143c))
|
|
65
|
+
* test-library降版本 ([1f93a8c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/1f93a8caabe91943f534f19c3514bc3bae7951cb))
|
|
66
|
+
* test-library降版本 ([03a5423](https://git.yljt.cn:522/web-module/yl_dgerm/commits/03a542314ce9736ec5a0faa8f0ee42243395e56f))
|
|
67
|
+
* title文案修复 ([ed69177](https://git.yljt.cn:522/web-module/yl_dgerm/commits/ed69177cc96b63bc7a3bdeff483aa5a946f285dd))
|
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -36,95 +36,27 @@ $ yarn run docs:preview
|
|
|
36
36
|
|
|
37
37
|
# check your project for potential problems
|
|
38
38
|
$ yarn run doctor
|
|
39
|
+
|
|
40
|
+
# 生成最新 changelog
|
|
41
|
+
$ yarn log
|
|
39
42
|
```
|
|
40
43
|
|
|
44
|
+
## 关于 CHANGELOG
|
|
45
|
+
|
|
46
|
+
- 请在每次提交代码时,填写对应的 commit message,请遵循以下规范,已添加 commit 强校验来限制 commit message。
|
|
47
|
+
- 请在每次发布版本时,修改版本号,然后运行`yarn log`更新 CHANGELOG.md 文件。
|
|
48
|
+
- 根据上一步的版本号打上 tag,并推送到远程仓库。
|
|
49
|
+
|
|
50
|
+
## Commit Message 规范
|
|
51
|
+
|
|
52
|
+
- feat:新功能(feature)
|
|
53
|
+
- fix:修补 bug
|
|
54
|
+
- docs:文档(documentation)
|
|
55
|
+
- style:格式(不影响代码运行的变动)
|
|
56
|
+
- refactor:重构(即不是新增功能,也不是修改 bug 的代码变动)
|
|
57
|
+
- test:增加测试
|
|
58
|
+
- chore:构建过程或辅助工具的变动
|
|
59
|
+
|
|
41
60
|
## LICENSE
|
|
42
61
|
|
|
43
62
|
MIT
|
|
44
|
-
|
|
45
|
-
# 2024.10.17 更新日志
|
|
46
|
-
1 构建dumi项目 执行组件库
|
|
47
|
-
2 引用发布后的组件,可执行
|
|
48
|
-
|
|
49
|
-
# 2024.10.18 更新日志
|
|
50
|
-
1 配置dumi组件库,执行jenkins 编译成功
|
|
51
|
-
2 配置dumi组件库目录 配置路径指向
|
|
52
|
-
3 截止目前,该组件库可正常开发与使用
|
|
53
|
-
|
|
54
|
-
# 2024.10.21 更新日志
|
|
55
|
-
1、添加自动API配置及说明
|
|
56
|
-
2、添加导航及入口配置
|
|
57
|
-
3、首页配置调整
|
|
58
|
-
4、FilterRadio组件封装
|
|
59
|
-
5、SelectMax组件封装
|
|
60
|
-
6、ExportExcels组件封装
|
|
61
|
-
7、发布插件:依赖引用修改
|
|
62
|
-
|
|
63
|
-
# 2024.10.22 更新日志
|
|
64
|
-
1、更新文档使用说明
|
|
65
|
-
2、解决dayjs引用路径的问题
|
|
66
|
-
3、解决宿主插件引用报错的问题
|
|
67
|
-
4、SelectMax宿主引用组件调试
|
|
68
|
-
5、解决ant-design/icons打包报错的问题
|
|
69
|
-
6、更换样式插件,统一使用sass
|
|
70
|
-
7、PageTemplate组件封装
|
|
71
|
-
8、PageTemplate宿主引用与调试
|
|
72
|
-
|
|
73
|
-
# 2024.10.23 更新日志
|
|
74
|
-
1、EmptyDom 组件封装
|
|
75
|
-
2、EmptyDom 宿主引用与调试
|
|
76
|
-
3、SuperInput 组件封装
|
|
77
|
-
4、SuperInput 宿主引用与调试
|
|
78
|
-
5、DropDownSelect 组件封装
|
|
79
|
-
6、DropDownSelect 宿主引用与调试
|
|
80
|
-
7、公共方法引入处理
|
|
81
|
-
8、删除调试组件
|
|
82
|
-
9、YLModal 组件封装
|
|
83
|
-
10、YLModal 宿主引用与调试
|
|
84
|
-
|
|
85
|
-
# 2024.10.24 更新日志
|
|
86
|
-
1、SuperCascader 组件封装
|
|
87
|
-
2、SuperCascader 宿主引用与调试
|
|
88
|
-
3、BigImage 组件封装
|
|
89
|
-
4、BigImage 宿主引用与调试
|
|
90
|
-
5、解决rc-viewer插件打包报错的问题
|
|
91
|
-
6、组件文档调整
|
|
92
|
-
|
|
93
|
-
# 2024.10.28 更新日志
|
|
94
|
-
1、VideoProgressModal 组件封装
|
|
95
|
-
2、VideoProgressModal 宿主引用与调试
|
|
96
|
-
3、TabsMode 组件封装
|
|
97
|
-
4、TabsMode 宿主引用与调试
|
|
98
|
-
5、NumberInput 组件封装
|
|
99
|
-
6、NumberInput 宿主引用与调试
|
|
100
|
-
7、更换组件库 @yilianjituan/yilian_dgerm -> @yilianjituan/yilian_dgerm
|
|
101
|
-
8、依赖适配与打包
|
|
102
|
-
9、宿主引用测试
|
|
103
|
-
10、PageTemplate 适配,开放属性 buttonTheme 作为按钮颜色属性
|
|
104
|
-
|
|
105
|
-
# 2024.10.29 更新日志
|
|
106
|
-
1、DropDownSelect 传参调整(抽离业务)
|
|
107
|
-
2、PageTemplate 宿主样式调整
|
|
108
|
-
3、dumi框架路由调整(区分业务组件与纯组件)
|
|
109
|
-
4、结构调整后宿主引用测试
|
|
110
|
-
5、ReactEcharts 组件封装
|
|
111
|
-
6、ReactEcharts 宿主引用与调试
|
|
112
|
-
7、PageTemplate 功能扩展:添加addNo
|
|
113
|
-
8、PageTemplate 按钮适配:扩展edc
|
|
114
|
-
9、更换组件引入路径
|
|
115
|
-
10、PageTemplate 功能扩展: 添加ref声明
|
|
116
|
-
11、PageTemplate 参数调试:传入http
|
|
117
|
-
|
|
118
|
-
# 2024.10.30 更新日志
|
|
119
|
-
1、SelectMax 参数调试:传入http
|
|
120
|
-
2、DropDownSelect 参数调试:传入http
|
|
121
|
-
3、组件适配:PageTemplate 差异适配
|
|
122
|
-
4、添加执行命令 build-copy 支持本地打包调试
|
|
123
|
-
|
|
124
|
-
# 2024.10.31 更新日志
|
|
125
|
-
1、SelectPosition 组件封装
|
|
126
|
-
2、SelectPosition 宿主引用与调试
|
|
127
|
-
3、全局样式调整
|
|
128
|
-
|
|
129
|
-
# 2024.11.07 更新日志
|
|
130
|
-
1、组件调整:DropDownSelect添加查询控制参数changeNoSearch
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commonAxios/http.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,8 +5,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
5
5
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
6
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
import { Modal } from 'antd';
|
|
9
8
|
import React from 'react';
|
|
9
|
+
import YLModal from "../YLModal";
|
|
10
10
|
var Index = function Index(props) {
|
|
11
11
|
var trigger = props.trigger,
|
|
12
12
|
onOpenChange = props.onOpenChange,
|
|
@@ -57,7 +57,7 @@ var Index = function Index(props) {
|
|
|
57
57
|
onClick: handleClick
|
|
58
58
|
}), /*#__PURE__*/React.createElement("div", {
|
|
59
59
|
className: "custom_modal__box"
|
|
60
|
-
}, open && /*#__PURE__*/React.createElement(
|
|
60
|
+
}, open && /*#__PURE__*/React.createElement(YLModal, _extends({
|
|
61
61
|
open: true,
|
|
62
62
|
onOk: handleOk,
|
|
63
63
|
onCancel: handleCancel,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -21,9 +21,9 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
21
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
22
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
23
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
24
|
-
import
|
|
25
|
-
import { Select, Spin } from "antd";
|
|
24
|
+
import { Select, Spin } from 'antd';
|
|
26
25
|
import _ from 'lodash';
|
|
26
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
27
27
|
var Option = Select.Option;
|
|
28
28
|
var Index = function Index(props) {
|
|
29
29
|
var http = props.http,
|
|
@@ -92,8 +92,8 @@ var Index = function Index(props) {
|
|
|
92
92
|
};
|
|
93
93
|
}();
|
|
94
94
|
/**
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
* 查询列表
|
|
96
|
+
*/
|
|
97
97
|
var getStoreList = /*#__PURE__*/function () {
|
|
98
98
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(type) {
|
|
99
99
|
var _additionalParameters, data, target, options;
|
|
@@ -112,7 +112,7 @@ var Index = function Index(props) {
|
|
|
112
112
|
return inquireDiseases(_objectSpread(_defineProperty(_defineProperty(_defineProperty({}, searchValue, paramsRef.current), "pageNo", pageRef.current), "pageSize", 10), _additionalParameters || {}));
|
|
113
113
|
case 6:
|
|
114
114
|
data = _context2.sent;
|
|
115
|
-
if (data.code ===
|
|
115
|
+
if (data.code === 'OK') {
|
|
116
116
|
target = data.result;
|
|
117
117
|
totalPagesRef.current = target.totalPages;
|
|
118
118
|
options = filterOptionsCallback ? filterOptionsCallback(target.content || target) : target.content || target;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { IPageTemPropsData } from './index.interface';
|
|
2
3
|
import './index.scss';
|
|
3
|
-
import React from 'react';
|
|
4
4
|
declare const _default: React.ForwardRefExoticComponent<Omit<IPageTemPropsData, "ref"> & React.RefAttributes<unknown>>;
|
|
5
5
|
export default _default;
|
|
File without changes
|
|
File without changes
|
|
@@ -24,17 +24,16 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
24
24
|
/**
|
|
25
25
|
* @列表页pageTemplate
|
|
26
26
|
*/
|
|
27
|
-
import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from 'react';
|
|
28
|
-
import { Button, Form, Table, Input, DatePicker, message } from 'antd';
|
|
29
27
|
import { ExportOutlined, ReloadOutlined, SearchOutlined } from '@ant-design/icons';
|
|
30
|
-
import SelectMax from "../SelectMax";
|
|
31
|
-
import FilterRadio from "../FilterRadio";
|
|
32
|
-
import "./index.scss";
|
|
33
|
-
import ExportExcels from "../ExportExcels";
|
|
34
|
-
import { exportCompile } from "../../utils/common";
|
|
35
|
-
import React from 'react';
|
|
36
28
|
import { DropDownSelect } from "../..";
|
|
29
|
+
import { Button, DatePicker, Form, Input, message, Table } from 'antd';
|
|
37
30
|
import dayjs from 'dayjs';
|
|
31
|
+
import React, { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from 'react';
|
|
32
|
+
import { exportCompile } from "../../utils/common";
|
|
33
|
+
import ExportExcels from "../ExportExcels";
|
|
34
|
+
import FilterRadio from "../FilterRadio";
|
|
35
|
+
import SelectMax from "../SelectMax";
|
|
36
|
+
import "./index.scss";
|
|
38
37
|
import { mergedColumns, ResizableTitle } from "./resizable";
|
|
39
38
|
var FormItem = Form.Item;
|
|
40
39
|
var RangePicker = DatePicker.RangePicker;
|
|
@@ -135,11 +134,11 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
135
134
|
if (addNo) {
|
|
136
135
|
// 默认添加序号
|
|
137
136
|
var initColumn = {
|
|
138
|
-
title:
|
|
139
|
-
dataIndex:
|
|
140
|
-
key:
|
|
137
|
+
title: '序号',
|
|
138
|
+
dataIndex: '',
|
|
139
|
+
key: 'rowIndex',
|
|
141
140
|
width: 70,
|
|
142
|
-
align:
|
|
141
|
+
align: 'center',
|
|
143
142
|
fixed: 'left',
|
|
144
143
|
render: function render(_, __, index) {
|
|
145
144
|
return (current - 1) * pageSizeRef.current + index + 1;
|
|
@@ -258,12 +257,12 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
258
257
|
rest = _objectWithoutProperties(_ref4, _excluded);
|
|
259
258
|
var initShowTime = {
|
|
260
259
|
hideDisabledOptions: true,
|
|
261
|
-
defaultValue: [dayjs(
|
|
260
|
+
defaultValue: [dayjs('00:00:00', 'HH:mm:ss'), dayjs('23:59:59', 'HH:mm:ss')]
|
|
262
261
|
};
|
|
263
262
|
return /*#__PURE__*/React.createElement(RangePicker, _extends({
|
|
264
263
|
placeholder: ['开始时间', '结束时间'],
|
|
265
264
|
key: key,
|
|
266
|
-
showTime: showTime
|
|
265
|
+
showTime: typeof showTime === 'undefined' ? initShowTime : showTime
|
|
267
266
|
}, rest));
|
|
268
267
|
case 'Input':
|
|
269
268
|
return /*#__PURE__*/React.createElement(Input, {
|
|
@@ -286,7 +285,7 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
286
285
|
},
|
|
287
286
|
reset: reset
|
|
288
287
|
}, componentOptions));
|
|
289
|
-
case
|
|
288
|
+
case 'DorpDownSelect':
|
|
290
289
|
return /*#__PURE__*/React.createElement(DropDownSelect, _extends({
|
|
291
290
|
key: key
|
|
292
291
|
}, componentOptions));
|
|
@@ -315,10 +314,10 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
315
314
|
|
|
316
315
|
/**
|
|
317
316
|
* 导出
|
|
318
|
-
|
|
317
|
+
*/
|
|
319
318
|
var exportList = function exportList() {
|
|
320
319
|
if (dataSource.length === 0) {
|
|
321
|
-
message.error(
|
|
320
|
+
message.error('暂无数据,无法导出!');
|
|
322
321
|
return;
|
|
323
322
|
}
|
|
324
323
|
setIsSpinLoading(true);
|
|
@@ -344,11 +343,11 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
344
343
|
var getPlatFormTheme = function getPlatFormTheme() {
|
|
345
344
|
switch (buttonTheme) {
|
|
346
345
|
case 'department':
|
|
347
|
-
return
|
|
346
|
+
return 'actions actions-theme';
|
|
348
347
|
case 'edc':
|
|
349
|
-
return
|
|
348
|
+
return 'actions actions-theme-edc';
|
|
350
349
|
default:
|
|
351
|
-
return
|
|
350
|
+
return 'actions';
|
|
352
351
|
}
|
|
353
352
|
};
|
|
354
353
|
return /*#__PURE__*/React.createElement(Form, {
|
|
@@ -384,8 +383,8 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
384
383
|
};
|
|
385
384
|
|
|
386
385
|
/**
|
|
387
|
-
|
|
388
|
-
|
|
386
|
+
* 导出 excel
|
|
387
|
+
*/
|
|
389
388
|
var exportProps = {
|
|
390
389
|
isSpinLoading: isSpinLoading
|
|
391
390
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
var _excluded = ["className", "width", "whetherDarg", "whetherDebounce", "debounceTimeout", "closable"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import React from 'react';
|
|
11
|
+
import React, { useRef, useState } from 'react';
|
|
6
12
|
import { Modal } from 'antd';
|
|
7
|
-
import Drag from "./drag";
|
|
8
13
|
import debounce from 'lodash/debounce';
|
|
14
|
+
import Draggable from 'react-draggable';
|
|
15
|
+
// 平台常见弹窗宽度分类
|
|
16
|
+
// 1300 审方 开户信息查询详情
|
|
17
|
+
// 1000, 订单 | 药品 | 医生认证
|
|
18
|
+
// 900, 分账 | 开户
|
|
19
|
+
// 700
|
|
20
|
+
// 650 处方
|
|
21
|
+
//
|
|
22
|
+
|
|
9
23
|
var YLModal = function YLModal(props) {
|
|
10
24
|
var className = props.className,
|
|
11
25
|
width = props.width,
|
|
@@ -17,8 +31,35 @@ var YLModal = function YLModal(props) {
|
|
|
17
31
|
_props$closable = props.closable,
|
|
18
32
|
closable = _props$closable === void 0 ? true : _props$closable,
|
|
19
33
|
restParams = _objectWithoutProperties(props, _excluded);
|
|
20
|
-
var
|
|
21
|
-
|
|
34
|
+
var _useState = useState({
|
|
35
|
+
left: 0,
|
|
36
|
+
top: 0,
|
|
37
|
+
bottom: 0,
|
|
38
|
+
right: 0
|
|
39
|
+
}),
|
|
40
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41
|
+
bounds = _useState2[0],
|
|
42
|
+
setBounds = _useState2[1];
|
|
43
|
+
var _useState3 = useState(true),
|
|
44
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
45
|
+
disabled = _useState4[0],
|
|
46
|
+
setDisabled = _useState4[1];
|
|
47
|
+
var draggleRef = useRef(null);
|
|
48
|
+
var _onStart = function onStart(_event, uiData) {
|
|
49
|
+
var _draggleRef$current;
|
|
50
|
+
var _window$document$docu = window.document.documentElement,
|
|
51
|
+
clientWidth = _window$document$docu.clientWidth,
|
|
52
|
+
clientHeight = _window$document$docu.clientHeight;
|
|
53
|
+
var targetRect = (_draggleRef$current = draggleRef.current) === null || _draggleRef$current === void 0 ? void 0 : _draggleRef$current.getBoundingClientRect();
|
|
54
|
+
if (!targetRect || !whetherDarg) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
setBounds({
|
|
58
|
+
left: -targetRect.left + uiData.x - targetRect.width / 2,
|
|
59
|
+
right: clientWidth - (targetRect.right - uiData.x) + targetRect.width / 2,
|
|
60
|
+
top: -targetRect.top + uiData.y,
|
|
61
|
+
bottom: clientHeight - (targetRect.bottom - uiData.y) + targetRect.height / 2
|
|
62
|
+
});
|
|
22
63
|
};
|
|
23
64
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Modal, _extends({
|
|
24
65
|
destroyOnClose: true,
|
|
@@ -29,7 +70,39 @@ var YLModal = function YLModal(props) {
|
|
|
29
70
|
}, restParams, {
|
|
30
71
|
onOk: whetherDebounce && props.onOk ? React.useMemo(function () {
|
|
31
72
|
return debounce(props.onOk, debounceTimeout);
|
|
32
|
-
}, [props]) : props.onOk
|
|
33
|
-
|
|
73
|
+
}, [props]) : props.onOk,
|
|
74
|
+
modalRender: function modalRender(modal) {
|
|
75
|
+
return /*#__PURE__*/React.createElement(Draggable, {
|
|
76
|
+
disabled: disabled,
|
|
77
|
+
bounds: bounds,
|
|
78
|
+
nodeRef: draggleRef,
|
|
79
|
+
onStart: function onStart(event, uiData) {
|
|
80
|
+
return _onStart(event, uiData);
|
|
81
|
+
}
|
|
82
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
ref: draggleRef
|
|
84
|
+
}, modal));
|
|
85
|
+
},
|
|
86
|
+
title: /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
style: {
|
|
88
|
+
width: '100%',
|
|
89
|
+
cursor: 'move',
|
|
90
|
+
height: 24
|
|
91
|
+
},
|
|
92
|
+
onMouseOver: function onMouseOver() {
|
|
93
|
+
if (disabled) {
|
|
94
|
+
setDisabled(false);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
onMouseOut: function onMouseOut() {
|
|
98
|
+
setDisabled(true);
|
|
99
|
+
}
|
|
100
|
+
// fix eslintjsx-a11y/mouse-events-have-key-events
|
|
101
|
+
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md
|
|
102
|
+
// onFocus={() => {}}
|
|
103
|
+
// onBlur={() => {}}
|
|
104
|
+
// end
|
|
105
|
+
}, props.title)
|
|
106
|
+
}), props.children));
|
|
34
107
|
};
|
|
35
108
|
export default YLModal;
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/react-app-env.d.ts
CHANGED
|
File without changes
|
package/dist/utils/common.d.ts
CHANGED
|
File without changes
|
package/dist/utils/common.js
CHANGED
|
File without changes
|
package/dist/utils/index.d.ts
CHANGED
|
File without changes
|
package/dist/utils/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yilianjituan/yilian_dgerm",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A react library developed with dumi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -26,10 +26,16 @@
|
|
|
26
26
|
"lint": "npm run lint:es && npm run lint:css",
|
|
27
27
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
28
28
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
29
|
+
"log": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
29
30
|
"prepare": "husky install && dumi setup",
|
|
30
31
|
"prepublishOnly": "father doctor && npm run build",
|
|
31
32
|
"start": "npm run dev"
|
|
32
33
|
},
|
|
34
|
+
"husky": {
|
|
35
|
+
"hooks": {
|
|
36
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
33
39
|
"commitlint": {
|
|
34
40
|
"extends": [
|
|
35
41
|
"@commitlint/config-conventional"
|
|
@@ -70,11 +76,12 @@
|
|
|
70
76
|
"qs": "^6.9.7",
|
|
71
77
|
"react": ">=16.9.0",
|
|
72
78
|
"react-dom": ">=16.9.0",
|
|
79
|
+
"react-draggable": "^4.4.6",
|
|
73
80
|
"react-resizable": "^3.0.5"
|
|
74
81
|
},
|
|
75
82
|
"devDependencies": {
|
|
76
|
-
"@commitlint/cli": "^17.1
|
|
77
|
-
"@commitlint/config-conventional": "^17.1
|
|
83
|
+
"@commitlint/cli": "^17.8.1",
|
|
84
|
+
"@commitlint/config-conventional": "^17.8.1",
|
|
78
85
|
"@types/jsdom": "^21.1.7",
|
|
79
86
|
"@types/lodash": "^4.17.12",
|
|
80
87
|
"@types/qs": "^6.9.16",
|
|
@@ -86,7 +93,7 @@
|
|
|
86
93
|
"eslint": "^8.23.0",
|
|
87
94
|
"father": "^4.1.0",
|
|
88
95
|
"fs-extra": "^11.2.0",
|
|
89
|
-
"husky": "^
|
|
96
|
+
"husky": "^9.1.7",
|
|
90
97
|
"lint-staged": "^13.0.3",
|
|
91
98
|
"prettier": "^2.7.1",
|
|
92
99
|
"prettier-plugin-organize-imports": "^3.0.0",
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
var Drag = function Drag(props) {
|
|
3
|
-
var refDrag = props.getDom;
|
|
4
|
-
useEffect(function () {
|
|
5
|
-
if (refDrag !== null) {
|
|
6
|
-
document.onmouseup = function () {
|
|
7
|
-
mouseup();
|
|
8
|
-
};
|
|
9
|
-
refDrag.onmousedown = function (evt) {
|
|
10
|
-
mousedown(evt);
|
|
11
|
-
};
|
|
12
|
-
refDrag.style.cursor = 'move';
|
|
13
|
-
}
|
|
14
|
-
}, [refDrag]);
|
|
15
|
-
var mousedown = function mousedown(evt) {
|
|
16
|
-
var DomX = evt.clientX - refDrag.offsetLeft;
|
|
17
|
-
var DomY = evt.clientY - refDrag.offsetTop;
|
|
18
|
-
var clickDom = evt.target.nodeName.toLowerCase();
|
|
19
|
-
if (clickDom === 'input' || clickDom === 'textarea' || clickDom === 'path' || clickDom === 'svg') {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
document.onmousemove = function (e) {
|
|
23
|
-
var Window = window;
|
|
24
|
-
var dom = document.body;
|
|
25
|
-
//鼠标移动的时候确保文字不被选中;
|
|
26
|
-
Window.getSelection ? Window.getSelection().removeAllRanges() : Window.selection.empty();
|
|
27
|
-
var left = e.clientX - DomX;
|
|
28
|
-
var top = e.clientY - DomY;
|
|
29
|
-
//最小左偏移量
|
|
30
|
-
if (left < -refDrag.parentNode.offsetLeft - refDrag.offsetWidth / 2) {
|
|
31
|
-
left = -refDrag.parentNode.offsetLeft - refDrag.offsetWidth / 2;
|
|
32
|
-
}
|
|
33
|
-
//最大左偏移量
|
|
34
|
-
var maxLeft = dom.offsetWidth - refDrag.offsetWidth / 2;
|
|
35
|
-
if (left > maxLeft - refDrag.parentNode.offsetLeft) {
|
|
36
|
-
left = maxLeft - refDrag.parentNode.offsetLeft;
|
|
37
|
-
}
|
|
38
|
-
// 最大下偏移量
|
|
39
|
-
var maxTop = dom.offsetHeight - refDrag.offsetHeight / 2;
|
|
40
|
-
if (top > maxTop - refDrag.parentNode.offsetTop) {
|
|
41
|
-
top = maxTop - refDrag.parentNode.offsetTop;
|
|
42
|
-
}
|
|
43
|
-
//最小上偏移量
|
|
44
|
-
if (top < -refDrag.parentNode.offsetTop - refDrag.offsetHeight / 2) {
|
|
45
|
-
top = -refDrag.parentNode.offsetTop - refDrag.offsetHeight / 2;
|
|
46
|
-
}
|
|
47
|
-
refDrag.style.left = left + 'px';
|
|
48
|
-
refDrag.style.top = top + 'px';
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
var mouseup = function mouseup() {
|
|
52
|
-
document.onmousemove = null;
|
|
53
|
-
};
|
|
54
|
-
return /*#__PURE__*/React.createElement("div", null);
|
|
55
|
-
};
|
|
56
|
-
export default Drag;
|