블록 설정 패널 확장 v1.5.37

This commit is contained in:
2026-06-02 16:13:38 +09:00
parent 093d09c8bf
commit ba17e3aa18
14 changed files with 538 additions and 28 deletions

View File

@@ -14,6 +14,11 @@ const props = defineProps({
type: String,
default: ''
},
/** 기본 펼침 여부 */
defaultOpen: {
type: Boolean,
default: false
},
/** 선언 줄 source-line(0-based) */
titleSourceLine: {
type: Number,
@@ -44,7 +49,8 @@ watch(() => props.title, (value) => {
const commitToggle = (options = {}) => {
emit('commit', buildToggleBlockLines({
title: options.title ?? titleDraft.value,
body: options.body ?? props.modelValue
body: options.body ?? props.modelValue,
defaultOpen: options.defaultOpen ?? props.defaultOpen
}))
}
@@ -104,7 +110,7 @@ const onExitBelow = (payload) => {
class="content-markdown-toggle-editor"
data-editable-scope
:title="titleDraft"
default-open
:default-open="true"
animated
>
<template #title>