wargerm 0.6.8 → 0.6.10
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/dist/index.esm.js +8 -2
- package/dist/index.js +8 -2
- package/package.json +92 -92
package/dist/index.esm.js
CHANGED
@@ -1533,7 +1533,11 @@ var WSelect = function WSelect(props) {
|
|
1533
1533
|
return /*#__PURE__*/React.createElement(_Select, _objectSpread2({
|
1534
1534
|
showSearch: true,
|
1535
1535
|
filterOption: function filterOption(input, option) {
|
1536
|
-
|
1536
|
+
var _ref3;
|
1537
|
+
|
1538
|
+
var children = option.children,
|
1539
|
+
label = option.label;
|
1540
|
+
return ((_ref3 = children || label) === null || _ref3 === void 0 ? void 0 : _ref3.toLowerCase().indexOf(input === null || input === void 0 ? void 0 : input.toLowerCase())) >= 0;
|
1537
1541
|
}
|
1538
1542
|
}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
1539
1543
|
};
|
@@ -5790,6 +5794,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
5790
5794
|
var onSubmit = function onSubmit(values) {
|
5791
5795
|
var _actionRef$current6;
|
5792
5796
|
|
5797
|
+
(searchFormConfig === null || searchFormConfig === void 0 ? void 0 : searchFormConfig.handleSubmit) && searchFormConfig.handleSubmit(values);
|
5793
5798
|
formSearchRef.current = values;
|
5794
5799
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : _actionRef$current6.reload(true);
|
5795
5800
|
};
|
@@ -5797,6 +5802,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
5797
5802
|
var onReset = function onReset() {
|
5798
5803
|
var _actionRef$current7;
|
5799
5804
|
|
5805
|
+
(searchFormConfig === null || searchFormConfig === void 0 ? void 0 : searchFormConfig.onReset) && searchFormConfig.onReset();
|
5800
5806
|
formSearchRef.current = {};
|
5801
5807
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : _actionRef$current7.reload(true);
|
5802
5808
|
};
|
@@ -6633,7 +6639,7 @@ function Xgplay(_ref, fRef) {
|
|
6633
6639
|
setRef(null);
|
6634
6640
|
playerRef.current = null;
|
6635
6641
|
};
|
6636
|
-
}, []);
|
6642
|
+
}, [type]);
|
6637
6643
|
useImperativeHandle(fRef, function () {
|
6638
6644
|
return {
|
6639
6645
|
player: playerRef.current
|
package/dist/index.js
CHANGED
@@ -1598,7 +1598,11 @@ var WSelect = function WSelect(props) {
|
|
1598
1598
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({
|
1599
1599
|
showSearch: true,
|
1600
1600
|
filterOption: function filterOption(input, option) {
|
1601
|
-
|
1601
|
+
var _ref3;
|
1602
|
+
|
1603
|
+
var children = option.children,
|
1604
|
+
label = option.label;
|
1605
|
+
return ((_ref3 = children || label) === null || _ref3 === void 0 ? void 0 : _ref3.toLowerCase().indexOf(input === null || input === void 0 ? void 0 : input.toLowerCase())) >= 0;
|
1602
1606
|
}
|
1603
1607
|
}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
1604
1608
|
};
|
@@ -5855,6 +5859,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
5855
5859
|
var onSubmit = function onSubmit(values) {
|
5856
5860
|
var _actionRef$current6;
|
5857
5861
|
|
5862
|
+
(searchFormConfig === null || searchFormConfig === void 0 ? void 0 : searchFormConfig.handleSubmit) && searchFormConfig.handleSubmit(values);
|
5858
5863
|
formSearchRef.current = values;
|
5859
5864
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : _actionRef$current6.reload(true);
|
5860
5865
|
};
|
@@ -5862,6 +5867,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
5862
5867
|
var onReset = function onReset() {
|
5863
5868
|
var _actionRef$current7;
|
5864
5869
|
|
5870
|
+
(searchFormConfig === null || searchFormConfig === void 0 ? void 0 : searchFormConfig.onReset) && searchFormConfig.onReset();
|
5865
5871
|
formSearchRef.current = {};
|
5866
5872
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : _actionRef$current7.reload(true);
|
5867
5873
|
};
|
@@ -6698,7 +6704,7 @@ function Xgplay(_ref, fRef) {
|
|
6698
6704
|
setRef(null);
|
6699
6705
|
playerRef.current = null;
|
6700
6706
|
};
|
6701
|
-
}, []);
|
6707
|
+
}, [type]);
|
6702
6708
|
React.useImperativeHandle(fRef, function () {
|
6703
6709
|
return {
|
6704
6710
|
player: playerRef.current
|
package/package.json
CHANGED
@@ -1,92 +1,92 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.6.
|
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
|
-
"lodash-es": "^4.17.21",
|
54
|
-
"moment": "^2.29.4",
|
55
|
-
"react-countup": "^6.0.0",
|
56
|
-
"react-dom": "^17.0.2",
|
57
|
-
"react-file-viewer": "^1.2.1",
|
58
|
-
"swiper": "^6.7.0",
|
59
|
-
"use-sync-external-store": "^1.2.0",
|
60
|
-
"xgplayer": "^2.31.6",
|
61
|
-
"xgplayer-flv": "^2.5.1",
|
62
|
-
"xgplayer-flv.js": "^2.3.0",
|
63
|
-
"xgplayer-hls": "^2.5.2",
|
64
|
-
"xgplayer-hls.js": "^2.6.1"
|
65
|
-
},
|
66
|
-
"peerDependencies": {
|
67
|
-
"@ant-design/icons": ">=4.2.0",
|
68
|
-
"antd": ">=4.7.0",
|
69
|
-
"classnames": ">=2.2.0",
|
70
|
-
"echarts": "^5.2.2",
|
71
|
-
"echarts-for-react": "^3.0.2",
|
72
|
-
"lodash-es": ">=4.17.21",
|
73
|
-
"react": ">=17.0.0"
|
74
|
-
},
|
75
|
-
"devDependencies": {
|
76
|
-
"@ant-design/icons": "^4.6.4",
|
77
|
-
"@types/lodash-es": "^4.17.6",
|
78
|
-
"@types/react-dom": "^17.0.11",
|
79
|
-
"@types/use-sync-external-store": "^0.0.3",
|
80
|
-
"@umijs/test": "^3.0.5",
|
81
|
-
"antd": "^4.16.13",
|
82
|
-
"babel-plugin-import": "^1.13.3",
|
83
|
-
"classnames": "^2.3.1",
|
84
|
-
"dumi": "^1.1.31",
|
85
|
-
"father-build": "^1.19.1",
|
86
|
-
"gh-pages": "^3.0.0",
|
87
|
-
"lint-staged": "^10.0.7",
|
88
|
-
"prettier": "^1.19.1",
|
89
|
-
"react": "^16.12.0",
|
90
|
-
"yorkie": "^2.0.0"
|
91
|
-
}
|
92
|
-
}
|
1
|
+
{
|
2
|
+
"private": false,
|
3
|
+
"name": "wargerm",
|
4
|
+
"version": "0.6.10",
|
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
|
+
"lodash-es": "^4.17.21",
|
54
|
+
"moment": "^2.29.4",
|
55
|
+
"react-countup": "^6.0.0",
|
56
|
+
"react-dom": "^17.0.2",
|
57
|
+
"react-file-viewer": "^1.2.1",
|
58
|
+
"swiper": "^6.7.0",
|
59
|
+
"use-sync-external-store": "^1.2.0",
|
60
|
+
"xgplayer": "^2.31.6",
|
61
|
+
"xgplayer-flv": "^2.5.1",
|
62
|
+
"xgplayer-flv.js": "^2.3.0",
|
63
|
+
"xgplayer-hls": "^2.5.2",
|
64
|
+
"xgplayer-hls.js": "^2.6.1"
|
65
|
+
},
|
66
|
+
"peerDependencies": {
|
67
|
+
"@ant-design/icons": ">=4.2.0",
|
68
|
+
"antd": ">=4.7.0",
|
69
|
+
"classnames": ">=2.2.0",
|
70
|
+
"echarts": "^5.2.2",
|
71
|
+
"echarts-for-react": "^3.0.2",
|
72
|
+
"lodash-es": ">=4.17.21",
|
73
|
+
"react": ">=17.0.0"
|
74
|
+
},
|
75
|
+
"devDependencies": {
|
76
|
+
"@ant-design/icons": "^4.6.4",
|
77
|
+
"@types/lodash-es": "^4.17.6",
|
78
|
+
"@types/react-dom": "^17.0.11",
|
79
|
+
"@types/use-sync-external-store": "^0.0.3",
|
80
|
+
"@umijs/test": "^3.0.5",
|
81
|
+
"antd": "^4.16.13",
|
82
|
+
"babel-plugin-import": "^1.13.3",
|
83
|
+
"classnames": "^2.3.1",
|
84
|
+
"dumi": "^1.1.31",
|
85
|
+
"father-build": "^1.19.1",
|
86
|
+
"gh-pages": "^3.0.0",
|
87
|
+
"lint-staged": "^10.0.7",
|
88
|
+
"prettier": "^1.19.1",
|
89
|
+
"react": "^16.12.0",
|
90
|
+
"yorkie": "^2.0.0"
|
91
|
+
}
|
92
|
+
}
|