@nokecy/qc-ui 1.0.2 → 1.0.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.
Files changed (49) hide show
  1. package/README.md +23 -23
  2. package/dist/cjs/ConfirmPro/index.js +4 -4
  3. package/dist/cjs/ag-grid-plus/_utils/boolSelect.js +5 -5
  4. package/dist/cjs/ag-grid-plus/ag-grid-theme-builder.css +352 -352
  5. package/dist/cjs/ag-grid-plus/index.less +14 -14
  6. package/dist/cjs/ag-grid-plus/interface.d.ts +5 -0
  7. package/dist/cjs/ag-grid-plus/queryForm/index.js +4 -0
  8. package/dist/cjs/ag-grid-plus/queryForm/index.less +48 -48
  9. package/dist/cjs/ag-grid-plus/toolBar/index.js +4 -4
  10. package/dist/cjs/ag-grid-plus/utils.js +4 -2
  11. package/dist/cjs/dashboard/dashboard/components/toolbar/style/index.less +49 -49
  12. package/dist/cjs/dashboard/dashboard/index.less +173 -173
  13. package/dist/cjs/dashboard/dashboard/utils.js +4 -4
  14. package/dist/cjs/dashboard/utils.js +8 -8
  15. package/dist/cjs/dashboard/widget/index.less +7 -7
  16. package/dist/cjs/dashboard/widget/selector/index.less +172 -172
  17. package/dist/cjs/draggableModal/index.js +4 -4
  18. package/dist/cjs/draggableModal/style.less +16 -16
  19. package/dist/cjs/formDesigner/arrayTable/styles.less +2 -2
  20. package/dist/cjs/formDesigner/index.less +2 -2
  21. package/dist/cjs/fullScreenAlert/index.js +4 -4
  22. package/dist/cjs/fullScreenAlert/index.less +133 -133
  23. package/dist/cjs/importModal/index.js +4 -4
  24. package/dist/cjs/toolBar/index.less +25 -25
  25. package/dist/esm/ConfirmPro/index.js +4 -4
  26. package/dist/esm/ag-grid-plus/_utils/boolSelect.js +5 -5
  27. package/dist/esm/ag-grid-plus/ag-grid-theme-builder.css +352 -352
  28. package/dist/esm/ag-grid-plus/index.less +14 -14
  29. package/dist/esm/ag-grid-plus/interface.d.ts +5 -0
  30. package/dist/esm/ag-grid-plus/queryForm/index.js +4 -0
  31. package/dist/esm/ag-grid-plus/queryForm/index.less +48 -48
  32. package/dist/esm/ag-grid-plus/toolBar/index.js +4 -4
  33. package/dist/esm/ag-grid-plus/utils.js +4 -2
  34. package/dist/esm/dashboard/dashboard/components/toolbar/style/index.less +49 -49
  35. package/dist/esm/dashboard/dashboard/index.less +173 -173
  36. package/dist/esm/dashboard/dashboard/utils.js +4 -4
  37. package/dist/esm/dashboard/utils.js +8 -8
  38. package/dist/esm/dashboard/widget/index.less +7 -7
  39. package/dist/esm/dashboard/widget/selector/index.less +172 -172
  40. package/dist/esm/draggableModal/index.js +4 -4
  41. package/dist/esm/draggableModal/style.less +16 -16
  42. package/dist/esm/formDesigner/arrayTable/styles.less +2 -2
  43. package/dist/esm/formDesigner/index.less +2 -2
  44. package/dist/esm/fullScreenAlert/index.js +4 -4
  45. package/dist/esm/fullScreenAlert/index.less +133 -133
  46. package/dist/esm/importModal/index.js +4 -4
  47. package/dist/esm/toolBar/index.less +25 -25
  48. package/dist/umd/qc-ui.min.js +1 -1
  49. package/package.json +70 -70
