UNPKG

dareway-rui

Version:

60 lines (52 loc) 2.31 kB
'use strict'; var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault'); Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; var _regenerator = _interopRequireDefault(require('@babel/runtime/regenerator')); var _default = { effects: { showWidthConfig: /*#__PURE__*/ _regenerator.default.mark(function showWidthConfig(_ref, RUI) { var payload, _ref2, cols, widthConfig; return _regenerator.default.wrap(function showWidthConfig$(_context) { while (1) { switch ((_context.prev = _context.next)) { case 0: payload = _ref.payload; _context.next = 3; return RUI.getState(); case 3: _ref2 = _context.sent; cols = _ref2.cols; widthConfig = cols .map(function(col) { return '' .concat(col.name, ':') .concat(col.resizeWidth ? col.resizeWidth - 25 : col.width); }) .join(','); _context.next = 8; return RUI.openRES( 'Grid宽度配置信息', null, '_lib/taglib/grid/widthConfig/GridWidthConfig.js', 800, 170, { widthConfig: widthConfig } ); case 8: case 'end': return _context.stop(); } } }, showWidthConfig); }) } }; exports.default = _default; //@ sourceMappingURL=WidthConfigAPIFactory.js.map