easy3wui 1.5.46-beta2 → 1.5.46-beta3

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.
@@ -0,0 +1,92 @@
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
+ .scrollY .ant-table-tbody > .ant-table-row .e3wGridShortText {
6
+ text-align: center;
7
+ }
8
+ .scrollY .ant-table-tbody > .ant-table-row .e3wGridLongText {
9
+ text-align: left;
10
+ }
11
+ .scrollY .ant-table-tbody > .ant-table-row .e3wGridNumber {
12
+ text-align: right;
13
+ }
14
+ .scrollY .ant-table-tbody > .ant-table-row .e3wMaxText {
15
+ text-align: left;
16
+ max-width: 240px;
17
+ text-overflow: ellipsis;
18
+ white-space: nowrap;
19
+ overflow: hidden;
20
+ }
21
+ .scrollY .ant-table-thead > tr > th {
22
+ text-align: center;
23
+ }
24
+ .scrollX .ant-table-thead > tr > th {
25
+ word-break: keep-all;
26
+ white-space: nowrap;
27
+ text-align: center;
28
+ }
29
+ .scrollX .ant-table-tbody > .ant-table-row td {
30
+ max-width: 240px;
31
+ word-break: keep-all;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ overflow: hidden;
35
+ }
36
+ .scrollX .ant-table-tbody > .ant-table-row .e3wText {
37
+ white-space: normal;
38
+ text-align: left;
39
+ }
40
+ .scrollX .ant-table-tbody > .ant-table-row .e3wGridShortText {
41
+ text-align: center;
42
+ }
43
+ .scrollX .ant-table-tbody > .ant-table-row .e3wGridLongText {
44
+ text-align: left;
45
+ }
46
+ .scrollX .ant-table-tbody > .ant-table-row .e3wGridNumber {
47
+ text-align: right;
48
+ }
49
+ .scrollX .ant-table-tbody > .ant-table-row .e3wMaxText {
50
+ text-align: left;
51
+ max-width: 240px;
52
+ text-overflow: ellipsis;
53
+ white-space: nowrap;
54
+ overflow: hidden;
55
+ }
56
+ .scrollPrint .ant-table-thead > tr > th {
57
+ text-align: center;
58
+ }
59
+ .scrollPrint .ant-table-tbody > .ant-table-row td {
60
+ max-width: 240px;
61
+ }
62
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wText {
63
+ text-align: left;
64
+ }
65
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wGridShortText {
66
+ text-align: center;
67
+ }
68
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wGridLongText {
69
+ text-align: justify;
70
+ }
71
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wGridNumber {
72
+ text-align: right;
73
+ }
74
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wMaxText {
75
+ max-width: 240px;
76
+ text-align: left;
77
+ }
78
+ .butt {
79
+ background-color: #1890ff;
80
+ color: #fff;
81
+ font-size: 14px;
82
+ }
83
+ .butt:visited,
84
+ .butt:focus,
85
+ .butt:hover,
86
+ .butt:active {
87
+ background-color: #1890ff;
88
+ color: #fff;
89
+ }
90
+ .onRow tr:hover {
91
+ cursor: pointer;
92
+ }
package/assets/index.css CHANGED
@@ -1290,6 +1290,94 @@ s {
1290
1290
  margin-left: -75px;
1291
1291
  }
1292
1292
  /*一个节点*/
