@zgfe/modules-page 1.0.17-zhongyuan.0 → 1.0.17-zhongyuan.3
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/README.md +35 -35
- package/dist/esm/components/content/index.less +116 -116
- package/dist/esm/components/content/utils.js +4 -4
- package/dist/esm/components/detail/index.js +6 -6
- package/dist/esm/components/detail/index.less +80 -80
- package/dist/esm/components/groupModal/demo.js +1 -1
- package/dist/esm/components/groupModal/index.js +8 -8
- package/dist/esm/components/groupModal/index.less +198 -198
- package/dist/esm/components/groupModal/inputSelect.js +1 -1
- package/dist/esm/components/groupModal/pageItem.js +6 -6
- package/dist/esm/components/groupModal/types.js +1 -2
- package/dist/esm/components/pageSelect/index.js +6 -6
- package/dist/esm/components/pageSelect/index.less +109 -109
- package/dist/esm/components/pageSelect/types.js +1 -2
- package/dist/esm/components/searchPanel/index.js +6 -6
- package/dist/esm/components/searchPanel/index.less +33 -33
- package/dist/esm/components/searchPanel/util.js +4 -4
- package/dist/esm/components/topContent/index.js +1 -1
- package/dist/esm/components/topContent/index.less +10 -10
- package/dist/esm/modules/empty/index.js +2 -2
- package/dist/esm/modules/empty/index.less +95 -95
- package/dist/esm/modules/home/index.js +30 -10
- package/dist/esm/modules/home/style/index.less +59 -59
- package/dist/esm/modules/home/types.d.ts +1 -1
- package/dist/esm/modules/home/types.js +0 -1
- package/dist/esm/modules/home/utils.js +5 -5
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# modules-page
|
|
2
|
-
|
|
3
|
-
页面
|
|
4
|
-
|
|
5
|
-
## Getting Started
|
|
6
|
-
|
|
7
|
-
Install dependencies,
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
$ npm i
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Start the dev server,
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
$ npm start
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Build documentation,
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
$ npm run docs:build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Run test,
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
$ npm test
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Build library via `father`,
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
$ npm run build
|
|
35
|
-
```
|
|
1
|
+
# modules-page
|
|
2
|
+
|
|
3
|
+
页面
|
|
4
|
+
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
Install dependencies,
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
$ npm i
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Start the dev server,
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
$ npm start
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Build documentation,
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
$ npm run docs:build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Run test,
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
$ npm test
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Build library via `father`,
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
$ npm run build
|
|
35
|
+
```
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.page-content {
|
|
4
|
-
margin-top: 24px;
|
|
5
|
-
|
|
6
|
-
.ant-table
|
|
7
|
-
.ant-table-thead
|
|
8
|
-
.ant-table-cell.ant-table-column-has-sorters
|
|
9
|
-
.ant-table-column-sorters {
|
|
10
|
-
justify-content: flex-end;
|
|
11
|
-
}
|
|
12
|
-
.thread-right .ant-table-column-sorters {
|
|
13
|
-
justify-content: flex-end;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.thread-title {
|
|
17
|
-
span {
|
|
18
|
-
margin-left: 4px;
|
|
19
|
-
color: #9aa1a9;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
&:hover {
|
|
22
|
-
color: @primary-color;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.ant-table .ant-table-container .ant-table-thead > tr > th.thread-merge {
|
|
27
|
-
border-bottom: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.table-td-page {
|
|
31
|
-
position: relative;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
|
|
34
|
-
&:hover {
|
|
35
|
-
.table-td-page-icon {
|
|
36
|
-
display: block;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
&-title {
|
|
40
|
-
color: @text-color-secondary;
|
|
41
|
-
.__default-overflow();
|
|
42
|
-
}
|
|
43
|
-
&-content {
|
|
44
|
-
margin-top: 8px;
|
|
45
|
-
color: #9aa1a9;
|
|
46
|
-
font-size: 12px;
|
|
47
|
-
.__default-overflow();
|
|
48
|
-
}
|
|
49
|
-
&-icon {
|
|
50
|
-
position: absolute;
|
|
51
|
-
top: 8px;
|
|
52
|
-
right: 0px;
|
|
53
|
-
z-index: 10;
|
|
54
|
-
display: none;
|
|
55
|
-
font-size: 16px !important;
|
|
56
|
-
&:hover {
|
|
57
|
-
color: @primary-color;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.table-td-group {
|
|
62
|
-
&:hover {
|
|
63
|
-
.bsicon {
|
|
64
|
-
display: inline-block;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
&-content {
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
}
|
|
70
|
-
.bsicon {
|
|
71
|
-
display: none;
|
|
72
|
-
margin-left: 16px;
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
|
|
75
|
-
&:hover {
|
|
76
|
-
color: @primary-color;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&-empty {
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
margin-top: 24px;
|
|
86
|
-
padding: 105px 0;
|
|
87
|
-
background: #fff;
|
|
88
|
-
border: 1px solid #ecedf0;
|
|
89
|
-
border-radius: 8px;
|
|
90
|
-
|
|
91
|
-
&-content {
|
|
92
|
-
display: flex;
|
|
93
|
-
flex-direction: column;
|
|
94
|
-
align-items: center;
|
|
95
|
-
width: 348px;
|
|
96
|
-
|
|
97
|
-
img {
|
|
98
|
-
width: 348px;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&-content1 {
|
|
103
|
-
font-size: 16px;
|
|
104
|
-
}
|
|
105
|
-
&-content2 {
|
|
106
|
-
margin-top: 8px;
|
|
107
|
-
margin-bottom: 24px;
|
|
108
|
-
color: @text-color-secondary;
|
|
109
|
-
font-size: 16px;
|
|
110
|
-
text-align: center;
|
|
111
|
-
}
|
|
112
|
-
.tianjia1 {
|
|
113
|
-
margin-right: 8px;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.page-content {
|
|
4
|
+
margin-top: 24px;
|
|
5
|
+
|
|
6
|
+
.ant-table
|
|
7
|
+
.ant-table-thead
|
|
8
|
+
.ant-table-cell.ant-table-column-has-sorters
|
|
9
|
+
.ant-table-column-sorters {
|
|
10
|
+
justify-content: flex-end;
|
|
11
|
+
}
|
|
12
|
+
.thread-right .ant-table-column-sorters {
|
|
13
|
+
justify-content: flex-end;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.thread-title {
|
|
17
|
+
span {
|
|
18
|
+
margin-left: 4px;
|
|
19
|
+
color: #9aa1a9;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
&:hover {
|
|
22
|
+
color: @primary-color;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.ant-table .ant-table-container .ant-table-thead > tr > th.thread-merge {
|
|
27
|
+
border-bottom: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.table-td-page {
|
|
31
|
+
position: relative;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
.table-td-page-icon {
|
|
36
|
+
display: block;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
&-title {
|
|
40
|
+
color: @text-color-secondary;
|
|
41
|
+
.__default-overflow();
|
|
42
|
+
}
|
|
43
|
+
&-content {
|
|
44
|
+
margin-top: 8px;
|
|
45
|
+
color: #9aa1a9;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
.__default-overflow();
|
|
48
|
+
}
|
|
49
|
+
&-icon {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 8px;
|
|
52
|
+
right: 0px;
|
|
53
|
+
z-index: 10;
|
|
54
|
+
display: none;
|
|
55
|
+
font-size: 16px !important;
|
|
56
|
+
&:hover {
|
|
57
|
+
color: @primary-color;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.table-td-group {
|
|
62
|
+
&:hover {
|
|
63
|
+
.bsicon {
|
|
64
|
+
display: inline-block;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&-content {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
.bsicon {
|
|
71
|
+
display: none;
|
|
72
|
+
margin-left: 16px;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
color: @primary-color;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-empty {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
margin-top: 24px;
|
|
86
|
+
padding: 105px 0;
|
|
87
|
+
background: #fff;
|
|
88
|
+
border: 1px solid #ecedf0;
|
|
89
|
+
border-radius: 8px;
|
|
90
|
+
|
|
91
|
+
&-content {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
align-items: center;
|
|
95
|
+
width: 348px;
|
|
96
|
+
|
|
97
|
+
img {
|
|
98
|
+
width: 348px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-content1 {
|
|
103
|
+
font-size: 16px;
|
|
104
|
+
}
|
|
105
|
+
&-content2 {
|
|
106
|
+
margin-top: 8px;
|
|
107
|
+
margin-bottom: 24px;
|
|
108
|
+
color: @text-color-secondary;
|
|
109
|
+
font-size: 16px;
|
|
110
|
+
text-align: center;
|
|
111
|
+
}
|
|
112
|
+
.tianjia1 {
|
|
113
|
+
margin-right: 8px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -31,7 +31,7 @@ export var getColumns = function getColumns(type, hasUserGroup, onClickCallback,
|
|
|
31
31
|
className: "table-td-page-icon",
|
|
32
32
|
type: "fuzhi1",
|
|
33
33
|
onClick: function onClick(e) {
|
|
34
|
-
var _navigator
|
|
34
|
+
var _navigator;
|
|
35
35
|
e.stopPropagation();
|
|
36
36
|
if (!(record !== null && record !== void 0 && record.pageUrl)) return;
|
|
37
37
|
function copy() {
|
|
@@ -42,9 +42,9 @@ export var getColumns = function getColumns(type, hasUserGroup, onClickCallback,
|
|
|
42
42
|
document.execCommand('copy');
|
|
43
43
|
document.body.removeChild(el);
|
|
44
44
|
}
|
|
45
|
-
if (navigator.clipboard && (_navigator = navigator) !== null && _navigator !== void 0 && (_navigator
|
|
46
|
-
var _navigator2
|
|
47
|
-
(_navigator2 = navigator) === null || _navigator2 === void 0
|
|
45
|
+
if (navigator.clipboard && (_navigator = navigator) !== null && _navigator !== void 0 && (_navigator = _navigator.clipboard) !== null && _navigator !== void 0 && _navigator.writeText) {
|
|
46
|
+
var _navigator2;
|
|
47
|
+
(_navigator2 = navigator) === null || _navigator2 === void 0 || (_navigator2 = _navigator2.clipboard) === null || _navigator2 === void 0 || _navigator2.writeText(record === null || record === void 0 ? void 0 : record.pageUrl).catch(function () {
|
|
48
48
|
copy();
|
|
49
49
|
});
|
|
50
50
|
} else {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
14
14
|
import "./index.less";
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.detail-content {
|
|
4
|
-
margin-top: 24px;
|
|
5
|
-
border: 1px solid #ecedf0;
|
|
6
|
-
border-radius: 8px;
|
|
7
|
-
|
|
8
|
-
&-top {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: flex-start;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
padding: 16px;
|
|
13
|
-
background: #fafafb;
|
|
14
|
-
border-radius: 8px 8px 0 0;
|
|
15
|
-
&-title {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex: 1;
|
|
18
|
-
align-items: center;
|
|
19
|
-
}
|
|
20
|
-
&-value {
|
|
21
|
-
display: inline-block;
|
|
22
|
-
max-width: calc(100% - 100px);
|
|
23
|
-
.__default-overflow();
|
|
24
|
-
}
|
|
25
|
-
&-label {
|
|
26
|
-
display: inline-block;
|
|
27
|
-
margin-right: 8px;
|
|
28
|
-
padding: 2px 8px;
|
|
29
|
-
color: #67727f;
|
|
30
|
-
background: #f2f3f4;
|
|
31
|
-
border-radius: 2px;
|
|
32
|
-
}
|
|
33
|
-
&-content {
|
|
34
|
-
flex: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&-item {
|
|
38
|
-
display: flex;
|
|
39
|
-
gap: 40px;
|
|
40
|
-
align-items: center;
|
|
41
|
-
color: #67727f;
|
|
42
|
-
.bsicon {
|
|
43
|
-
margin-left: 8px;
|
|
44
|
-
color: #9aa1a9;
|
|
45
|
-
font-size: 16px !important;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
&:hover {
|
|
48
|
-
color: @primary-color;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&-content {
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
min-height: 422px;
|
|
58
|
-
padding: 16px;
|
|
59
|
-
&-img {
|
|
60
|
-
text-align: right;
|
|
61
|
-
img {
|
|
62
|
-
height: 22px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
&-panel {
|
|
66
|
-
display: flex;
|
|
67
|
-
flex: 1;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
align-items: center;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
img {
|
|
72
|
-
width: 348px;
|
|
73
|
-
}
|
|
74
|
-
.bsicon {
|
|
75
|
-
margin-right: 8px;
|
|
76
|
-
margin-left: 4px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.detail-content {
|
|
4
|
+
margin-top: 24px;
|
|
5
|
+
border: 1px solid #ecedf0;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
|
|
8
|
+
&-top {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
padding: 16px;
|
|
13
|
+
background: #fafafb;
|
|
14
|
+
border-radius: 8px 8px 0 0;
|
|
15
|
+
&-title {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex: 1;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
&-value {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
max-width: calc(100% - 100px);
|
|
23
|
+
.__default-overflow();
|
|
24
|
+
}
|
|
25
|
+
&-label {
|
|
26
|
+
display: inline-block;
|
|
27
|
+
margin-right: 8px;
|
|
28
|
+
padding: 2px 8px;
|
|
29
|
+
color: #67727f;
|
|
30
|
+
background: #f2f3f4;
|
|
31
|
+
border-radius: 2px;
|
|
32
|
+
}
|
|
33
|
+
&-content {
|
|
34
|
+
flex: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-item {
|
|
38
|
+
display: flex;
|
|
39
|
+
gap: 40px;
|
|
40
|
+
align-items: center;
|
|
41
|
+
color: #67727f;
|
|
42
|
+
.bsicon {
|
|
43
|
+
margin-left: 8px;
|
|
44
|
+
color: #9aa1a9;
|
|
45
|
+
font-size: 16px !important;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
&:hover {
|
|
48
|
+
color: @primary-color;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-content {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
min-height: 422px;
|
|
58
|
+
padding: 16px;
|
|
59
|
+
&-img {
|
|
60
|
+
text-align: right;
|
|
61
|
+
img {
|
|
62
|
+
height: 22px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&-panel {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex: 1;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
img {
|
|
72
|
+
width: 348px;
|
|
73
|
+
}
|
|
74
|
+
.bsicon {
|
|
75
|
+
margin-right: 8px;
|
|
76
|
+
margin-left: 4px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Button } from 'antd';
|
|
8
8
|
import GroupModal from '.';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { BizDialog, BizGlobalDataContext, IconFont, ajax } from '@zgfe/business-lib';
|
|
14
14
|
import { Button, Form, Input, Spin, message } from 'antd';
|
|
@@ -25,7 +25,7 @@ var GroupModal = function GroupModal(props) {
|
|
|
25
25
|
var _useContext = useContext(BizGlobalDataContext),
|
|
26
26
|
currentApp = _useContext.currentApp,
|
|
27
27
|
isDemo = _useContext.isDemo;
|
|
28
|
-
var refForm = useRef();
|
|
28
|
+
var refForm = useRef(null);
|
|
29
29
|
// 是否校验
|
|
30
30
|
var _useState3 = useState(false),
|
|
31
31
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -86,7 +86,7 @@ var GroupModal = function GroupModal(props) {
|
|
|
86
86
|
};
|
|
87
87
|
var onOk = function onOk() {
|
|
88
88
|
var _refForm$current;
|
|
89
|
-
(_refForm$current = refForm.current) === null || _refForm$current === void 0
|
|
89
|
+
(_refForm$current = refForm.current) === null || _refForm$current === void 0 || _refForm$current.submit();
|
|
90
90
|
};
|
|
91
91
|
var onSubmit = function onSubmit(data) {
|
|
92
92
|
var _props$value2;
|