@yilianjituan/yilian_dgerm 0.0.1-alpha.47 → 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/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/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
@@ -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;
@@ -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;
@@ -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("00:00:00", "HH:mm:ss"), dayjs("23:59:59", "HH:mm:ss")]
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 || initShowTime
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 "DorpDownSelect":
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 "actions actions-theme";
346
+ return 'actions actions-theme';
348
347
  case 'edc':
349
- return "actions actions-theme-edc";
348
+ return 'actions actions-theme-edc';
350
349
  default:
351
- return "actions";
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
- * 导出 excel
388
- */
386
+ * 导出 excel
387
+ */
389
388
  var exportProps = {
390
389
  isSpinLoading: isSpinLoading
391
390
  };
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.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"
@@ -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",