wargerm 0.5.13 → 0.5.14
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 +12 -7
- package/dist/index.js +12 -7
- package/package.json +88 -88
package/dist/index.esm.js
CHANGED
@@ -989,7 +989,8 @@ function FrameBox(_ref) {
|
|
989
989
|
}
|
990
990
|
|
991
991
|
var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
|
992
|
-
_excluded2 = ["
|
992
|
+
_excluded2 = ["value", "label"],
|
993
|
+
_excluded3 = ["children"];
|
993
994
|
|
994
995
|
var WSelect = function WSelect(props) {
|
995
996
|
var request = props.request,
|
@@ -1044,11 +1045,15 @@ var WSelect = function WSelect(props) {
|
|
1044
1045
|
case 6:
|
1045
1046
|
setResList(res);
|
1046
1047
|
onLoad && onLoad(res);
|
1047
|
-
node = res === null || res === void 0 ? void 0 : res.map(function (
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1048
|
+
node = res === null || res === void 0 ? void 0 : res.map(function (_ref2) {
|
1049
|
+
var value = _ref2.value,
|
1050
|
+
label = _ref2.label,
|
1051
|
+
extraProps = _objectWithoutProperties(_ref2, _excluded2);
|
1052
|
+
|
1053
|
+
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({
|
1054
|
+
key: value,
|
1055
|
+
value: value
|
1056
|
+
}, extraProps), label) || /*#__PURE__*/React.createElement(React.Fragment, null);
|
1052
1057
|
});
|
1053
1058
|
setChildrenNode(node);
|
1054
1059
|
|
@@ -1104,7 +1109,7 @@ WSelect.defaultProps = {};
|
|
1104
1109
|
|
1105
1110
|
var Option = function Option(props) {
|
1106
1111
|
var children = props.children,
|
1107
|
-
extraProps = _objectWithoutProperties(props,
|
1112
|
+
extraProps = _objectWithoutProperties(props, _excluded3);
|
1108
1113
|
|
1109
1114
|
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({}, extraProps), children);
|
1110
1115
|
};
|
package/dist/index.js
CHANGED
@@ -1049,7 +1049,8 @@ function FrameBox(_ref) {
|
|
1049
1049
|
}
|
1050
1050
|
|
1051
1051
|
var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
|
1052
|
-
_excluded2 = ["
|
1052
|
+
_excluded2 = ["value", "label"],
|
1053
|
+
_excluded3 = ["children"];
|
1053
1054
|
|
1054
1055
|
var WSelect = function WSelect(props) {
|
1055
1056
|
var request = props.request,
|
@@ -1104,11 +1105,15 @@ var WSelect = function WSelect(props) {
|
|
1104
1105
|
case 6:
|
1105
1106
|
setResList(res);
|
1106
1107
|
onLoad && onLoad(res);
|
1107
|
-
node = res === null || res === void 0 ? void 0 : res.map(function (
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1108
|
+
node = res === null || res === void 0 ? void 0 : res.map(function (_ref2) {
|
1109
|
+
var value = _ref2.value,
|
1110
|
+
label = _ref2.label,
|
1111
|
+
extraProps = _objectWithoutProperties(_ref2, _excluded2);
|
1112
|
+
|
1113
|
+
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({
|
1114
|
+
key: value,
|
1115
|
+
value: value
|
1116
|
+
}, extraProps), label) || /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
1112
1117
|
});
|
1113
1118
|
setChildrenNode(node);
|
1114
1119
|
|
@@ -1164,7 +1169,7 @@ WSelect.defaultProps = {};
|
|
1164
1169
|
|
1165
1170
|
var Option = function Option(props) {
|
1166
1171
|
var children = props.children,
|
1167
|
-
extraProps = _objectWithoutProperties(props,
|
1172
|
+
extraProps = _objectWithoutProperties(props, _excluded3);
|
1168
1173
|
|
1169
1174
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({}, extraProps), children);
|
1170
1175
|
};
|
package/package.json
CHANGED
@@ -1,88 +1,88 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.5.
|
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.14",
|
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
|
+
}
|