@yilianjituan/yilian_dgerm 0.0.1-alpha.47 → 1.0.1

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.
Files changed (146) hide show
  1. package/.eslintrc.js +0 -0
  2. package/LICENSE +0 -0
  3. package/README.md +19 -87
  4. package/dist/business/Entry/index.d.ts +0 -0
  5. package/dist/business/Entry/index.interface.d.ts +0 -0
  6. package/dist/business/Entry/index.interface.js +0 -0
  7. package/dist/business/Entry/index.js +0 -0
  8. package/dist/business/Entry/index.scss +0 -0
  9. package/dist/business/TestBtn/index.d.ts +0 -0
  10. package/dist/business/TestBtn/index.interface.d.ts +0 -0
  11. package/dist/business/TestBtn/index.interface.js +0 -0
  12. package/dist/business/TestBtn/index.js +0 -0
  13. package/dist/commonAxios/Axios.d.ts +0 -0
  14. package/dist/commonAxios/Axios.js +0 -0
  15. package/dist/commonAxios/http.d.ts +0 -0
  16. package/dist/commonAxios/http.js +0 -0
  17. package/dist/commonAxios/index.d.ts +0 -0
  18. package/dist/commonAxios/index.js +0 -0
  19. package/dist/commonAxios/juicer.d.ts +0 -0
  20. package/dist/commonAxios/juicer.js +0 -0
  21. package/dist/commonData/address.d.ts +0 -0
  22. package/dist/commonData/address.js +0 -0
  23. package/dist/commonImg/ic_im_no_archives_new.png +0 -0
  24. package/dist/commonType/globalEnum.d.ts +0 -0
  25. package/dist/commonType/globalEnum.js +0 -0
  26. package/dist/commonType/globalFun.d.ts +0 -0
  27. package/dist/commonType/globalFun.js +0 -0
  28. package/dist/components/BigImage/index.d.ts +0 -0
  29. package/dist/components/BigImage/index.interface.d.ts +0 -0
  30. package/dist/components/BigImage/index.interface.js +0 -0
  31. package/dist/components/BigImage/index.js +0 -0
  32. package/dist/components/CustomButtonModal/index.d.ts +0 -0
  33. package/dist/components/CustomButtonModal/index.interface.d.ts +0 -0
  34. package/dist/components/CustomButtonModal/index.interface.js +0 -0
  35. package/dist/components/CustomButtonModal/index.js +0 -0
  36. package/dist/components/DateTimePicker/index.d.ts +0 -0
  37. package/dist/components/DateTimePicker/index.interface.d.ts +0 -0
  38. package/dist/components/DateTimePicker/index.interface.js +0 -0
  39. package/dist/components/DateTimePicker/index.js +0 -0
  40. package/dist/components/DropDownSelect/index.d.ts +0 -0
  41. package/dist/components/DropDownSelect/index.interface.d.ts +0 -0
  42. package/dist/components/DropDownSelect/index.interface.js +0 -0
  43. package/dist/components/DropDownSelect/index.js +0 -0
  44. package/dist/components/EmptyDom/index.d.ts +0 -0
  45. package/dist/components/EmptyDom/index.interface.d.ts +0 -0
  46. package/dist/components/EmptyDom/index.interface.js +0 -0
  47. package/dist/components/EmptyDom/index.js +0 -0
  48. package/dist/components/Entry/index.d.ts +0 -0
  49. package/dist/components/Entry/index.interface.d.ts +0 -0
  50. package/dist/components/Entry/index.interface.js +0 -0
  51. package/dist/components/Entry/index.js +0 -0
  52. package/dist/components/Entry/index.scss +0 -0
  53. package/dist/components/ExportExcels/ExportExcels.scss +0 -0
  54. package/dist/components/ExportExcels/index.d.ts +0 -0
  55. package/dist/components/ExportExcels/index.interface.d.ts +0 -0
  56. package/dist/components/ExportExcels/index.interface.js +0 -0
  57. package/dist/components/ExportExcels/index.js +0 -0
  58. package/dist/components/FileUpload/fileUtil.d.ts +0 -0
  59. package/dist/components/FileUpload/fileUtil.js +0 -0
  60. package/dist/components/FileUpload/index.d.ts +0 -0
  61. package/dist/components/FileUpload/index.interface.d.ts +0 -0
  62. package/dist/components/FileUpload/index.interface.js +0 -0
  63. package/dist/components/FileUpload/index.js +0 -0
  64. package/dist/components/FileUpload/index.scss +0 -0
  65. package/dist/components/FilterRadio/index.d.ts +0 -0
  66. package/dist/components/FilterRadio/index.interface.d.ts +0 -0
  67. package/dist/components/FilterRadio/index.interface.js +0 -0
  68. package/dist/components/FilterRadio/index.js +0 -0
  69. package/dist/components/FilterRadio/index.scss +0 -0
  70. package/dist/components/MyBtn/index.d.ts +0 -0
  71. package/dist/components/MyBtn/index.interface.d.ts +0 -0
  72. package/dist/components/MyBtn/index.interface.js +0 -0
  73. package/dist/components/MyBtn/index.js +0 -0
  74. package/dist/components/NumberInput/index.d.ts +0 -0
  75. package/dist/components/NumberInput/index.interface.d.ts +0 -0
  76. package/dist/components/NumberInput/index.interface.js +0 -0
  77. package/dist/components/NumberInput/index.js +0 -0
  78. package/dist/components/NumberInput/index.scss +0 -0
  79. package/dist/components/OcrCommon/index.config.d.ts +0 -0
  80. package/dist/components/OcrCommon/index.config.js +0 -0
  81. package/dist/components/OcrCommon/index.d.ts +0 -0
  82. package/dist/components/OcrCommon/index.interface.d.ts +0 -0
  83. package/dist/components/OcrCommon/index.interface.js +0 -0
  84. package/dist/components/OcrCommon/index.js +0 -0
  85. package/dist/components/OcrCommon/index.scss +0 -0
  86. package/dist/components/PageTemplate/index.d.ts +1 -1
  87. package/dist/components/PageTemplate/index.interface.d.ts +0 -0
  88. package/dist/components/PageTemplate/index.interface.js +0 -0
  89. package/dist/components/PageTemplate/index.js +24 -23
  90. package/dist/components/PageTemplate/index.scss +0 -0
  91. package/dist/components/PageTemplate/resizable/index.d.ts +0 -0
  92. package/dist/components/PageTemplate/resizable/index.js +0 -0
  93. package/dist/components/PageTemplate/resizable/index.scss +0 -0
  94. package/dist/components/ReactEcharts/index.d.ts +0 -0
  95. package/dist/components/ReactEcharts/index.interface.d.ts +0 -0
  96. package/dist/components/ReactEcharts/index.interface.js +0 -0
  97. package/dist/components/ReactEcharts/index.js +0 -0
  98. package/dist/components/SelectMax/index.d.ts +0 -0
  99. package/dist/components/SelectMax/index.interface.d.ts +0 -0
  100. package/dist/components/SelectMax/index.interface.js +0 -0
  101. package/dist/components/SelectMax/index.js +0 -0
  102. package/dist/components/SelectPosition/index.d.ts +0 -0
  103. package/dist/components/SelectPosition/index.interface.d.ts +0 -0
  104. package/dist/components/SelectPosition/index.interface.js +0 -0
  105. package/dist/components/SelectPosition/index.js +0 -0
  106. package/dist/components/SelectPosition/index.scss +0 -0
  107. package/dist/components/SuperCascader/index.d.ts +0 -0
  108. package/dist/components/SuperCascader/index.interface.d.ts +0 -0
  109. package/dist/components/SuperCascader/index.interface.js +0 -0
  110. package/dist/components/SuperCascader/index.js +0 -0
  111. package/dist/components/SuperInput/index.d.ts +0 -0
  112. package/dist/components/SuperInput/index.interface.d.ts +0 -0
  113. package/dist/components/SuperInput/index.interface.js +0 -0
  114. package/dist/components/SuperInput/index.js +0 -0
  115. package/dist/components/TabsMode/index.d.ts +0 -0
  116. package/dist/components/TabsMode/index.interface.d.ts +0 -0
  117. package/dist/components/TabsMode/index.interface.js +0 -0
  118. package/dist/components/TabsMode/index.js +0 -0
  119. package/dist/components/TypographyText/index.d.ts +0 -0
  120. package/dist/components/TypographyText/index.interface.d.ts +0 -0
  121. package/dist/components/TypographyText/index.interface.js +0 -0
  122. package/dist/components/TypographyText/index.js +0 -0
  123. package/dist/components/TypographyText/index.scss +0 -0
  124. package/dist/components/VideoProgressModal/index.d.ts +0 -0
  125. package/dist/components/VideoProgressModal/index.interface.d.ts +0 -0
  126. package/dist/components/VideoProgressModal/index.interface.js +0 -0
  127. package/dist/components/VideoProgressModal/index.js +0 -0
  128. package/dist/components/VideoProgressModal/index.scss +0 -0
  129. package/dist/components/YLModal/index.d.ts +0 -0
  130. package/dist/components/YLModal/index.interface.d.ts +0 -0
  131. package/dist/components/YLModal/index.interface.js +0 -0
  132. package/dist/components/YLModal/index.js +0 -0
  133. package/dist/index.d.ts +0 -0
  134. package/dist/index.js +0 -0
  135. package/dist/react-app-env.d.ts +0 -0
  136. package/dist/utils/common.d.ts +0 -0
  137. package/dist/utils/common.js +0 -0
  138. package/dist/utils/index.d.ts +0 -0
  139. package/dist/utils/index.js +0 -0
  140. package/dist/utils/notificationHelper.d.ts +0 -0
  141. package/dist/utils/notificationHelper.js +0 -0
  142. package/dist/utils/responseMessage.d.ts +0 -0
  143. package/dist/utils/responseMessage.js +0 -0
  144. package/dist/utils/userSessionActions.d.ts +0 -0
  145. package/dist/utils/userSessionActions.js +0 -0
  146. package/package.json +10 -4
