@zhenliang/sheet 0.1.37 → 0.1.38
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/dist/core/table/index.js +8 -1
- package/package.json +1 -1
package/dist/core/table/index.js
CHANGED
|
@@ -131,6 +131,13 @@ var Table = function Table(_ref) {
|
|
|
131
131
|
setCheckedRow(newChecked);
|
|
132
132
|
}, [sheetInstance, checkedRow]);
|
|
133
133
|
var headSelection = !!rowSelection;
|
|
134
|
+
var columnsTitle = useMemo(function () {
|
|
135
|
+
return columns.filter(function (item) {
|
|
136
|
+
return typeof item.title === 'string';
|
|
137
|
+
}).map(function (item) {
|
|
138
|
+
return item.title;
|
|
139
|
+
}).join('_');
|
|
140
|
+
}, [columns]);
|
|
134
141
|
var WrappedTableShell = useMemo(function () {
|
|
135
142
|
if (draggable) {
|
|
136
143
|
return DraggableShell({
|
|
@@ -156,7 +163,7 @@ var Table = function Table(_ref) {
|
|
|
156
163
|
}
|
|
157
164
|
}
|
|
158
165
|
});
|
|
159
|
-
}, [columns.length, draggable, headSelection, hasChildren]);
|
|
166
|
+
}, [columns.length, columnsTitle, draggable, headSelection, hasChildren]);
|
|
160
167
|
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
161
168
|
renderEmpty: function renderEmpty() {
|
|
162
169
|
return /*#__PURE__*/_jsx(Empty, {
|