easy3wui 1.5.70-beta6 → 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/lib/index.js +27 -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',
|
package/lib/index.js
CHANGED
|
@@ -290,6 +290,33 @@ Object.defineProperty(exports, 'Easy3wGridCheckBox', {
|
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
+
var _Easy3wGridInputAmount = require('./Easy3wGridInputAmount');
|
|
294
|
+
|
|
295
|
+
Object.defineProperty(exports, 'Easy3wGridInputAmount', {
|
|
296
|
+
enumerable: true,
|
|
297
|
+
get: function get() {
|
|
298
|
+
return _interopRequireDefault(_Easy3wGridInputAmount)['default'];
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
var _Easy3wGridInputDigit = require('./Easy3wGridInputDigit');
|
|
303
|
+
|
|
304
|
+
Object.defineProperty(exports, 'Easy3wGridInputDigit', {
|
|
305
|
+
enumerable: true,
|
|
306
|
+
get: function get() {
|
|
307
|
+
return _interopRequireDefault(_Easy3wGridInputDigit)['default'];
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
var _Easy3wGridInputEmail = require('./Easy3wGridInputEmail');
|
|
312
|
+
|
|
313
|
+
Object.defineProperty(exports, 'Easy3wGridInputEmail', {
|
|
314
|
+
enumerable: true,
|
|
315
|
+
get: function get() {
|
|
316
|
+
return _interopRequireDefault(_Easy3wGridInputEmail)['default'];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
|
|
293
320
|
var _Easy3wDownLoad = require('./Easy3wDownLoad');
|
|
294
321
|
|
|
295
322
|
Object.defineProperty(exports, 'Easy3wDownLoad', {
|