wargerm 0.5.20 → 0.5.23

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.
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function InputGroup({ value, onChange, onClick, ...props }: any): JSX.Element;
package/dist/index.esm.js CHANGED
@@ -10454,7 +10454,9 @@ var ModalForm = function ModalForm(props, ref) {
10454
10454
  var _formRef$current3;
10455
10455
 
10456
10456
  if (formRef === null || formRef === void 0 ? void 0 : (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldsValue) {
10457
+ resetFields();
10457
10458
  formRef.current.setFieldsValue(record);
10459
+ modalFormOpend && modalFormOpend(record);
10458
10460
  }
10459
10461
  };
10460
10462
 
@@ -10462,7 +10464,8 @@ var ModalForm = function ModalForm(props, ref) {
10462
10464
  return {
10463
10465
  formRef: formRef.current,
10464
10466
  onSubmit: onSubmit,
10465
- modalFormvisible: visible
10467
+ modalFormvisible: visible,
10468
+ setFieldsValue: setFieldsValue
10466
10469
  };
10467
10470
  });
10468
10471
 
@@ -10535,11 +10538,9 @@ var ModalForm = function ModalForm(props, ref) {
10535
10538
 
10536
10539
  useEffect(function () {
10537
10540
  if (formIntance) {
10538
- resetFields();
10539
10541
  setFieldsValue(record);
10540
- modalFormOpend && modalFormOpend(record);
10541
10542
  }
10542
- }, [visible, record, formIntance, JSON.stringify(extraColumns)]);
10543
+ }, [visible, record, formIntance]);
10543
10544
  return /*#__PURE__*/React.createElement(_Modal, _objectSpread2(_objectSpread2({
10544
10545
  title: title,
10545
10546
  visible: visible
package/dist/index.js CHANGED
@@ -10514,7 +10514,9 @@ var ModalForm = function ModalForm(props, ref) {
10514
10514
  var _formRef$current3;
10515
10515
 
10516
10516
  if (formRef === null || formRef === void 0 ? void 0 : (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldsValue) {
10517
+ resetFields();
10517
10518
  formRef.current.setFieldsValue(record);
10519
+ modalFormOpend && modalFormOpend(record);
10518
10520
  }
10519
10521
  };
10520
10522
 
@@ -10522,7 +10524,8 @@ var ModalForm = function ModalForm(props, ref) {
10522
10524
  return {
10523
10525
  formRef: formRef.current,
10524
10526
  onSubmit: onSubmit,
10525
- modalFormvisible: visible
10527
+ modalFormvisible: visible,
10528
+ setFieldsValue: setFieldsValue
10526
10529
  };
10527
10530
  });
10528
10531
 
@@ -10595,11 +10598,9 @@ var ModalForm = function ModalForm(props, ref) {
10595
10598
 
10596
10599
  React.useEffect(function () {
10597
10600
  if (formIntance) {
10598
- resetFields();
10599
10601
  setFieldsValue(record);
10600
- modalFormOpend && modalFormOpend(record);
10601
10602
  }
10602
- }, [visible, record, formIntance, JSON.stringify(extraColumns)]);
10603
+ }, [visible, record, formIntance]);
10603
10604
  return /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _objectSpread2(_objectSpread2({
10604
10605
  title: title,
10605
10606
  visible: visible
package/package.json CHANGED
@@ -1,88 +1,87 @@
1
- {
2
- "private": false,
3
- "name": "wargerm",
4
- "version": "0.5.20",
5
- "scripts": {
6
- "dev": "dumi dev",
7
- "docs:build": "dumi build",
8
- "docs:deploy": "gh-pages -d docs-dist",
9
- "build": "father-build",
10
- "deploy": "npm run docs:build && npm run docs:deploy",
11
- "release": "npm run build && npm publish",
12
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
- "test": "umi-test",
14
- "test:coverage": "umi-test --coverage"
15
- },
16
- "main": "dist/index.js",
17
- "module": "dist/index.esm.js",
18
- "unpkg": "dist/index.umd.min.js",
19
- "typings": "dist/index.d.ts",
20
- "author": "jinly2",
21
- "license": "MIT",
22
- "keywords": [
23
- "React",
24
- "Component"
25
- ],
26
- "gitHooks": {
27
- "pre-commit": "lint-staged"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
32
- "branch": "main"
33
- },
34
- "files": [
35
- "dist",
36
- "es",
37
- "lib",
38
- "index.css"
39
- ],
40
- "lint-staged": {
41
- "*.{js,jsx,less,md,json}": [
42
- "prettier --write"
43
- ],
44
- "*.ts?(x)": [
45
- "prettier --parser=typescript --write"
46
- ]
47
- },
48
- "dependencies": {
49
- "@ant-design/pro-form": "^1.49.3",
50
- "@ant-design/pro-table": "^2.58.1",
51
- "animate.css": "^4.1.1",
52
- "react-countup": "^6.0.0",
53
- "react-dom": "^17.0.2",
54
- "echarts": "^5.2.2",
55
- "echarts-for-react": "^3.0.2",
56
- "swiper": "^6.7.0",
57
- "xgplayer": "^2.31.6",
58
- "xgplayer-flv": "^2.5.1",
59
- "xgplayer-flv.js": "^2.3.0",
60
- "xgplayer-hls": "^2.5.2",
61
- "xgplayer-hls.js": "^2.6.1"
62
- },
63
- "peerDependencies": {
64
- "@ant-design/icons": ">=4.2.0",
65
- "antd": ">=4.7.0",
66
- "classnames": ">=2.2.0",
67
- "echarts": "^5.2.2",
68
- "echarts-for-react": "^3.0.2",
69
- "lodash": ">=4.0.0",
70
- "react": ">=17.0.0"
71
- },
72
- "devDependencies": {
73
- "@ant-design/icons": "^4.6.4",
74
- "@types/lodash": "^4.14.173",
75
- "@types/react-dom": "^17.0.11",
76
- "@umijs/test": "^3.0.5",
77
- "antd": "^4.16.13",
78
- "babel-plugin-import": "^1.13.3",
79
- "classnames": "^2.3.1",
80
- "dumi": "^1.1.31",
81
- "father-build": "^1.19.1",
82
- "gh-pages": "^3.0.0",
83
- "lint-staged": "^10.0.7",
84
- "prettier": "^1.19.1",
85
- "react": "^16.12.0",
86
- "yorkie": "^2.0.0"
87
- }
88
- }
1
+ {
2
+ "private": false,
3
+ "name": "wargerm",
4
+ "version": "0.5.23",
5
+ "scripts": {
6
+ "dev": "dumi dev",
7
+ "docs:build": "dumi build",
8
+ "docs:deploy": "gh-pages -d docs-dist",
9
+ "build": "father-build",
10
+ "deploy": "npm run docs:build && npm run docs:deploy",
11
+ "release": "npm run build && npm publish",
12
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
+ "test": "umi-test",
14
+ "test:coverage": "umi-test --coverage"
15
+ },
16
+ "main": "dist/index.js",
17
+ "module": "dist/index.esm.js",
18
+ "unpkg": "dist/index.umd.min.js",
19
+ "typings": "dist/index.d.ts",
20
+ "author": "jinly2",
21
+ "license": "MIT",
22
+ "keywords": [
23
+ "React",
24
+ "Component"
25
+ ],
26
+ "gitHooks": {
27
+ "pre-commit": "lint-staged"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
32
+ "branch": "main"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "es",
37
+ "lib",
38
+ "index.css"
39
+ ],
40
+ "lint-staged": {
41
+ "*.{js,jsx,less,md,json}": [
42
+ "prettier --write"
43
+ ],
44
+ "*.ts?(x)": [
45
+ "prettier --parser=typescript --write"
46
+ ]
47
+ },
48
+ "dependencies": {
49
+ "@ant-design/pro-table": "^2.79.0",
50
+ "animate.css": "^4.1.1",
51
+ "echarts": "^5.2.2",
52
+ "echarts-for-react": "^3.0.2",
53
+ "react-countup": "^6.0.0",
54
+ "react-dom": "^17.0.2",
55
+ "swiper": "^6.7.0",
56
+ "xgplayer": "^2.31.6",
57
+ "xgplayer-flv": "^2.5.1",
58
+ "xgplayer-flv.js": "^2.3.0",
59
+ "xgplayer-hls": "^2.5.2",
60
+ "xgplayer-hls.js": "^2.6.1"
61
+ },
62
+ "peerDependencies": {
63
+ "@ant-design/icons": ">=4.2.0",
64
+ "antd": ">=4.7.0",
65
+ "classnames": ">=2.2.0",
66
+ "echarts": "^5.2.2",
67
+ "echarts-for-react": "^3.0.2",
68
+ "lodash": ">=4.0.0",
69
+ "react": ">=17.0.0"
70
+ },
71
+ "devDependencies": {
72
+ "@ant-design/icons": "^4.6.4",
73
+ "@types/lodash": "^4.14.173",
74
+ "@types/react-dom": "^17.0.11",
75
+ "@umijs/test": "^3.0.5",
76
+ "antd": "^4.16.13",
77
+ "babel-plugin-import": "^1.13.3",
78
+ "classnames": "^2.3.1",
79
+ "dumi": "^1.1.31",
80
+ "father-build": "^1.19.1",
81
+ "gh-pages": "^3.0.0",
82
+ "lint-staged": "^10.0.7",
83
+ "prettier": "^1.19.1",
84
+ "react": "^16.12.0",
85
+ "yorkie": "^2.0.0"
86
+ }
87
+ }