@seafile/sdoc-editor 2.0.37-alpg-0.0.5 → 2.0.37-alpg-0.0.6

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.
@@ -252,12 +252,14 @@ function renderTable(props) {
252
252
  const editor = (0, _slateReact.useSlateStatic)();
253
253
  console.log(0, editor, editor.width);
254
254
  const columns = (0, _helpers.getTableColumns)(editor, element);
255
- console.log(1, editor, columns, element);
255
+ console.log(1, editor, editor.width, element);
256
256
  let style = element.style ? {
257
257
  ...element.style
258
258
  } : {};
259
259
  const columnWidthList = columns.map(item => `${item.width}px`);
260
260
  style.gridTemplateColumns = columnWidthList.join(' ');
261
+ const w2 = editor.width;
262
+ console.log(3, w2);
261
263
  const rowHeightList = element.children.map((item, index) => (0, _helpers.getRowHeight)(item, index));
262
264
  style.gridAutoRows = rowHeightList.map(item => `minmax(${item}px, auto)`).join(' ');
263
265
  return /*#__PURE__*/_react.default.createElement(_tableRoot.default, {
@@ -26,6 +26,8 @@ const TableRoot = _ref => {
26
26
  const onScroll = (0, _react.useCallback)(event => {
27
27
  setScrollLeft(event.target.scrollLeft);
28
28
  }, []);
29
+ const w2 = editor.width;
30
+ console.log(3, w2);
29
31
  const {
30
32
  isShowContextMenu,
31
33
  menuPosition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "2.0.37-alpg-0.0.5",
3
+ "version": "2.0.37-alpg-0.0.6",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",