easy3wui 1.5.70-beta7 → 1.5.70-beta8
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/lib/Easy3wGridPage/index.js +14 -0
- package/package.json +1 -1
|
@@ -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',
|