@magicbe/antd-crud 0.0.58 → 0.0.59

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.
@@ -101,23 +101,17 @@ var Table = React.forwardRef(function (_a, ref) {
101
101
  /**自定义渲染 */
102
102
  else if (isFunction(record_1)) {
103
103
  var Component_1 = record_1;
104
- nexts === null || nexts === void 0 ? void 0 : nexts.push({
105
- title: "操作",
106
- render: function (value, row, index) { return React.cloneElement(_jsx(Component_1, {}), { value: value, row: row, index: index }); },
107
- });
104
+ nexts === null || nexts === void 0 ? void 0 : nexts.push(__assign({ title: "操作", render: function (value, row, index) { return React.cloneElement(_jsx(Component_1, {}), { value: value, row: row, index: index }); } }, actionColumn));
108
105
  }
109
106
  /**自定义渲染数组 */
110
107
  else if (isArray(record_1)) {
111
- nexts === null || nexts === void 0 ? void 0 : nexts.push({
112
- title: "操作",
113
- render: function (value, row, index) {
108
+ nexts === null || nexts === void 0 ? void 0 : nexts.push(__assign({ title: "操作", render: function (value, row, index) {
114
109
  return (_jsx(Space, { children: record_1.map(function (Component, key) { return React.cloneElement(_jsx(Component, {}, key), {
115
110
  value: value,
116
111
  row: row,
117
112
  index: index,
118
113
  }); }) }));
119
- }
120
- });
114
+ } }, actionColumn));
121
115
  }
122
116
  /**对象渲染 */
123
117
  else if (isObject(record_1) && !isEmpty(action)) {
@@ -125,9 +119,7 @@ var Table = React.forwardRef(function (_a, ref) {
125
119
  var add_element_1 = _jsx(Fragment, {});
126
120
  var edit_element_1 = _jsx(Fragment, {});
127
121
  var del_element_1 = _jsx(Fragment, {});
128
- nexts === null || nexts === void 0 ? void 0 : nexts.push({
129
- title: "操作",
130
- render: function (_, row, index) {
122
+ nexts === null || nexts === void 0 ? void 0 : nexts.push(__assign({ title: "操作", render: function (_, row, index) {
131
123
  /**新增 */
132
124
  if (add_1 === true)
133
125
  add_element_1 = React.cloneElement(_jsx(AppendAction, {}), { row: row, index: index });
@@ -150,8 +142,7 @@ var Table = React.forwardRef(function (_a, ref) {
150
142
  del_element_1 = React.cloneElement(_jsx(Component, {}), { row: row, index: index });
151
143
  }
152
144
  return (_jsxs(Space, { children: [add_element_1, edit_element_1, del_element_1] }));
153
- }
154
- });
145
+ } }, actionColumn));
155
146
  }
156
147
  }
157
148
  return nexts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicbe/antd-crud",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "antd crud table",
5
5
  "author": "wang quan",
6
6
  "private": false,