1293
+ .scrollY .ant-table-tbody > .ant-table-row .e3wGridShortText {
1294
+ text-align: center;
1295
+ }
1296
+ .scrollY .ant-table-tbody > .ant-table-row .e3wGridLongText {
1297
+ text-align: left;
1298
+ }
1299
+ .scrollY .ant-table-tbody > .ant-table-row .e3wGridNumber {
1300
+ text-align: right;
1301
+ }
1302
+ .scrollY .ant-table-tbody > .ant-table-row .e3wMaxText {
1303
+ text-align: left;
1304
+ max-width: 240px;
1305
+ text-overflow: ellipsis;
1306
+ white-space: nowrap;
1307
+ overflow: hidden;
1308
+ }
1309
+ .scrollY .ant-table-thead > tr > th {
1310
+ text-align: center;
1311
+ }
1312
+ .scrollX .ant-table-thead > tr > th {
1313
+ word-break: keep-all;
1314
+ white-space: nowrap;
1315
+ text-align: center;
1316
+ }
1317
+ .scrollX .ant-table-tbody > .ant-table-row td {
1318
+ max-width: 240px;
1319
+ word-break: keep-all;
1320
+ text-overflow: ellipsis;
1321
+ white-space: nowrap;
1322
+ overflow: hidden;
1323
+ }
1324
+ .scrollX .ant-table-tbody > .ant-table-row .e3wText {
1325
+ white-space: normal;
1326
+ text-align: left;
1327
+ }
1328
+ .scrollX .ant-table-tbody > .ant-table-row .e3wGridShortText {
1329
+ text-align: center;
1330
+ }
1331
+ .scrollX .ant-table-tbody > .ant-table-row .e3wGridLongText {
1332
+ text-align: left;
1333
+ }
1334
+ .scrollX .ant-table-tbody > .ant-table-row .e3wGridNumber {
1335
+ text-align: right;
1336
+ }
1337
+ .scrollX .ant-table-tbody > .ant-table-row .e3wMaxText {
1338
+ text-align: left;
1339
+ max-width: 240px;
1340
+ text-overflow: ellipsis;
1341
+ white-space: nowrap;
1342
+ overflow: hidden;
1343
+ }
1344
+ .scrollPrint .ant-table-thead > tr > th {
1345
+ text-align: center;
1346
+ }
1347
+ .scrollPrint .ant-table-tbody > .ant-table-row td {
1348
+ max-width: 240px;
1349
+ }
1350
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wText {
1351
+ text-align: left;
1352
+ }
1353
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wGridShortText {
1354
+ text-align: center;
1355
+ }
1356
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wGridLongText {
1357
+ text-align: justify;
1358
+ }
1359
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wGridNumber {
1360
+ text-align: right;
1361
+ }
1362
+ .scrollPrint .ant-table-tbody > .ant-table-row .e3wMaxText {
1363
+ max-width: 240px;
1364
+ text-align: left;
1365
+ }
1366
+ .butt {
1367
+ background-color: #1890ff;
1368
+ color: #fff;
1369
+ font-size: 14px;
1370
+ }
1371
+ .butt:visited,
1372
+ .butt:focus,
1373
+ .butt:hover,
1374
+ .butt:active {
1375
+ background-color: #1890ff;
1376
+ color: #fff;
1377
+ }
1378
+ .onRow tr:hover {
1379
+ cursor: pointer;
1380
+ }
1293
1381
  .ant-upload-list-item {
1294
1382
  width: auto;
1295
1383
  }
@@ -50,7 +50,21 @@ var Easy3wGridTextArea = function (_Component) {
50
50
  args[_key] = arguments[_key];
51
51
  }
52
52
 
53
- return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.touchTransform = function (value) {
53
+ return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.touchSetHeight = function () {
54
+ // 获取textarea元素
55
+ var textarea = document.getElementById('myTextarea');
56
+ console.log('kkkkkkkkkkkkkkkkkkkkkk', textarea);
57
+ if (textarea) {
58
+ // 监听输入事件
59
+ textarea.addEventListener('input', function () {
60
+ // 移除滚动条,以便正确计算内容高度
61
+ this.style.height = 'auto';
62
+ this.style.height = this.scrollHeight + 'px';
63
+ });
64
+ // 初始时设置一次高度,确保页面加载时textarea高度正确
65
+ textarea.style.height = textarea.scrollHeight + 'px';
66
+ }
67
+ }, _this.touchTransform = function (value) {
54
68
  var strValue = value;
55
69
  if (typeof value === 'number') {
56
70
  strValue = String(value);
@@ -58,6 +72,10 @@ var Easy3wGridTextArea = function (_Component) {
58
72
  return strValue;
59
73
  }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
60
74
  }
75
+
76
+ Easy3wGridTextArea.prototype.componentDidMount = function componentDidMount() {
77
+ this.touchSetHeight();
78
+ };
61
79
  // 检验长度前转换字段值为字符串
62
80
 
63
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.46-beta2",
3
+ "version": "1.5.46-beta3",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",