라이브 콜아웃 선택 정렬 보정
This commit is contained in:
@@ -45,6 +45,11 @@ const props = defineProps({
|
||||
type: Number,
|
||||
default: null
|
||||
},
|
||||
/** 이 편집 영역이 대표하는 원본 줄 수 */
|
||||
sourceLineCount: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
/** 루트 요소 태그 */
|
||||
tag: {
|
||||
type: String,
|
||||
@@ -538,7 +543,7 @@ const navigateToAdjacentBlock = (direction, column, caretMode = 'column') => {
|
||||
if (!target) {
|
||||
if (
|
||||
direction === 1
|
||||
&& (resolvedEnterMode.value === 'multiline' || props.arrowExitCreatesLine)
|
||||
&& props.arrowExitCreatesLine
|
||||
) {
|
||||
emit('insert-below', buildInsertBelowPayload())
|
||||
}
|
||||
@@ -1017,6 +1022,7 @@ defineExpose({ focusEditor, readEditorValue })
|
||||
showingRaw ? 'content-markdown-editable-inline--raw' : ''
|
||||
]"
|
||||
:data-source-line="sourceLine ?? undefined"
|
||||
:data-source-line-end="sourceLine !== null ? sourceLine + Math.max(1, sourceLineCount) - 1 : undefined"
|
||||
contenteditable="true"
|
||||
spellcheck="true"
|
||||
@focus="onFocus"
|
||||
|
||||
Reference in New Issue
Block a user