linkmore-design 1.1.8 → 1.1.9

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 (39) hide show
  1. package/CHANGELOG.md +1056 -9
  2. package/dist/Form/FormItem/index.d.ts +7 -1
  3. package/dist/Form/demos/ruleTime.d.ts +2 -0
  4. package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  5. package/dist/LmUpload/components/Preview.d.ts +5 -0
  6. package/dist/LmUpload/wrapper/reducer.d.ts +4 -0
  7. package/dist/index.umd.js +245 -120
  8. package/dist/index.umd.min.js +8 -8
  9. package/es/Form/FormItem/index.d.ts +7 -1
  10. package/es/Form/FormItem/index.js +56 -13
  11. package/es/LmEditTable/EditTable.js +24 -21
  12. package/es/LmEditTable/util.js +4 -4
  13. package/es/LmTable/Table.js +8 -6
  14. package/es/LmTable/util.js +9 -5
  15. package/es/LmUpload/LmUpload.js +1 -0
  16. package/es/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  17. package/es/LmUpload/UploadList/ItemPictureCard.js +16 -4
  18. package/es/LmUpload/UploadList/index.js +11 -7
  19. package/es/LmUpload/components/Preview.d.ts +5 -0
  20. package/es/LmUpload/components/Preview.js +43 -0
  21. package/es/LmUpload/wrapper/UploadWrapper.js +3 -0
  22. package/es/LmUpload/wrapper/reducer.d.ts +4 -0
  23. package/es/LmUpload/wrapper/reducer.js +12 -3
  24. package/lib/Form/FormItem/index.d.ts +7 -1
  25. package/lib/Form/FormItem/index.js +58 -14
  26. package/lib/LmEditTable/EditTable.js +24 -21
  27. package/lib/LmEditTable/util.js +4 -4
  28. package/lib/LmTable/Table.js +8 -6
  29. package/lib/LmTable/util.js +9 -5
  30. package/lib/LmUpload/LmUpload.js +1 -0
  31. package/lib/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  32. package/lib/LmUpload/UploadList/ItemPictureCard.js +16 -4
  33. package/lib/LmUpload/UploadList/index.js +13 -7
  34. package/lib/LmUpload/components/Preview.d.ts +5 -0
  35. package/lib/LmUpload/components/Preview.js +55 -0
  36. package/lib/LmUpload/wrapper/UploadWrapper.js +4 -0
  37. package/lib/LmUpload/wrapper/reducer.d.ts +4 -0
  38. package/lib/LmUpload/wrapper/reducer.js +12 -3
  39. package/package.json +15 -3
@@ -9,7 +9,8 @@ exports.reducer = exports.initialState = exports.default = void 0;
9
9
  var reducer = function reducer(state, action) {
10
10
  var fileList = action.fileList,
11
11
  percent = action.percent,
12
- cropFile = action.cropFile;
12
+ cropFile = action.cropFile,
13
+ preview = action.preview;
13
14
 
14
15
  switch (action.type) {
15
16
  case 'changeFileList':
@@ -27,6 +28,11 @@ var reducer = function reducer(state, action) {
27
28
  cropFile: cropFile
28
29
  });
29
30
 
31
+ case 'changePreview':
32
+ return Object.assign(Object.assign({}, state), {
33
+ preview: Object.assign(Object.assign({}, state.preview), preview)
34
+ });
35
+
30
36
  default:
31
37
  throw new Error();
32
38
  }
@@ -43,8 +49,11 @@ var initialState = function initialState(props) {
43
49
  process: 0,
44
50
  status: 'done',
45
51
  fileList: defaultFileList,
46
- cropFile: null // 需要裁剪的图片
47
-
52
+ cropFile: null,
53
+ preview: {
54
+ index: 0,
55
+ visible: false
56
+ }
48
57
  };
49
58
  };
50
59
 
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "linkmore-design",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "author": {
5
5
  "name": "nowthen",
6
6
  "email": "rnlvwyx@gmail.com"
7
7
  },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://gitlab.scm321.com/web-group/UFX.SCM.linkDesign.git"
11
+ },
8
12
  "main": "lib/index.js",
9
13
  "module": "es/index.js",
10
14
  "unpkg": "dist/index.umd.min.js",
@@ -37,7 +41,8 @@
37
41
  "pub": "npm run build && npm version patch && npm publish",
38
42
  "rbc": "parcel build src/styles/main.less --no-source-maps",
39
43
  "cssrb": "node ./config/css.js",
40
- "rbuild": "npm run cssrb && npm run build && node ./config/copy.js"
44
+ "rbuild": "npm run cssrb && npm run build && node ./config/copy.js",
45
+ "changelog": "conventional-changelog -p react -i CHANGELOG.md -s -r 0"
41
46
  },
42
47
  "lint-staged": {
43
48
  "gitDir": "../",
@@ -49,6 +54,11 @@
49
54
  "yarn run lint:js"
50
55
  ]
51
56
  },
57
+ "husky": {
58
+ "hooks": {
59
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
60
+ }
61
+ },
52
62
  "dependencies": {
53
63
  "@ant-design/charts": "^1.4.2",
54
64
  "@ant-design/compatible": "1.0.8",
@@ -67,6 +77,8 @@
67
77
  "antd-img-crop": "^4.2.5",
68
78
  "axios": "^0.21.0",
69
79
  "classnames": "^2.3.1",
80
+ "conventional-changelog": "^3.1.25",
81
+ "conventional-changelog-cli": "^2.2.2",
70
82
  "dayjs": "^1.9.7",
71
83
  "echarts": "^5.4.0",
72
84
  "hex-to-rgba": "^2.0.1",
@@ -103,7 +115,7 @@
103
115
  "@babel/plugin-transform-runtime": "^7.12.1",
104
116
  "@babel/preset-typescript": "^7.17.12",
105
117
  "@commitlint/cli": "^11.0.0",
106
- "@commitlint/config-conventional": "^11.0.0",
118
+ "@linkmore/commitlint-config": "^1.0.2",
107
119
  "@types/react": "^18.0.19",
108
120
  "@types/react-dom": "^18.0.6",
109
121
  "autoprefixer": "^9.0.0",