easy3wmui 0.0.43-beta4 → 0.0.43-beta5
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/index.css
CHANGED
|
@@ -449,6 +449,13 @@
|
|
|
449
449
|
#Easy3wMTable .singleItem .itemAttr.clickable .attrKey {
|
|
450
450
|
color: var(--adm-color-primary);
|
|
451
451
|
}
|
|
452
|
+
#Easy3wMTable .singleItem .itemAttr.itemAttrLong {
|
|
453
|
+
-ms-flex-direction: column;
|
|
454
|
+
flex-direction: column;
|
|
455
|
+
}
|
|
456
|
+
#Easy3wMTable .singleItem .itemAttr.itemAttrLong .attrKey {
|
|
457
|
+
text-align: left;
|
|
458
|
+
}
|
|
452
459
|
#Easy3wMTable .easy3wMGridPageStepper {
|
|
453
460
|
display: -ms-flexbox;
|
|
454
461
|
display: flex;
|
package/assets/mTable.css
CHANGED
|
@@ -54,6 +54,13 @@
|
|
|
54
54
|
#Easy3wMTable .singleItem .itemAttr.clickable .attrKey {
|
|
55
55
|
color: var(--adm-color-primary);
|
|
56
56
|
}
|
|
57
|
+
#Easy3wMTable .singleItem .itemAttr.itemAttrLong {
|
|
58
|
+
-ms-flex-direction: column;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
}
|
|
61
|
+
#Easy3wMTable .singleItem .itemAttr.itemAttrLong .attrKey {
|
|
62
|
+
text-align: left;
|
|
63
|
+
}
|
|
57
64
|
#Easy3wMTable .easy3wMGridPageStepper {
|
|
58
65
|
display: -ms-flexbox;
|
|
59
66
|
display: flex;
|
|
@@ -514,7 +514,15 @@ var Easy3wMFormPage = function (_Component) {
|
|
|
514
514
|
if (readFlag || allReadFlag) {
|
|
515
515
|
return _react2['default'].createElement(
|
|
516
516
|
Item,
|
|
517
|
-
(0, _extends3['default'])({
|
|
517
|
+
(0, _extends3['default'])({
|
|
518
|
+
label: label,
|
|
519
|
+
name: fieldId + 'Easy3wView',
|
|
520
|
+
required: required,
|
|
521
|
+
initialValue: 'easy3wView',
|
|
522
|
+
preserve: false
|
|
523
|
+
}, itemProps, cmptPros, {
|
|
524
|
+
rules: addrules
|
|
525
|
+
}),
|
|
518
526
|
value
|
|
519
527
|
);
|
|
520
528
|
} else {
|
|
@@ -482,9 +482,10 @@ var Easy3wMTable = function (_PureComponent) {
|
|
|
482
482
|
columns.map(function (obj) {
|
|
483
483
|
var title = obj.title,
|
|
484
484
|
dataIndex = obj.dataIndex,
|
|
485
|
+
type = obj.type,
|
|
485
486
|
render = obj.render,
|
|
486
487
|
onRow = obj.onRow,
|
|
487
|
-
|
|
488
|
+
onClick = obj.onClick;
|
|
488
489
|
|
|
489
490
|
var value = item[dataIndex];
|
|
490
491
|
if (render) {
|
|
@@ -492,9 +493,9 @@ var Easy3wMTable = function (_PureComponent) {
|
|
|
492
493
|
}
|
|
493
494
|
return _react2['default'].createElement(
|
|
494
495
|
'div',
|
|
495
|
-
{ className: 'itemAttr ' + (onRow ? 'clickable' : ''), onClick: function
|
|
496
|
+
{ className: 'itemAttr ' + (type === 'longText' ? 'itemAttrLong' : '') + ' ' + (onRow ? 'clickable' : ''), onClick: onRow ? function () {
|
|
496
497
|
return onRow(item[dataIndex], item, index);
|
|
497
|
-
} },
|
|
498
|
+
} : function () {} },
|
|
498
499
|
_react2['default'].createElement(
|
|
499
500
|
'span',
|
|
500
501
|
{ className: 'attrLabel' },
|
|
@@ -502,9 +503,9 @@ var Easy3wMTable = function (_PureComponent) {
|
|
|
502
503
|
),
|
|
503
504
|
_react2['default'].createElement(
|
|
504
505
|
'span',
|
|
505
|
-
{ className: 'attrKey ' + (
|
|
506
|
-
return
|
|
507
|
-
} },
|
|
506
|
+
{ className: 'attrKey ' + (onClick ? 'clickable' : ''), onClick: onClick ? function () {
|
|
507
|
+
return onClick(item[dataIndex], item, index);
|
|
508
|
+
} : function () {} },
|
|
508
509
|
value
|
|
509
510
|
)
|
|
510
511
|
);
|