@@ -1,15 +1,15 @@
1
- .grid-spin {
2
- height: 100%;
3
-
4
- .ant-spin-container {
5
- height: 100%;
6
- }
7
- }
8
-
9
- .ag-icon-filter:before {
10
- -webkit-mask-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzIzNjg0NDAwMDY0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0MjgiIHhtbG5zOnhsaW5r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aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTMyNS43MTQyODYgODg0LjU3MTQyOWMwIDIwLjIyODU3MSAxNi4yMjg1NzEgMzYuNTcxNDI5IDM2LjM0Mjg1NyAzNi41NzE0MjhoMjk5Ljg4NTcxNGMyMC4xMTQyODYgMCAzNi4zNDI4NTctMTYuMzQyODU3IDM2LjM0Mjg1Ny0zNi41NzE0MjhWNjYwLjU3MTQyOUgzMjUuNzE0Mjg2djIyNHogbTYwNi45NzE0MjgtNzgxLjcxNDI4Nkg5MS4zMTQyODZjLTI4IDAtNDUuNDg1NzE0IDMwLjUxNDI4Ni0zMS40Mjg1NzIgNTQuODU3MTQzbDI1Mi45MTQyODYgNDI5LjcxNDI4NWgzOTguNjI4NTcxbDI1Mi45MTQyODYtNDI5LjcxNDI4NWMxMy44Mjg1NzEtMjQuMzQyODU3LTMuNjU3MTQzLTU0Ljg1NzE0My0zMS42NTcxNDMtNTQuODU3MTQzeiIgcC1pZD0iMjQyOSIgZmlsbD0iIzhhOGE4YSI+PC9wYXRoPjwvc3ZnPg==) !important;
13
-
14
- color: #8a8a8a;
1
+ .grid-spin {
2
+ height: 100%;
3
+
4
+ .ant-spin-container {
5
+ height: 100%;
6
+ }
7
+ }
8
+
9
+ .ag-icon-filter:before {
10
+ -webkit-mask-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzIzNjg0NDAwMDY0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI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9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTMyNS43MTQyODYgODg0LjU3MTQyOWMwIDIwLjIyODU3MSAxNi4yMjg1NzEgMzYuNTcxNDI5IDM2LjM0Mjg1NyAzNi41NzE0MjhoMjk5Ljg4NTcxNGMyMC4xMTQyODYgMCAzNi4zNDI4NTctMTYuMzQyODU3IDM2LjM0Mjg1Ny0zNi41NzE0MjhWNjYwLjU3MTQyOUgzMjUuNzE0Mjg2djIyNHogbTYwNi45NzE0MjgtNzgxLjcxNDI4Nkg5MS4zMTQyODZjLTI4IDAtNDUuNDg1NzE0IDMwLjUxNDI4Ni0zMS40Mjg1NzIgNTQuODU3MTQzbDI1Mi45MTQyODYgNDI5LjcxNDI4NWgzOTguNjI4NTcxbDI1Mi45MTQyODYtNDI5LjcxNDI4NWMxMy44Mjg1NzEtMjQuMzQyODU3LTMuNjU3MTQzLTU0Ljg1NzE0My0zMS42NTcxNDMtNTQuODU3MTQzeiIgcC1pZD0iMjQyOSIgZmlsbD0iIzhhOGE4YSI+PC9wYXRoPjwvc3ZnPg==) !important;
13
+
14
+ color: #8a8a8a;
15
15
  }
