lexical-markdown-vue
Advanced tools
Comparing version
{ | ||
"name": "lexical-markdown-vue", | ||
"private": false, | ||
"version": "0.1.31", | ||
"version": "0.1.32", | ||
"types": "dist/index.d.ts", | ||
@@ -6,0 +6,0 @@ "main": "dist/lexical-markdown-vue.js", |
@@ -23,2 +23,3 @@ import { | ||
import {$createHeadingNode} from "@lexical/rich-text"; | ||
import {compileToFunction} from "vue"; | ||
@@ -511,2 +512,21 @@ type SerializedHtmlNode = Spread< | ||
} | ||
for (let i = 0; i < rows; i++) { | ||
for (let j = 0; j < columns; j++) { | ||
const tableCellNode = $getCellInTable(table, i, j) | ||
if (!(tableCellNode && tableCellNode.getHeaderStyles() === TableCellHeaderStates.BOTH)) { | ||
continue; | ||
} | ||
// 邻近的行节点,注意不能越界 | ||
const nextRow = $getCellInTable(table, i, j + 1 < columns ? j + 1 : j - 1) | ||
// 邻近的列节点,注意不能越界 | ||
const nextColumn = $getCellInTable(table, i + 1 < rows ? i + 1 : i - 1, j) | ||
// 如果tableCellNode真的是BOTH,那么行节点一定是ROW,列节点一定是COLUMN | ||
if (nextRow && nextRow.getHeaderStyles() === TableCellHeaderStates.ROW | ||
&& nextColumn && nextColumn.getHeaderStyles() === TableCellHeaderStates.COLUMN) { | ||
continue | ||
} | ||
// 否则则要把tableCellNode设置成NO_STATUS | ||
tableCellNode.setHeaderStyles(TableCellHeaderStates.NO_STATUS) | ||
} | ||
} | ||
@@ -513,0 +533,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4077868
0.04%34022
0.09%0
-100%