easy3wui 1.5.70-beta7 → 1.5.70-beta9
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/assets/gridPage.css +14 -7
- package/assets/index.css +14 -7
- package/lib/Easy3wGridPage/index.js +14 -0
- package/package.json +1 -1
package/assets/gridPage.css
CHANGED
|
@@ -53,25 +53,32 @@
|
|
|
53
53
|
white-space: nowrap;
|
|
54
54
|
overflow: hidden;
|
|
55
55
|
}
|
|
56
|
-
.scrollPrint .ant-table-thead > tr > th
|
|
56
|
+
.scrollPrint .ant-table-thead > tr > th,
|
|
57
|
+
.e3wFormPageWrap .ant-table-thead > tr > th {
|
|
57
58
|
text-align: center;
|
|
58
59
|
}
|
|
59
|
-
.scrollPrint .ant-table-tbody > .ant-table-row td
|
|
60
|
+
.scrollPrint .ant-table-tbody > .ant-table-row td,
|
|
61
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row td {
|
|
60
62
|
max-width: 240px;
|
|
61
63
|
}
|
|
62
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wText
|
|
64
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wText,
|
|
65
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wText {
|
|
63
66
|
text-align: left;
|
|
64
67
|
}
|
|
65
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridShortText
|
|
68
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridShortText,
|
|
69
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wGridShortText {
|
|
66
70
|
text-align: center;
|
|
67
71
|
}
|
|
68
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridLongText
|
|
72
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridLongText,
|
|
73
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wGridLongText {
|
|
69
74
|
text-align: justify;
|
|
70
75
|
}
|
|
71
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridNumber
|
|
76
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridNumber,
|
|
77
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wGridNumber {
|
|
72
78
|
text-align: right;
|
|
73
79
|
}
|
|
74
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wMaxText
|
|
80
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wMaxText,
|
|
81
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wMaxText {
|
|
75
82
|
max-width: 240px;
|
|
76
83
|
text-align: left;
|
|
77
84
|
}
|
package/assets/index.css
CHANGED
|
@@ -2352,25 +2352,32 @@ s {
|
|
|
2352
2352
|
white-space: nowrap;
|
|
2353
2353
|
overflow: hidden;
|
|
2354
2354
|
}
|
|
2355
|
-
.scrollPrint .ant-table-thead > tr > th
|
|
2355
|
+
.scrollPrint .ant-table-thead > tr > th,
|
|
2356
|
+
.e3wFormPageWrap .ant-table-thead > tr > th {
|
|
2356
2357
|
text-align: center;
|
|
2357
2358
|
}
|
|
2358
|
-
.scrollPrint .ant-table-tbody > .ant-table-row td
|
|
2359
|
+
.scrollPrint .ant-table-tbody > .ant-table-row td,
|
|
2360
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row td {
|
|
2359
2361
|
max-width: 240px;
|
|
2360
2362
|
}
|
|
2361
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wText
|
|
2363
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wText,
|
|
2364
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wText {
|
|
2362
2365
|
text-align: left;
|
|
2363
2366
|
}
|
|
2364
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridShortText
|
|
2367
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridShortText,
|
|
2368
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wGridShortText {
|
|
2365
2369
|
text-align: center;
|
|
2366
2370
|
}
|
|
2367
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridLongText
|
|
2371
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridLongText,
|
|
2372
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wGridLongText {
|
|
2368
2373
|
text-align: justify;
|
|
2369
2374
|
}
|
|
2370
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridNumber
|
|
2375
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wGridNumber,
|
|
2376
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wGridNumber {
|
|
2371
2377
|
text-align: right;
|
|
2372
2378
|
}
|
|
2373
|
-
.scrollPrint .ant-table-tbody > .ant-table-row .e3wMaxText
|
|
2379
|
+
.scrollPrint .ant-table-tbody > .ant-table-row .e3wMaxText,
|
|
2380
|
+
.e3wFormPageWrap .ant-table-tbody > .ant-table-row .e3wMaxText {
|
|
2374
2381
|
max-width: 240px;
|
|
2375
2382
|
text-align: left;
|
|
2376
2383
|
}
|
|
@@ -140,6 +140,16 @@ var Easy3wGridPage = function (_Component) {
|
|
|
140
140
|
var recursion = function recursion(arr) {
|
|
141
141
|
arr.forEach(function (item) {
|
|
142
142
|
var columnsType = item.type;
|
|
143
|
+
var title = item.title;
|
|
144
|
+
|
|
145
|
+
if (title && typeof title === 'string' && title.length > 6) {
|
|
146
|
+
item.title = _react2['default'].createElement(
|
|
147
|
+
_tooltip2['default'],
|
|
148
|
+
{ placement: 'topLeft', title: title },
|
|
149
|
+
title.substring(0, 6),
|
|
150
|
+
'...'
|
|
151
|
+
);
|
|
152
|
+
}
|
|
143
153
|
switch (columnsType) {
|
|
144
154
|
case 'shortText':
|
|
145
155
|
item.className = 'e3wGridShortText';break;
|
|
@@ -251,10 +261,14 @@ var Easy3wGridPage = function (_Component) {
|
|
|
251
261
|
};
|
|
252
262
|
if (autoAddNumber) {
|
|
253
263
|
if (columns.length > 0) {
|
|
264
|
+
var fixed = columns[0].fixed;
|
|
265
|
+
|
|
254
266
|
myColumns = [{
|
|
255
267
|
title: '序号',
|
|
256
268
|
dataIndex: 'number',
|
|
257
269
|
className: 'e3wGridShortText',
|
|
270
|
+
width: 50,
|
|
271
|
+
fixed: fixed,
|
|
258
272
|
render: function render(text, record, index) {
|
|
259
273
|
return _react2['default'].createElement(
|
|
260
274
|
'div',
|