@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.
@@ -1,109 +1,109 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
-
3
- .page-select {
4
- &-panel {
5
- display: flex;
6
- align-items: center;
7
- padding: 4px 24px;
8
-
9
- &:hover {
10
- background: #e8efff;
11
- }
12
- &-type {
13
- width: 184px;
14
- margin-right: 16px;
15
- }
16
-
17
- &-page {
18
- min-width: 184px;
19
- margin-right: 16px;
20
- }
21
-
22
- &-icon {
23
- font-size: 20px !important;
24
- .__icon();
25
- }
26
- }
27
- .biz-attr-condition-group {
28
- margin-top: 12px;
29
- }
30
- .biz-select-option {
31
- height: auto;
32
- &.active {
33
- .page-select-select-option-content {
34
- color: #fff;
35
- }
36
- }
37
- }
38
- &-select-option {
39
- width: 100%;
40
- padding: 6px 0;
41
-
42
- &:hover .page-select-select-option-content {
43
- color: @primary-color;
44
- }
45
- &-title {
46
- line-height: 20px;
47
- .__default-overflow();
48
- }
49
-
50
- &-content {
51
- color: #67727f;
52
- font-size: 12px;
53
- line-height: 16px;
54
- .__default-overflow();
55
- }
56
- }
57
-
58
- &-handle {
59
- display: flex;
60
- flex-direction: row;
61
- width: 184px;
62
- height: 32px;
63
- margin-right: @margin-md;
64
- padding: 0 @padding-xs;
65
- line-height: 32px;
66
- .__select-handle();
67
- }
68
- &-val {
69
- flex: 1;
70
- overflow: hidden;
71
- white-space: nowrap;
72
- text-overflow: ellipsis;
73
- }
74
- &-icon {
75
- flex: none;
76
- color: #5f6085;
77
- }
78
- &-overlay {
79
- .__select-panel();
80
- width: 400px;
81
- }
82
- &-search {
83
- margin-bottom: @margin-xs;
84
- }
85
- &-opt {
86
- .__select-option();
87
- height: 48px;
88
- padding: 6px @padding-xs;
89
- line-height: normal;
90
- &.active {
91
- .page-select-url {
92
- color: #fff;
93
- }
94
- }
95
- }
96
- &-tle {
97
- line-height: 20px;
98
- }
99
- &-url {
100
- color: #67727f;
101
- font-size: 12px;
102
- line-height: 16px;
103
- }
104
- &-tle,
105
- &-url {
106
- overflow: hidden;
107
- text-overflow: ellipsis;
108
- }
109
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+
3
+ .page-select {
4
+ &-panel {
5
+ display: flex;
6
+ align-items: center;
7
+ padding: 4px 24px;
8
+
9
+ &:hover {
10
+ background: #e8efff;
11
+ }
12
+ &-type {
13
+ width: 184px;
14
+ margin-right: 16px;
15
+ }
16
+
17
+ &-page {
18
+ min-width: 184px;
19
+ margin-right: 16px;
20
+ }
21
+
22
+ &-icon {
23
+ font-size: 20px !important;
24
+ .__icon();
25
+ }
26
+ }
27
+ .biz-attr-condition-group {
28
+ margin-top: 12px;
29
+ }
30
+ .biz-select-option {
31
+ height: auto;
32
+ &.active {
33
+ .page-select-select-option-content {
34
+ color: #fff;
35
+ }
36
+ }
37
+ }
38
+ &-select-option {
39
+ width: 100%;
40
+ padding: 6px 0;
41
+
42
+ &:hover .page-select-select-option-content {
43
+ color: @primary-color;
44
+ }
45
+ &-title {
46
+ line-height: 20px;
47
+ .__default-overflow();
48
+ }
49
+
50
+ &-content {
51
+ color: #67727f;
52
+ font-size: 12px;
53
+ line-height: 16px;
54
+ .__default-overflow();
55
+ }
56
+ }
57
+
58
+ &-handle {
59
+ display: flex;
60
+ flex-direction: row;
61
+ width: 184px;
62
+ height: 32px;
63
+ margin-right: @margin-md;
64
+ padding: 0 @padding-xs;
65
+ line-height: 32px;
66
+ .__select-handle();
67
+ }
68
+ &-val {
69
+ flex: 1;
70
+ overflow: hidden;
71
+ white-space: nowrap;
72
+ text-overflow: ellipsis;
73
+ }
74
+ &-icon {
75
+ flex: none;
76
+ color: #5f6085;
77
+ }
78
+ &-overlay {
79
+ .__select-panel();
80
+ width: 400px;
81
+ }
82
+ &-search {
83
+ margin-bottom: @margin-xs;
84
+ }
85
+ &-opt {
86
+ .__select-option();
87
+ height: 48px;
88
+ padding: 6px @padding-xs;
89
+ line-height: normal;
90
+ &.active {
91
+ .page-select-url {
92
+ color: #fff;
93
+ }
94
+ }
95
+ }
96
+ &-tle {
97
+ line-height: 20px;
98
+ }
99
+ &-url {
100
+ color: #67727f;
101
+ font-size: 12px;
102
+ line-height: 16px;
103
+ }
104
+ &-tle,
105
+ &-url {
106
+ overflow: hidden;
107
+ text-overflow: ellipsis;
108
+ }
109
+ }
@@ -1,2 +1 @@
1
- export var PageSelectTypes;
2
- (function (_PageSelectTypes) {})(PageSelectTypes || (PageSelectTypes = {}));
1
+ export var PageSelectTypes;
@@ -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 { Form, Skeleton } from 'antd';
8
8
  import React, { useEffect, useRef, useState } from 'react';
@@ -42,11 +42,11 @@ var SearchPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
42
42
  }, 0);
