@zgfe/modules-page 1.0.17-zhongyuan.0 → 1.0.17-zhongyuan.4

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 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, _navigator$clipboard;
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$clipboard = _navigator.clipboard) !== null && _navigator$clipboard !== void 0 && _navigator$clipboard.writeText) {
46
- var _navigator2, _navigator2$clipboard;
47
- (_navigator2 = navigator) === null || _navigator2 === void 0 ? void 0 : (_navigator2$clipboard = _navigator2.clipboard) === null || _navigator2$clipboard === void 0 ? void 0 : _navigator2$clipboard.writeText(record === null || record === void 0 ? void 0 : record.pageUrl).catch(function () {
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(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
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(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
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(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
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 ? void 0 : _refForm$current.submit();
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;