easy3wui 1.5.70-beta10 → 1.5.70-beta12

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.
@@ -102,6 +102,7 @@ var Easy3wGridPage = function (_Component) {
102
102
  selRowKeysTags: selRowKeysTags,
103
103
  pagination: { offset: 1, limit: 10 }
104
104
  };
105
+ _this.myRef = (0, _react.createRef)(); // 创建 ref
105
106
  return _this;
106
107
  }
107
108
 
@@ -305,11 +306,14 @@ var Easy3wGridPage = function (_Component) {
305
306
  '\u6E05\u7A7A'
306
307
  )
307
308
  ), type: 'info' });
309
+ var hasFormParentClass = this.myRef.current && this.myRef.current.closest('.e3wFormPageWrap');
310
+
311
+ // console.log('父级是否有 .e3wFormPageWrap:', hasParentClass);
308
312
  return _react2['default'].createElement(
309
313
  'div',
310
- { className: gridProps || this.props.rowType ? gridProps.onRow || this.props.rowType ? 'onRow' : null : null },
314
+ { ref: this.myRef, className: gridProps || this.props.rowType ? gridProps.onRow || this.props.rowType ? 'onRow' : null : null },
311
315
  _react2['default'].createElement(_table2['default'], (0, _extends3['default'])({
312
- className: printFlag ? 'scrollPrint' : className || 'scrollX',
316
+ className: printFlag || hasFormParentClass ? 'scrollPrint' : className || 'scrollX',
313
317
  columns: myColumns,
314
318
  dataSource: dataList,
315
319
  pagination: paginationProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.70-beta10",
3
+ "version": "1.5.70-beta12",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",
package/assets/btn.css DELETED
@@ -1,20 +0,0 @@
1
- .e3wFootBtn {
2
- margin: 0px 8px;
3
- }
4
- .e3wFormBtn {
5
- margin-right: 8px;
6
- }
7
- .positionDiv {
8
- position: absolute;
9
- right: 32px;
10
- top: 16px;
11
- }
12
- .e3wPositionA {
13
- font-size: 15px;
14
- color: #5468b2;
15
- font-weight: 900;
16
- margin-left: 15px;
17
- }
18
- .e3wFootCard {
19
- padding-top: 8px;
20
- }
@@ -1,5 +0,0 @@
1
- .e3wCaptchaBtn {
2
- display: block;
3
- width: 100%;
4
- font-size: 18px !important;
5
- }
package/assets/card.css DELETED
@@ -1,34 +0,0 @@
1
- .e3wCardSpanCardTitle {
2
- font-weight: 600;
3
- }
4
- :global .ant-table-thead > tr > th,
5
- :global .ant-table table {
6
- text-align: center;
7
- }
8
- :global .ant-table-small > .ant-table-content > .ant-table-header > table > .ant-table-thead > tr > th,
9
- :global .ant-table-small > .ant-table-content > .ant-table-body > table > .ant-table-thead > tr > th,
10
- :global .ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-header > table > .ant-table-thead > tr > th,
11
- :global .ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-thead > tr > th,
12
- :global .ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-header > table > .ant-table-thead > tr > th,
13
- :global .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-header > table > .ant-table-thead > tr > th,
14
- :global .ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th,
15
- :global .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th {
16
- background: #fafafa;
17
- }
18
- .e3wCardForm .bidNeedForm {
19
- padding: 0 16px;
20
- }
21
- .e3wCardForm .ftbtn_Sel {
22
- text-align: center;
23
- margin-bottom: 16px;
24
- }
25
- .e3wCardForm .formes {
26
- float: left;
27
- }
28
- s {
29
- display: inline-block;
30
- width: 3px;
31
- height: 20px;
32
- margin: 0 8px -4px 0;
33
- background-color: #ad7c59;
34
- }
@@ -1,17 +0,0 @@
1
- .Easy3wEditBigTable {
2
- background-color: #fff;
3
- }
4
- .Easy3wEditBigTable .react-grid-Header .react-grid-HeaderRow > div > div.react-grid-HeaderCell > div {
5
- height: 100%;
6
- }
7
- .Easy3wEditBigTable .react-grid-Header .react-grid-HeaderRow > div > div.react-grid-HeaderCell > div > div.form-group {
8
- height: 100%;
9
- }
10
- .Easy3wEditBigTable .react-grid-Header .react-grid-HeaderRow > div > div.react-grid-HeaderCell > div > div.form-group > input[type="text"].form-control.input-sm {
11
- width: 100%;
12
- height: 100%;
13
- border-color: #ddd;
14
- outline: none;
15
- border-style: solid;
16
- border-radius: 3px;
17
- }
@@ -1,76 +0,0 @@
1
- /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
- /* stylelint-disable no-duplicate-selectors */
3
- /* stylelint-disable */
4
- /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
- .e3wException {
6
- display: -ms-flexbox;
7
- display: flex;
8
- -ms-flex-align: center;
9
- align-items: center;
10
- height: 100%;
11
- }
12
- .e3wException .e3wExceptionImgBlock {
13
- -ms-flex: 0 0 62.5%;
14
- flex: 0 0 62.5%;
15
- width: 62.5%;
16
- padding-right: 152px;
17
- zoom: 1;
18
- }
19
- .e3wException .e3wExceptionImgBlock::before,
20
- .e3wException .e3wExceptionImgBlock::after {
21
- display: table;
22
- content: '';
23
- }
24
- .e3wException .e3wExceptionImgBlock::after {
25
- clear: both;
26
- }
27
- .e3wException .e3wExceptionImgEle {
28
- height: 360px;
29
- width: 100%;
30
- max-width: 430px;
31
- float: right;
32
- background-repeat: no-repeat;
33
- background-position: 50% 50%;
34
- background-size: 100% 100%;
35
- }
36
- .e3wException .e3wExceptionContent {
37
- -ms-flex: auto;
38
- flex: auto;
39
- }
40
- .e3wException .e3wExceptionContent h1 {
41
- color: #434e59;
42
- font-size: 72px;
43
- font-weight: 600;
44
- line-height: 72px;
45
- margin-bottom: 24px;
46
- }
47
- .e3wException .e3wExceptionContent .e3wExceptionDesc {
48
- color: rgba(0, 0, 0, 0.45);
49
- font-size: 20px;
50
- line-height: 28px;
51
- margin-bottom: 16px;
52
- }
53
- .e3wException .e3wExceptionContent .e3wExceptionActions button:not(:last-child) {
54
- margin-right: 8px;
55
- }
56
- @media screen and (max-width: 1200px) {
57
- .exception .imgBlock {
58
- padding-right: 88px;
59
- }
60
- }
61
- @media screen and (max-width: 576px) {
62
- .exception {
63
- display: block;
64
- text-align: center;
65
- }
66
- .exception .imgBlock {
67
- padding-right: 0;
68
- margin: 0 auto 24px;
69
- }
70
- }
71
- @media screen and (max-width: 480px) {
72
- .exception .imgBlock {
73
- margin-bottom: -24px;
74
- overflow: hidden;
75
- }
76
- }