@sooloer/pages 0.1.9 → 0.1.11

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.
@@ -39,7 +39,6 @@ var EllipsisText = function EllipsisText(props) {
39
39
  clientWidth: 0
40
40
  },
41
41
  clientWidth = _ref.clientWidth;
42
- console.log('clientWidth', clientWidth, width, clientWidth - width);
43
42
  setEllipsis(clientWidth > width);
44
43
  }
45
44
  }, 0);
@@ -67,6 +67,19 @@ export default (function () {
67
67
  }
68
68
  });
69
69
  }),
70
+ expandable: {
71
+ expandedRowRender: function expandedRowRender(record) {
72
+ return /*#__PURE__*/React.createElement("p", {
73
+ style: {
74
+ margin: 0
75
+ }
76
+ }, "sdfsf");
77
+ },
78
+ rowExpandable: function rowExpandable(record) {
79
+ console.log('record', record);
80
+ return true;
81
+ }
82
+ },
70
83
  dataSource: dataSource,
71
84
  pagination: {
72
85
  size: 'small',
@@ -164,7 +164,8 @@ var ProTable = function ProTable(_ref) {
164
164
  React.createElement(Table, _extends({
165
165
  rowKey: rowKey,
166
166
  columns: columns,
167
- dataSource: dataSource
167
+ dataSource: dataSource,
168
+ expandable: expandable
168
169
  }, args, resetSelection(), {
169
170
  onGlobalCheckboxChange: handleGlobalCheckboxChange
170
171
  }))
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["loading", "height", "columns", "pagination", "setting", "rowKey", "dataSource", "globalCheckable", "globalCheckboxText", "expandable", "onGlobalCheckboxChange"],
2
+ var _excluded = ["loading", "height", "columns", "pagination", "setting", "rowKey", "dataSource", "globalCheckable", "globalCheckboxText", "onGlobalCheckboxChange"],
3
3
  _excluded2 = ["getContainer"];
4
4
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -43,7 +43,6 @@ var ElTable = function ElTable(_ref) {
43
43
  globalCheckable = _ref$globalCheckable === void 0 ? false : _ref$globalCheckable,
44
44
  _ref$globalCheckboxTe = _ref.globalCheckboxText,
45
45
  globalCheckboxText = _ref$globalCheckboxTe === void 0 ? '全选所有数据' : _ref$globalCheckboxTe,
46
- expandable = _ref.expandable,
47
46
  onGlobalCheckboxChange = _ref.onGlobalCheckboxChange,
48
47
  args = _objectWithoutProperties(_ref, _excluded);
49
48
  var _useState = useState('small'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sooloer/pages",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",