package/.eslintrc.js CHANGED
File without changes
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
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
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: "rowIndex",
137
+ title: '序号',
138
+ dataIndex: '',
139
+ key: 'rowIndex',
141
140
  width: 70,
142
- align: "center",
141
+ align: 'center',
143
142
  fixed: 'left',
144
143
  render: function render(_, __, index) {
145
144
  return (current - 1) * pageSizeRef.current + index + 1;
@@ -175,7 +174,9 @@ var PageTemplate = function PageTemplate(props, ref) {
175
174
  pageNum: current,
176
175
  pageSize: pageSizeRef.current
177
176
  };
178
- paramsRef.current = beforeRequest(_objectSpread(_objectSpread({}, values), options));
177
+ paramsRef.current = beforeRequest(_objectSpread(_objectSpread({
178
+ pageNo: current
179
+ }, values), options));
179
180
  if (!paramsRef.current) return; // 是否阻断搜索
180
181
 
181
182
  var params = {};
@@ -258,12 +259,12 @@ var PageTemplate = function PageTemplate(props, ref) {
258
259
  rest = _objectWithoutProperties(_ref4, _excluded);
259
260
  var initShowTime = {
260
261
  hideDisabledOptions: true,
261
- defaultValue: [dayjs("00:00:00", "HH:mm:ss"), dayjs("23:59:59", "HH:mm:ss")]
262
+ defaultValue: [dayjs('00:00:00', 'HH:mm:ss'), dayjs('23:59:59', 'HH:mm:ss')]
262
263
  };
263
264
  return /*#__PURE__*/React.createElement(RangePicker, _extends({
264
265
  placeholder: ['开始时间', '结束时间'],
265
266
  key: key,
266
- showTime: showTime || initShowTime
267
+ showTime: typeof showTime === 'undefined' ? initShowTime : showTime
267
268
  }, rest));
268
269
  case 'Input':
269
270
  return /*#__PURE__*/React.createElement(Input, {
@@ -286,7 +287,7 @@ var PageTemplate = function PageTemplate(props, ref) {
286
287
  },
287
288
  reset: reset
288
289
  }, componentOptions));
289
- case "DorpDownSelect":
290
+ case 'DorpDownSelect':
290
291
  return /*#__PURE__*/React.createElement(DropDownSelect, _extends({
291
292
  key: key
292
293
  }, componentOptions));
@@ -315,10 +316,10 @@ var PageTemplate = function PageTemplate(props, ref) {
315
316
 
316
317
  /**
317
318
  * 导出
318
- */
319
+ */
319
320
  var exportList = function exportList() {
320
321
  if (dataSource.length === 0) {
321
- message.error("暂无数据,无法导出!");
322
+ message.error('暂无数据,无法导出!');
322
323
  return;
323
324
  }
324
325
  setIsSpinLoading(true);
@@ -344,11 +345,11 @@ var PageTemplate = function PageTemplate(props, ref) {
344
345
  var getPlatFormTheme = function getPlatFormTheme() {
345
346
  switch (buttonTheme) {
346
347
  case 'department':
347
- return "actions actions-theme";
348
+ return 'actions actions-theme';
348
349
  case 'edc':
349
- return "actions actions-theme-edc";
350
+ return 'actions actions-theme-edc';
350
351
  default:
351
- return "actions";
352
+ return 'actions';
352
353
  }
353
354
  };
354
355
  return /*#__PURE__*/React.createElement(Form, {
@@ -384,8 +385,8 @@ var PageTemplate = function PageTemplate(props, ref) {
384
385
  };
385
386
 
386
387
  /**
387
- * 导出 excel
388
- */
388
+ * 导出 excel
389
+ */
389
390
  var exportProps = {
390
391
  isSpinLoading: isSpinLoading
391
392
  };
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
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yilianjituan/yilian_dgerm",
3
- "version": "0.0.1-alpha.47",
3
+ "version": "1.0.1",
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"
@@ -74,8 +80,8 @@
74
80
  "react-resizable": "^3.0.5"
75
81
  },
76
82
  "devDependencies": {
77
- "@commitlint/cli": "^17.1.2",
78
- "@commitlint/config-conventional": "^17.1.0",
83
+ "@commitlint/cli": "^17.8.1",
84
+ "@commitlint/config-conventional": "^17.8.1",
79
85
  "@types/jsdom": "^21.1.7",
80
86
  "@types/lodash": "^4.17.12",
81
87
  "@types/qs": "^6.9.16",
@@ -87,7 +93,7 @@
87
93
  "eslint": "^8.23.0",
88
94
  "father": "^4.1.0",
89
95
  "fs-extra": "^11.2.0",
90
- "husky": "^8.0.1",
96
+ "husky": "^9.1.7",
91
97
  "lint-staged": "^13.0.3",
92
98
  "prettier": "^2.7.1",
93
99
  "prettier-plugin-organize-imports": "^3.0.0",