@seafile/sdoc-editor 2.0.37-alpg-0.0.2 → 2.0.37-alpg-0.0.4
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.
|
@@ -249,6 +249,7 @@ function renderTable(props) {
|
|
|
249
249
|
} = props;
|
|
250
250
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
251
251
|
const editor = (0, _slateReact.useSlateStatic)();
|
|
252
|
+
console.log(0, editor, editor.width);
|
|
252
253
|
const columns = (0, _helpers.getTableColumns)(editor, element);
|
|
253
254
|
console.log(1, editor, columns, element);
|
|
254
255
|
let style = element.style ? {
|
|
@@ -30,6 +30,7 @@ const TableRoot = _ref => {
|
|
|
30
30
|
menuPosition,
|
|
31
31
|
onContextMenu
|
|
32
32
|
} = (0, _hooks.useContextMenu)(tableScrollWrapper);
|
|
33
|
+
console.log(2, editor, editor.width, columns, allWidth);
|
|
33
34
|
return /*#__PURE__*/_react.default.createElement(_hooks.TableRootContext.Provider, {
|
|
34
35
|
value: tableScrollWrapper.current
|
|
35
36
|
}, /*#__PURE__*/_react.default.createElement(_hooks.TableRootScrollLeftContext.Provider, {
|