43
43
  }, []);
44
44
 
45
- /**
46
- * 筛选值发生改变
47
- * @param _changedValues 当前表单项改变后的值
48
- * @param allValues 当前表单值
49
- * @returns
45
+ /**
46
+ * 筛选值发生改变
47
+ * @param _changedValues 当前表单项改变后的值
48
+ * @param allValues 当前表单值
49
+ * @returns
50
50
  */
51
51
  var onChange = function onChange(_changedValues, allValues) {
52
52
  setFormData(allValues);
@@ -1,33 +1,33 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
-
3
- .page-search-panel {
4
- &-title.ant-form-item {
5
- margin-bottom: 8px;
6
- padding-left: 24px;
7
- color: @text-color-secondary;
8
- font-weight: 500;
9
- .ant-form-item-control-input {
10
- min-height: 20px;
11
- .ant-form-item-control-input-content {
12
- height: 20px;
13
- }
14
- }
15
- }
16
-
17
- &-item3.ant-form-item:not(.page-search-panel-hidden) {
18
- margin-bottom: 20px;
19
- }
20
- &-item1.ant-form-item {
21
- margin-bottom: 20px !important;
22
- }
23
- &-item2.ant-form-item {
24
- margin-bottom: 4px !important;
25
- }
26
-
27
- &-hidden.ant-form-item {
28
- margin-bottom: 16px;
29
- .ant-form-item-control-input {
30
- min-height: 0;
31
- }
32
- }
33
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+
3
+ .page-search-panel {
4
+ &-title.ant-form-item {
5
+ margin-bottom: 8px;
6
+ padding-left: 24px;
7
+ color: @text-color-secondary;
8
+ font-weight: 500;
9
+ .ant-form-item-control-input {
10
+ min-height: 20px;
11
+ .ant-form-item-control-input-content {
12
+ height: 20px;
13
+ }
14
+ }
15
+ }
16
+
17
+ &-item3.ant-form-item:not(.page-search-panel-hidden) {
18
+ margin-bottom: 20px;
19
+ }
20
+ &-item1.ant-form-item {
21
+ margin-bottom: 20px !important;
22
+ }
23
+ &-item2.ant-form-item {
24
+ margin-bottom: 4px !important;
25
+ }
26
+
27
+ &-hidden.ant-form-item {
28
+ margin-bottom: 16px;
29
+ .ant-form-item-control-input {
30
+ min-height: 0;
31
+ }
32
+ }
33
+ }
@@ -28,10 +28,10 @@ export var formatValue = function formatValue(source) {
28
28
  };
29
29
  };
30
30
 
31
- /**
32
- * 筛选条件当未选择值时,不查询
33
- * @param filters 筛选条件数组
34
- * @returns
31
+ /**
32
+ * 筛选条件当未选择值时,不查询
33
+ * @param filters 筛选条件数组
34
+ * @returns
35
35
  */
36
36
  function getConditionList(filters) {
37
37
  if (!filters || !filters.conditions) return;
@@ -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 React, { useEffect, useState, useContext } from 'react';
8
8
  import "./index.less";
@@ -1,10 +1,10 @@
1
- .top-content {
2
- display: flex;
3
- justify-content: space-between;
4
- font-size: 14px;
5
- .ant-btn {
6
- .bsicon {
7
- margin-right: 8px;
8
- }
9
- }
10
- }
1
+ .top-content {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ font-size: 14px;
5
+ .ant-btn {
6
+ .bsicon {
7
+ margin-right: 8px;
8
+ }
9
+ }
10
+ }
@@ -10,9 +10,9 @@ var EmptyPanel = function EmptyPanel() {
10
10
  };
11
11
  // 复制
12
12
  var onCopy = function onCopy() {
13
- var _navigator, _navigator$clipboard;
13
+ var _navigator;
14
14
  var codeNode = " window.".concat(jsSdkName, ".load('").concat(currentApp.appKey, "', {\n autoTrack: true, //\u5168\u57CB\u70B9\u5F00\u5173\n singlePage: false //\u662F\u5426\u4E3A\u5355\u9875\u9762\u5E94\u7528 \u9ED8\u8BA4\u4E3Afalse\n });");
15
- (_navigator = navigator) === null || _navigator === void 0 ? void 0 : (_navigator$clipboard = _navigator.clipboard) === null || _navigator$clipboard === void 0 ? void 0 : _navigator$clipboard.writeText(codeNode).catch(function () {
15
+ (_navigator = navigator) === null || _navigator === void 0 || (_navigator = _navigator.clipboard) === null || _navigator === void 0 || _navigator.writeText(codeNode).catch(function () {
16
16
  var el = document.createElement('textarea');
17
17
  el.value = codeNode;
18
18
  document.body.appendChild(el);
@@ -1,95 +1,95 @@
1
- .empty-panel {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- width: 100%;
6
- min-width: 850px;
7
- height: 100%;
8
- overflow: auto;
9
- background: url(./img/bg.png);
10
- background-size: cover;
11
- &-content {
12
- width: 406px;
13
- margin-left: 136px;
14
- p {
15
- color: #9aa1a9;
16
- font-size: 14px;
17
- }
18
- }
19
- &-content2 {
20
- width: 400px;
21
- p {
22
- margin-bottom: 0;
23
- }
24
- }
25
- &-title {
26
- margin-bottom: 24px;
27
- font-weight: 500;
28
- font-size: 28px;
29
- }
30
- &-title-secondary {
31
- margin-top: 24px;
32
- margin-bottom: 8px;
33
- font-weight: 500;
34
- font-size: 16px;
35
- }
36
-
37
- &-code-container {
38
- position: relative;
39
- height: 200px;
40
- margin: 8px 0;
41
- padding: 16px;
42
- background: #fafafb;
43
- border-radius: 8px;
44
- &:hover {
45
- .empty-panel-code-copy {
46
- display: flex;
47
- }
48
- }
49
-
50
- & > div:not(.empty-panel-code-copy) {
51
- color: #354354;
52
- font-size: 14px;
53
- line-height: 22px;
54
- word-wrap: break-word;
55
- span {
56
- margin-left: 8px;
57
- color: #9aa1a9;
58
- }
59
- }
60
- }
61
- &-code {
62
- margin-left: 16px;
63
- }
64
- &-code-copy {
65
- position: absolute;
66
- top: 16px;
67
- right: 16px;
68
- display: flex;
69
- display: none;
70
- align-items: center;
71
- height: 24px;
72
- padding: 0 8px;
73
- background: #f2f3f4;
74
- border-radius: 4px;
75
- cursor: pointer;
76
- &:hover {
77
- background: #e6e7ea;
78
- }
79
- &:focus {
80
- background-color: #ccd0d4;
81
- }
82
-
83
- span {
84
- margin-right: 8px;
85
- margin-left: 0 !important;
86
- font-size: 16px !important;
87
- line-height: 1;
88
- }
89
- }
90
-
91
- &-img {
92
- height: 100%;
93
- // max-width: 50%;
94
- }
95
- }
1
+ .empty-panel {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ width: 100%;
6
+ min-width: 850px;
7
+ height: 100%;
8
+ overflow: auto;
9
+ background: url(./img/bg.png);
10
+ background-size: cover;
11
+ &-content {
12
+ width: 406px;
13
+ margin-left: 136px;
14
+ p {
15
+ color: #9aa1a9;
16
+ font-size: 14px;
17
+ }
18
+ }
19
+ &-content2 {
20
+ width: 400px;
21
+ p {
22
+ margin-bottom: 0;
23
+ }
24
+ }
25
+ &-title {
26
+ margin-bottom: 24px;
27
+ font-weight: 500;
28
+ font-size: 28px;
29
+ }
30
+ &-title-secondary {
31
+ margin-top: 24px;
32
+ margin-bottom: 8px;
33
+ font-weight: 500;
34
+ font-size: 16px;
35
+ }
36
+
37
+ &-code-container {
38
+ position: relative;
39
+ height: 200px;
40
+ margin: 8px 0;
41
+ padding: 16px;
42
+ background: #fafafb;
43
+ border-radius: 8px;
44
+ &:hover {
45
+ .empty-panel-code-copy {
46
+ display: flex;
47
+ }
48
+ }
49
+
50
+ & > div:not(.empty-panel-code-copy) {
51
+ color: #354354;
52
+ font-size: 14px;
53
+ line-height: 22px;
54
+ word-wrap: break-word;
55
+ span {
56
+ margin-left: 8px;
57
+ color: #9aa1a9;
58
+ }
59
+ }
60
+ }
61
+ &-code {
62
+ margin-left: 16px;
63
+ }
64
+ &-code-copy {
65
+ position: absolute;
66
+ top: 16px;
67
+ right: 16px;
68
+ display: flex;
69
+ display: none;
70
+ align-items: center;
71
+ height: 24px;
72
+ padding: 0 8px;
73
+ background: #f2f3f4;
74
+ border-radius: 4px;
75
+ cursor: pointer;
76
+ &:hover {
77
+ background: #e6e7ea;
78
+ }
79
+ &:focus {
80
+ background-color: #ccd0d4;
81
+ }
82
+
83
+ span {
84
+ margin-right: 8px;
85
+ margin-left: 0 !important;
86
+ font-size: 16px !important;
87
+ line-height: 1;
88
+ }
89
+ }
90
+
91
+ &-img {
92
+ height: 100%;
93
+ // max-width: 50%;
94
+ }
95
+ }