@sooloer/pages 0.1.10 → 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.
@@ -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
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sooloer/pages",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",