@@ -16,6 +16,7 @@ interface GridProps extends AgGridReactProps {
16
16
  treeParentName?: string;
17
17
  search?: boolean;
18
18
  headerTitle?: React.ReactNode;
19
+ columnDefs?: (AgGridColumnPropsClone | ColGroupDef<any>)[] | null;
19
20
  toolBarRender?: (gridApi?: GridApi, filter?: string, queryFilter?: any) => React.ReactNode[];
20
21
  /**
21
22
  * 用于标识grid唯一标识,用于保存列方案
@@ -34,6 +35,10 @@ interface AgGridColumnPropsClone extends ColDef {
34
35
  searchComponent?: ReactNode | JSX.Element | ((props: any) => JSX.Element);
35
36
  searchComponentProps?: any;
36
37
  searchSort?: number;
38
+ enum?: {
39
+ value: any;
40
+ label: any;
41
+ }[];
37
42
  }
38
43
  declare function AgGridColumn(props: AgGridColumnPropsClone | ColGroupDef): React.JSX.Element;
39
44
  export { GridProps, AgGridColumn, GridRef };
@@ -91,6 +91,9 @@ var FormRender = function FormRender(props) {
91
91
  component = "BoolSelect";
92
92
  break;
93
93
  }
94
+ if (colDef.enum) {
95
+ component = "Select";
96
+ }
94
97
  return component ? component : "Input";
95
98
  }
96
99
  };
@@ -133,6 +136,7 @@ var FormRender = function FormRender(props) {
133
136
  title: headerName,
134
137
  required: (colDef === null || colDef === void 0 || (_colDef$searchCompone = colDef.searchComponentProps) === null || _colDef$searchCompone === void 0 ? void 0 : _colDef$searchCompone.required) || false,
135
138
  default: colDef === null || colDef === void 0 || (_colDef$searchCompone2 = colDef.searchComponentProps) === null || _colDef$searchCompone2 === void 0 ? void 0 : _colDef$searchCompone2.default,
139
+ enum: colDef === null || colDef === void 0 ? void 0 : colDef.enum,
136
140
  "x-component": component,
137
141
  "x-component-props": _objectSpread({
138
142
  placeholder: "\u8BF7\u8F93\u5165".concat(headerName),
@@ -1,48 +1,48 @@
1
-
2
- @pro-table-search-prefix-cls: ~'ag-grid-table-search';
3
-
4
- @pro-table-form-prefix-cls: ~'ag-grid-table-form';
5
-
6
- .@{pro-table-search-prefix-cls} {
7
- margin-bottom: 8px;
8
- padding: 8px;
9
- // padding-bottom: 0;
10
- background-color: #fff;
11
-
12
- &.@{pro-table-form-prefix-cls} {
13
- margin: 0;
14
- padding: 0 16px;
15
- overflow: unset;
16
- }
17
-
18
- &-light {
19
- margin-bottom: 0;
20
- padding: 16px 0;
21
- }
22
-
23
- &-form-option {
24
- .ant-form-item {
25
- margin: 0;
26
- }
27
-
28
- .ant-form-item-label {
29
- opacity: 0;
30
- }
31
-
32
- .ant-form-item-control-input {
33
- justify-content: flex-start;
34
- }
35
- }
36
- }
37
-
38
- @media (max-width: 575px) {
39
- .@{pro-table-search-prefix-cls} {
40
- height: auto !important;
41
- padding-bottom: 24px;
42
-
43
- .ant-form-item-label {
44
- min-width: 80px;
45
- text-align: left;
46
- }
47
- }
48
- }
1
+
2
+ @pro-table-search-prefix-cls: ~'ag-grid-table-search';
3
+
4
+ @pro-table-form-prefix-cls: ~'ag-grid-table-form';
5
+
6
+ .@{pro-table-search-prefix-cls} {
7
+ margin-bottom: 8px;
8
+ padding: 8px;
9
+ // padding-bottom: 0;
10
+ background-color: #fff;
11
+
12
+ &.@{pro-table-form-prefix-cls} {
13
+ margin: 0;
14
+ padding: 0 16px;
15
+ overflow: unset;
16
+ }
17
+
18
+ &-light {
19
+ margin-bottom: 0;
20
+ padding: 16px 0;
21
+ }
22
+
23
+ &-form-option {
24
+ .ant-form-item {
25
+ margin: 0;
26
+ }
27
+
28
+ .ant-form-item-label {
29
+ opacity: 0;
30
+ }
31
+
32
+ .ant-form-item-control-input {
33
+ justify-content: flex-start;
34
+ }
35
+ }
36
+ }
37
+
38
+ @media (max-width: 575px) {
39
+ .@{pro-table-search-prefix-cls} {
40
+ height: auto !important;
41
+ padding-bottom: 24px;
42
+
43
+ .ant-form-item-label {
44
+ min-width: 80px;
45
+ text-align: left;
46
+ }
47
+ }
48
+ }
@@ -10,10 +10,10 @@ import { ConfigProvider, Tooltip } from 'antd';
10
10
  import classNames from 'classnames';
11
11
  import React, { useContext, useMemo } from 'react';
12
12
  import { useStyle } from "./style";
13
- /**
14
- * 获取配置区域 DOM Item
15
- *
16
- * @param setting 配置项
13
+ /**
14
+ * 获取配置区域 DOM Item
15
+ *
16
+ * @param setting 配置项
17
17
  */
18
18
  function getSettingItem(setting) {
19
19
  if ( /*#__PURE__*/React.isValidElement(setting)) {
@@ -30,7 +30,9 @@ var getFilter = function getFilter(objectKey, value) {
30
30
  }
31
31
  var items = [];
32
32
  getObjectFilter(value, objectKey, items);
33
- return items.join(",");
33
+ return items.filter(function (x) {
34
+ return !!x;
35
+ }).join(",");
34
36
  };
35
37
  var getObjectFilter = function getObjectFilter(obj, objKey, items) {
36
38
  Object.keys(obj).map(function (key) {
@@ -40,7 +42,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
40
42
  items.push("".concat(objectKey, " = ").concat(value));
41
43
  }
42
44
  if (typeof value === 'string') {
43
- value && value != "" && items.push("".concat(objectKey, " ^ ").concat(esc(value)));
45
+ value && value != "" && items.push("".concat(objectKey, " =* ").concat(esc(value)));
44
46
  }
45
47
  if (typeof value === 'boolean') {
46
48
  items.push("".concat(objectKey, " = ").concat(value));
@@ -1,49 +1,49 @@
1
- .react-dashboard-toolbar {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- // width: 100%;
6
- padding: 0 10px;
7
- padding-bottom: 10px;
8
- // background: var(--component-background);
9
-
10
- &:after {
11
- display: block;
12
- clear: both;
13
- content: '';
14
- }
15
-
16
- &-left {
17
- float: left;
18
-
19
- button {
20
- margin-right: 10px;
21
- }
22
- }
23
-
24
- &-right {
25
- float: right;
26
-
27
- button {
28
- margin-left: 10px;
29
- }
30
- }
31
-
32
- &-space {
33
- flex: auto;
34
- height: 1px;
35
- margin: 0 !important;
36
- padding: 0 !important;
37
- border: 0 !important;
38
- -webkit-box-flex: 1;
39
- }
40
-
41
- &-fixed {
42
- position: fixed;
43
- right: 0;
44
- bottom: 0;
45
- z-index: 9;
46
- border-top: 1px solid rgba(128, 128, 128, 0.1);
47
- box-shadow: 0 -1px 2px rgba(128, 128, 128, 0.03);
48
- }
49
- }
1
+ .react-dashboard-toolbar {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ // width: 100%;
6
+ padding: 0 10px;
7
+ padding-bottom: 10px;
8
+ // background: var(--component-background);
9
+
10
+ &:after {
11
+ display: block;
12
+ clear: both;
13
+ content: '';
14
+ }
15
+
16
+ &-left {
17
+ float: left;
18
+
19
+ button {
20
+ margin-right: 10px;
21
+ }
22
+ }
23
+
24
+ &-right {
25
+ float: right;
26
+
27
+ button {
28
+ margin-left: 10px;
29
+ }
30
+ }
31
+
32
+ &-space {
33
+ flex: auto;
34
+ height: 1px;
35
+ margin: 0 !important;
36
+ padding: 0 !important;
37
+ border: 0 !important;
38
+ -webkit-box-flex: 1;
39
+ }
40
+
41
+ &-fixed {
42
+ position: fixed;
43
+ right: 0;
44
+ bottom: 0;
45
+ z-index: 9;
46
+ border-top: 1px solid rgba(128, 128, 128, 0.1);
47
+ box-shadow: 0 -1px 2px rgba(128, 128, 128, 0.03);
48
+ }
49
+ }
@@ -1,173 +1,173 @@
1
- @import '~react-grid-layout/css/styles.css';
2
-
3
- .react-resizable {
4
-
5
- position: relative;
6
- }
7
- .react-resizable-handle {
8
- position: absolute;
9
- width: 20px;
10
- height: 20px;
11
- background-repeat: no-repeat;
12
- background-origin: content-box;
13
- box-sizing: border-box;
14
- background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
15
- background-position: bottom right;
16
- padding: 0 3px 3px 0;
17
- display:none;
18
- }
19
- .react-resizable-handle-sw {
20
- bottom: 0;
21
- left: 0;
22
- cursor: sw-resize;
23
- transform: rotate(90deg);
24
- }
25
- .react-resizable-handle-se {
26
- bottom: 0;
27
- right: 0;
28
- cursor: se-resize;
29
- }
30
- .react-resizable-handle-nw {
31
- top: 0;
32
- left: 0;
33
- cursor: nw-resize;
34
- transform: rotate(180deg);
35
- }
36
- .react-resizable-handle-ne {
37
- top: 0;
38
- right: 0;
39
- cursor: ne-resize;
40
- transform: rotate(270deg);
41
- }
42
- .react-resizable-handle-w,
43
- .react-resizable-handle-e {
44
- top: 50%;
45
- margin-top: -10px;
46
- cursor: ew-resize;
47
- }
48
- .react-resizable-handle-w {
49
- left: 0;
50
- transform: rotate(135deg);
51
- }
52
- .react-resizable-handle-e {
53
- right: 0;
54
- transform: rotate(315deg);
55
- }
56
- .react-resizable-handle-n,
57
- .react-resizable-handle-s {
58
- left: 50%;
59
- margin-left: -10px;
60
- cursor: ns-resize;
61
- }
62
- .react-resizable-handle-n {
63
- top: 0;
64
- transform: rotate(225deg);
65
- }
66
- .react-resizable-handle-s {
67
- bottom: 0;
68
- transform: rotate(45deg);
69
- }
70
-
71
- :root{
72
- --primary-color:blue;
73
- --component-background:#fff;
74
- }
75
-
76
-
77
- .react-grid-item > .react-resizable-handle {
78
- z-index: 1;
79
- }
80
- .react-dashboard-item-edit{
81
- .react-resizable-handle {
82
- display:block;
83
- }
84
- }
85
-
86
- .react-dashboard-full {
87
- width: 100%;
88
- height: 100%;
89
- }
90
- .react-dashboard-aligncenter {
91
- display: flex;
92
- justify-content: center;
93
- align-items: center;
94
- }
95
- //空页面样式
96
- .react-dashboard-emptyContent {
97
- // min-height: calc(100vh - 50px - 41px - 50px - 10px - 22px);
98
- display: flex;
99
- justify-content: center;
100
- align-items: center;
101
- }
102
-
103
-
104
- .react-dashboard-item {
105
- position: relative;
106
- // overflow: hidden;
107
- // border:1px solid rgba(128,128,128,0.3);
108
- .react-dashboard-mask {
109
- position: absolute;
110
- top: 0;
111
- left: 0;
112
- z-index: 1;
113
- width: 100%;
114
- height: 100%;
115
- background: rgba(0, 0, 0, 0);
116
- cursor: move;
117
- transition: all 0.3s;
118
- }
119
-
120
- .react-dashboard-configicon {
121
- position: absolute;
122
- top: 0;
123
- right: 30px;
124
- z-index: 1;
125
- display: none;
126
- width: 30px;
127
- height: 30px;
128
- color: #fff;
129
- font-weight: bold;
130
- font-size: 16px;
131
- line-height: 30px;
132
- text-align: center;
133
- background: var(--primary-color);
134
- border-radius: var(--card-border-radius) 0 0 var(--card-border-radius);
135
- cursor: pointer;
136
- }
137
-
138
- .react-dashboard-deleteicon {
139
- position: absolute;
140
- top: 0;
141
- right: 0;
142
- z-index: 1;
143
- display: none;
144
- width: 30px;
145
- height: 30px;
146
- color: #fff;
147
- font-size: 16px;
148
- line-height: 30px;
149
- text-align: center;
150
- background: #f5222d;
151
- border-radius: var(--card-border-radius);
152
- cursor: pointer;
153
- }
154
-
155
- .react-dashboard-configicon + .react-dashboard-deleteicon {
156
- border-radius: 0 var(--card-border-radius) var(--card-border-radius) 0;
157
- }
158
-
159
- &:hover {
160
- .react-dashboard-mask {
161
- background: rgba(0, 0, 0, 0.05);
162
- transition: all 0.3s;
163
- }
164
-
165
- .react-dashboard-configicon {
166
- display: block;
167
- }
168
-
169
- .react-dashboard-deleteicon {
170
- display: block;
171
- }
172
- }
173
- }
1
+ @import '~react-grid-layout/css/styles.css';
2
+
3
+ .react-resizable {
4
+
5
+ position: relative;
6
+ }
7
+ .react-resizable-handle {
8
+ position: absolute;
9
+ width: 20px;
10
+ height: 20px;
11
+ background-repeat: no-repeat;
12
+ background-origin: content-box;
13
+ box-sizing: border-box;
14
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
15
+ background-position: bottom right;
16
+ padding: 0 3px 3px 0;
17
+ display:none;
18
+ }
19
+ .react-resizable-handle-sw {
20
+ bottom: 0;
21
+ left: 0;
22
+ cursor: sw-resize;
23
+ transform: rotate(90deg);
24
+ }
25
+ .react-resizable-handle-se {
26
+ bottom: 0;
27
+ right: 0;
28
+ cursor: se-resize;
29
+ }
30
+ .react-resizable-handle-nw {
31
+ top: 0;
32
+ left: 0;
33
+ cursor: nw-resize;
34
+ transform: rotate(180deg);
35
+ }
36
+ .react-resizable-handle-ne {
37
+ top: 0;
38
+ right: 0;
39
+ cursor: ne-resize;
40
+ transform: rotate(270deg);
41
+ }
42
+ .react-resizable-handle-w,
43
+ .react-resizable-handle-e {
44
+ top: 50%;
45
+ margin-top: -10px;
46
+ cursor: ew-resize;
47
+ }
48
+ .react-resizable-handle-w {
49
+ left: 0;
50
+ transform: rotate(135deg);
51
+ }
52
+ .react-resizable-handle-e {
53
+ right: 0;
54
+ transform: rotate(315deg);
55
+ }
56
+ .react-resizable-handle-n,
57
+ .react-resizable-handle-s {
58
+ left: 50%;
59
+ margin-left: -10px;
60
+ cursor: ns-resize;
61
+ }
62
+ .react-resizable-handle-n {
63
+ top: 0;
64
+ transform: rotate(225deg);
65
+ }
66
+ .react-resizable-handle-s {
67
+ bottom: 0;
68
+ transform: rotate(45deg);
69
+ }
70
+
71
+ :root{
72
+ --primary-color:blue;
73
+ --component-background:#fff;
74
+ }
75
+
76
+
77
+ .react-grid-item > .react-resizable-handle {
78
+ z-index: 1;
79
+ }
80
+ .react-dashboard-item-edit{
81
+ .react-resizable-handle {
82
+ display:block;
83
+ }
84
+ }
85
+
86
+ .react-dashboard-full {
87
+ width: 100%;
88
+ height: 100%;
89
+ }
90
+ .react-dashboard-aligncenter {
91
+ display: flex;
92
+ justify-content: center;
93
+ align-items: center;
94
+ }
95
+ //空页面样式
96
+ .react-dashboard-emptyContent {
97
+ // min-height: calc(100vh - 50px - 41px - 50px - 10px - 22px);
98
+ display: flex;
99
+ justify-content: center;
100
+ align-items: center;
101
+ }
102
+
103
+
104
+ .react-dashboard-item {
105
+ position: relative;
106
+ // overflow: hidden;
107
+ // border:1px solid rgba(128,128,128,0.3);
108
+ .react-dashboard-mask {
109
+ position: absolute;
110
+ top: 0;
111
+ left: 0;
112
+ z-index: 1;
113
+ width: 100%;
114
+ height: 100%;
115
+ background: rgba(0, 0, 0, 0);
116
+ cursor: move;
117
+ transition: all 0.3s;
118
+ }
119
+
120
+ .react-dashboard-configicon {
121
+ position: absolute;
122
+ top: 0;
123
+ right: 30px;
124
+ z-index: 1;
125
+ display: none;
126
+ width: 30px;
127
+ height: 30px;
128
+ color: #fff;
129
+ font-weight: bold;
130
+ font-size: 16px;
131
+ line-height: 30px;
132
+ text-align: center;
133
+ background: var(--primary-color);
134
+ border-radius: var(--card-border-radius) 0 0 var(--card-border-radius);
135
+ cursor: pointer;
136
+ }
137
+
138
+ .react-dashboard-deleteicon {
139
+ position: absolute;
140
+ top: 0;
141
+ right: 0;
142
+ z-index: 1;
143
+ display: none;
144
+ width: 30px;
145
+ height: 30px;
146
+ color: #fff;
147
+ font-size: 16px;
148
+ line-height: 30px;
149
+ text-align: center;
150
+ background: #f5222d;
151
+ border-radius: var(--card-border-radius);
152
+ cursor: pointer;
153
+ }
154
+
155
+ .react-dashboard-configicon + .react-dashboard-deleteicon {
156
+ border-radius: 0 var(--card-border-radius) var(--card-border-radius) 0;
157
+ }
158
+
159
+ &:hover {
160
+ .react-dashboard-mask {
161
+ background: rgba(0, 0, 0, 0.05);
162
+ transition: all 0.3s;
163
+ }
164
+
165
+ .react-dashboard-configicon {
166
+ display: block;
167
+ }
168
+
169
+ .react-dashboard-deleteicon {
170
+ display: block;
171
+ }
172
+ }
173
+ }
@@ -35,10 +35,10 @@ export var request = /*#__PURE__*/function () {
35
35
  };
36
36
  }();
37
37
 
38
- /**
39
- *复制字符串到系统剪切板
40
- *
41
- * @param {*} str
38
+ /**
39
+ *复制字符串到系统剪切板
40
+ *
41
+ * @param {*} str
42
42
  */
43
43
  export var copy = function copy(str) {
44
44
  var save = function save(e) {