@teamias/rex-design 0.0.1 → 0.0.3
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/LICENSE +21 -21
- package/README.md +3 -3
- package/dist/components/action-buttons/action-buttons.d.ts +1 -1
- package/dist/components/action-buttons/action-buttons.js +86 -76
- package/dist/components/action-buttons/demo/index.js +61 -58
- package/dist/components/base-form/base-form.js +218 -215
- package/dist/components/base-form/demo/index.js +147 -135
- package/dist/components/base-form/modules/renderComponentNode.d.ts +2 -2
- package/dist/components/base-form/modules/renderComponentNode.js +135 -130
- package/dist/components/base-form/types.d.ts +1 -1
- package/dist/components/base-form/types.js +0 -9
- package/dist/components/base-list-table/base-list-table.d.ts +2 -2
- package/dist/components/base-list-table/base-list-table.js +156 -135
- package/dist/components/base-list-table/demo/BasicBaseListTable.js +22 -13
- package/dist/components/base-list-table/demo/NoData.js +2 -1
- package/dist/components/base-list-table/demo/TableMaxRowCount.js +1669 -1663
- package/dist/components/base-list-table/demo/VirtualDemo.js +22 -13
- package/dist/components/base-table/base-table.d.ts +2 -2
- package/dist/components/base-table/base-table.js +60 -55
- package/dist/components/base-table/components/BaseTableRow.js +79 -66
- package/dist/components/base-table/demo/BaseTableAll.js +6 -2
- package/dist/components/base-table/demo/BaseTableBasic.js +5 -2
- package/dist/components/base-table/demo/BaseTableIndex.js +48 -50
- package/dist/components/base-table/demo/BaseTableRowSelect.js +2 -1
- package/dist/components/data-cell/data-cell.js +5 -4
- package/dist/components/data-cell/demo/index.js +327 -309
- package/dist/components/data-cell/modules/cellItemMap.d.ts +2 -2
- package/dist/components/data-cell/modules/cellItemMap.js +184 -157
- package/dist/components/data-cell/types.d.ts +9 -9
- package/dist/components/icons/demo/index.js +44 -40
- package/dist/components/icons/icons.d.ts +1 -1
- package/dist/components/icons/icons.js +36 -26
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/components/media-viewer/demo/index.js +24 -20
- package/dist/components/media-viewer/media-viewer.d.ts +1 -1
- package/dist/components/media-viewer/media-viewer.js +13 -12
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.js +2 -0
- package/dist/{hooks → context}/request-fields-container/demo/index.js +10 -5
- package/dist/{hooks → context}/request-fields-container/index.js +2 -2
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.js +17 -12
- package/dist/context/request-fields-container/request-fields-container-hoc.d.ts +4 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-hoc.js +0 -1
- package/dist/{hooks → context}/request-fields-container/use-request-fields-container.js +2 -2
- package/dist/{hooks → context}/rex-pro-config-provider/demo/index.js +9 -5
- package/dist/{hooks → context}/rex-pro-config-provider/index.js +2 -2
- package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.js +0 -1
- package/dist/context/rex-pro-config-provider/rex-pro-config-provider.d.ts +5 -0
- package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-provider.js +8 -6
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-state-data/use-state-data.js +4 -4
- package/dist/index.d.ts +3 -10
- package/dist/index.js +3 -10
- package/dist/{components/base-form/locales → locales}/en-US.json +30 -21
- package/dist/{components/base-form/locales → locales}/zh-CN.json +30 -21
- package/dist/types/svg.d.ts +3 -3
- package/package.json +37 -33
- package/dist/components/base-form/locales.index.d.ts +0 -42
- package/dist/components/base-form/locales.index.js +0 -4
- package/dist/hooks/request-fields-container/request-fields-container-hoc.d.ts +0 -4
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.d.ts +0 -6
- package/dist/utils/locales/en-US.json +0 -13
- package/dist/utils/locales/index.d.ts +0 -26
- package/dist/utils/locales/index.js +0 -4
- package/dist/utils/locales/zh-CN.json +0 -13
- package/dist/{hooks → context}/request-fields-container/demo/index.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/index.d.ts +2 -2
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context.js +0 -0
- package/dist/{hooks → context}/request-fields-container/use-request-fields-container.d.ts +0 -0
- package/dist/{hooks → context}/rex-pro-config-provider/demo/index.d.ts +0 -0
- package/dist/{hooks → context}/rex-pro-config-provider/index.d.ts +1 -1
- /package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.d.ts +0 -0
- /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.d.ts +0 -0
- /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.js +0 -0
|
@@ -1,17 +1,25 @@
|
|
|
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); }
|
|
1
2
|
var _excluded = ["fieldsConfig", "requestFields", "requestFieldsUrl", "requestFieldsParams", "scroll", "virtual", "titleRender", "rowSelection", "dataSource", "headerRender", "defaultExpandAllCollapse", "tableMaxRowCount"];
|
|
2
|
-
function
|
|
3
|
+
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; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { Checkbox, Collapse, List, Skeleton } from 'antd';
|
|
7
10
|
import { CaretRightOutlined } from '@ant-design/icons';
|
|
11
|
+
import { useRequestFields, useRequestFieldsConfig, useRexProConfigProvider, useStateData } from "../..";
|
|
8
12
|
import { useDebounceEffect, useDeepCompareEffect } from 'ahooks';
|
|
9
|
-
import
|
|
13
|
+
import { Checkbox, Collapse, List, Skeleton } from 'antd';
|
|
14
|
+
import classNames from 'classnames';
|
|
10
15
|
import VirtualList from 'rc-virtual-list';
|
|
11
|
-
import
|
|
12
|
-
import { Header, TableMoreData, TableTitle, Wrapper } from "./style";
|
|
16
|
+
import React from 'react';
|
|
13
17
|
import { BaseTable } from "../base-table/base-table";
|
|
14
18
|
import { DataCell } from "../data-cell/data-cell";
|
|
19
|
+
import { Header, TableMoreData, TableTitle, Wrapper } from "./style";
|
|
20
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
23
|
export var BaseListTable = function BaseListTable(_ref) {
|
|
16
24
|
var fieldsConfig = _ref.fieldsConfig,
|
|
17
25
|
requestFields = _ref.requestFields,
|
|
@@ -71,7 +79,7 @@ export var BaseListTable = function BaseListTable(_ref) {
|
|
|
71
79
|
children = childrenDataSource.slice(0, tableMaxRowCount);
|
|
72
80
|
}
|
|
73
81
|
var titleNode = function () {
|
|
74
|
-
var checkboxNode = openCheckbox ? /*#__PURE__*/
|
|
82
|
+
var checkboxNode = openCheckbox ? /*#__PURE__*/_jsx(Checkbox, _objectSpread(_objectSpread({}, state.checkboxPropsMap["".concat(key)]), {}, {
|
|
75
83
|
checked: state.selected.includes(key),
|
|
76
84
|
onChange: function onChange(e) {
|
|
77
85
|
if (e.target.checked) {
|
|
@@ -87,81 +95,88 @@ export var BaseListTable = function BaseListTable(_ref) {
|
|
|
87
95
|
}
|
|
88
96
|
update();
|
|
89
97
|
}
|
|
90
|
-
})) : /*#__PURE__*/
|
|
91
|
-
var dataNode = /*#__PURE__*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
})
|
|
103
|
-
})
|
|
104
|
-
return /*#__PURE__*/
|
|
105
|
-
className: "base-list-table-table-title"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
98
|
+
})) : /*#__PURE__*/_jsx(_Fragment, {});
|
|
99
|
+
var dataNode = /*#__PURE__*/_jsx(_Fragment, {
|
|
100
|
+
children: Object.keys(item).map(function (inlineKey) {
|
|
101
|
+
var data = item[inlineKey];
|
|
102
|
+
if ([state.keyField, 'children'].includes(inlineKey) || !Array.isArray(data)) return /*#__PURE__*/_jsx("span", {
|
|
103
|
+
style: {
|
|
104
|
+
display: 'none'
|
|
105
|
+
}
|
|
106
|
+
}, inlineKey);
|
|
107
|
+
return /*#__PURE__*/_jsx(DataCell, {
|
|
108
|
+
items: data
|
|
109
|
+
}, inlineKey);
|
|
110
|
+
})
|
|
111
|
+
});
|
|
112
|
+
return /*#__PURE__*/_jsx(TableTitle, {
|
|
113
|
+
className: "base-list-table-table-title",
|
|
114
|
+
children: titleRender ? titleRender(item, index, {
|
|
115
|
+
checkboxNode: checkboxNode,
|
|
116
|
+
dataNode: dataNode
|
|
117
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
118
|
+
children: [checkboxNode, dataNode]
|
|
119
|
+
})
|
|
120
|
+
});
|
|
110
121
|
}();
|
|
111
|
-
var bodyNode = /*#__PURE__*/
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
122
|
+
var bodyNode = /*#__PURE__*/_jsxs(_Fragment, {
|
|
123
|
+
children: [/*#__PURE__*/_jsx(BaseTable, _objectSpread(_objectSpread({
|
|
124
|
+
scroll: {
|
|
125
|
+
x: 1000
|
|
126
|
+
}
|
|
127
|
+
}, tableProps), {}, {
|
|
128
|
+
dataSource: children,
|
|
129
|
+
fieldsConfig: fields,
|
|
130
|
+
pagination: false
|
|
131
|
+
})), openMaxRowCountRow && childrenDataSource.length > tableMaxRowCount ? /*#__PURE__*/_jsx(TableMoreData, {
|
|
132
|
+
className: "base-list-table-more-data",
|
|
133
|
+
children: /*#__PURE__*/_jsx("a", {
|
|
134
|
+
href: "void",
|
|
135
|
+
"aria-hidden": "true",
|
|
136
|
+
onClick: function onClick(e) {
|
|
137
|
+
e.preventDefault();
|
|
138
|
+
config.expandMoreData = !config.expandMoreData;
|
|
139
|
+
update();
|
|
140
|
+
},
|
|
141
|
+
children: config.expandMoreData ? formatMessage({
|
|
142
|
+
id: 'rex.components.base-list-table.expand-more-data-hide',
|
|
143
|
+
defaultMessage: '收起'
|
|
144
|
+
}) : formatMessage({
|
|
145
|
+
id: 'rex.components.base-list-table.expand-more-data',
|
|
146
|
+
defaultMessage: '还有{count}条数据未展示'
|
|
147
|
+
}, {
|
|
148
|
+
count: childrenDataSource.length - tableMaxRowCount
|
|
149
|
+
})
|
|
150
|
+
})
|
|
151
|
+
}) : /*#__PURE__*/_jsx(_Fragment, {})]
|
|
152
|
+
});
|
|
153
|
+
return /*#__PURE__*/_jsx(List.Item, {
|
|
154
|
+
children: /*#__PURE__*/_jsx(Collapse, {
|
|
155
|
+
size: "small",
|
|
156
|
+
collapsible: "icon",
|
|
157
|
+
destroyInactivePanel: true
|
|
158
|
+
// bordered={false}
|
|
159
|
+
,
|
|
160
|
+
defaultActiveKey: defaultExpandAllCollapse && (typeof config.collapseActiveKey === 'undefined' || config.collapseActiveKey) ? [key] : []
|
|
161
|
+
// activeKey={config.collapseActiveKey ? [key as string] : []}
|
|
162
|
+
,
|
|
163
|
+
expandIcon: function expandIcon(_ref2) {
|
|
164
|
+
var isActive = _ref2.isActive;
|
|
165
|
+
return /*#__PURE__*/_jsx(CaretRightOutlined, {
|
|
166
|
+
rotate: isActive ? 90 : 0
|
|
167
|
+
});
|
|
168
|
+
},
|
|
169
|
+
items: [{
|
|
170
|
+
key: key,
|
|
171
|
+
label: titleNode,
|
|
172
|
+
children: bodyNode
|
|
173
|
+
}],
|
|
174
|
+
onChange: function onChange() {
|
|
175
|
+
config.collapseActiveKey = !config.collapseActiveKey;
|
|
176
|
+
// update();
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
}, key);
|
|
165
180
|
};
|
|
166
181
|
|
|
167
182
|
/** 处理数据 */
|
|
@@ -235,58 +250,64 @@ export var BaseListTable = function BaseListTable(_ref) {
|
|
|
235
250
|
wait: 0
|
|
236
251
|
});
|
|
237
252
|
if (loading) {
|
|
238
|
-
return /*#__PURE__*/
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
253
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
254
|
+
children: [/*#__PURE__*/_jsx(Skeleton, {
|
|
255
|
+
active: true
|
|
256
|
+
}), /*#__PURE__*/_jsx(Skeleton, {
|
|
257
|
+
active: true
|
|
258
|
+
})]
|
|
259
|
+
});
|
|
243
260
|
}
|
|
244
|
-
return /*#__PURE__*/
|
|
245
|
-
className: classNames(
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
261
|
+
return /*#__PURE__*/_jsxs(Wrapper, {
|
|
262
|
+
className: classNames('base-list-table-table-box', state.listKey),
|
|
263
|
+
children: [/*#__PURE__*/_jsx(Header, {
|
|
264
|
+
className: "base-list-table-table-header",
|
|
265
|
+
children: function () {
|
|
266
|
+
var originNode = openCheckbox ? /*#__PURE__*/_jsx(Checkbox, {
|
|
267
|
+
disabled: dataSource.length === 0,
|
|
268
|
+
indeterminate: state.selected.length > 0 && state.selected.length < dataSource.length - state.checkboxDisabled.length,
|
|
269
|
+
checked: dataSource.length !== 0 && state.selected.length === dataSource.length - state.checkboxDisabled.length,
|
|
270
|
+
onChange: function onChange(e) {
|
|
271
|
+
if (e.target.checked) {
|
|
272
|
+
var baseArr = dataSource.filter(function (item) {
|
|
273
|
+
return !state.checkboxDisabled.includes(item[state.keyField]);
|
|
274
|
+
});
|
|
275
|
+
state.selected = baseArr.map(function (item) {
|
|
276
|
+
return item[state.keyField];
|
|
277
|
+
});
|
|
278
|
+
state.selectedItems = baseArr;
|
|
279
|
+
} else {
|
|
280
|
+
state.selected = [];
|
|
281
|
+
state.selectedItems = [];
|
|
282
|
+
}
|
|
283
|
+
update();
|
|
284
|
+
}
|
|
285
|
+
}) : /*#__PURE__*/_jsx(_Fragment, {});
|
|
286
|
+
if (headerRender) return headerRender(originNode);
|
|
287
|
+
return originNode;
|
|
288
|
+
}()
|
|
289
|
+
}), virtual ? /*#__PURE__*/_jsx(List, {
|
|
290
|
+
size: "small",
|
|
291
|
+
children: /*#__PURE__*/_jsx(VirtualList, {
|
|
292
|
+
data: dataSource,
|
|
293
|
+
fullHeight: false,
|
|
294
|
+
height: typeof scroll === 'function' ? scroll(state.scrollHeight).y : scroll === null || scroll === void 0 ? void 0 : scroll.y,
|
|
295
|
+
itemHeight: 200,
|
|
296
|
+
itemKey: state.keyField
|
|
297
|
+
// onScroll={onScroll}
|
|
298
|
+
,
|
|
299
|
+
children: renderItem
|
|
300
|
+
})
|
|
301
|
+
}) : /*#__PURE__*/_jsx(List, {
|
|
302
|
+
style: {
|
|
303
|
+
maxHeight: typeof scroll === 'function' ? scroll(state.scrollHeight).y : scroll === null || scroll === void 0 ? void 0 : scroll.y,
|
|
304
|
+
overflow: 'auto'
|
|
305
|
+
},
|
|
306
|
+
dataSource: dataSource,
|
|
307
|
+
itemLayout: "vertical",
|
|
308
|
+
size: "small",
|
|
309
|
+
rowKey: state.keyField,
|
|
310
|
+
renderItem: renderItem
|
|
311
|
+
})]
|
|
312
|
+
});
|
|
313
|
+
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseListTable } from "../base-list-table";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
6
|
export default (function () {
|
|
4
|
-
return /*#__PURE__*/
|
|
7
|
+
return /*#__PURE__*/_jsx(BaseListTable, {
|
|
5
8
|
defaultExpandAllCollapse: true
|
|
6
9
|
// rowSelection={{
|
|
7
10
|
// getCheckboxProps (record) {
|
|
@@ -14,20 +17,26 @@ export default (function () {
|
|
|
14
17
|
// virtual
|
|
15
18
|
,
|
|
16
19
|
headerRender: function headerRender(originNode) {
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
21
|
+
children: [originNode, /*#__PURE__*/_jsx("span", {
|
|
22
|
+
style: {
|
|
23
|
+
color: 'red'
|
|
24
|
+
},
|
|
25
|
+
children: "\u81EA\u5B9A\u4E49\u5185\u5BB9"
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
22
28
|
},
|
|
23
29
|
titleRender: function titleRender(item, index, originNode) {
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
31
|
+
children: [originNode.checkboxNode, originNode.dataNode, /*#__PURE__*/_jsx("span", {
|
|
32
|
+
style: {
|
|
33
|
+
flex: 1,
|
|
34
|
+
textAlign: 'right',
|
|
35
|
+
color: 'red'
|
|
36
|
+
},
|
|
37
|
+
children: "\u81EA\u5B9A\u4E49\u5185\u5BB9"
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
31
40
|
},
|
|
32
41
|
fieldsConfig: [{
|
|
33
42
|
"title": "编号/状态",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseListTable } from "../base-list-table";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
4
|
export default (function () {
|
|
4
|
-
return /*#__PURE__*/
|
|
5
|
+
return /*#__PURE__*/_jsx(BaseListTable, {
|
|
5
6
|
defaultExpandAllCollapse: true,
|
|
6
7
|
rowSelection: {},
|
|
7
8
|
fieldsConfig: [{
|