@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,
|
|
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, {
|