We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f6c528 commit dd04774Copy full SHA for dd04774
ui/src/components/markdown/MdEditorMagnify.vue
@@ -25,7 +25,7 @@
25
</template>
26
27
<script setup lang="ts">
28
-import { ref, computed } from 'vue'
+import { ref, computed, watch } from 'vue'
29
defineOptions({ name: 'MdEditorMagnify' })
30
const props = defineProps<{
31
title: String
@@ -40,8 +40,13 @@ const data = computed({
40
return props.modelValue
41
}
42
})
43
-
44
const dialogVisible = ref(false)
+watch(dialogVisible, (bool) => {
45
+ if (!bool) {
46
+ emit('submitDialog', cloneContent.value)
47
+ }
48
+})
49
+
50
const cloneContent = ref('')
51
const footers: any = [null, '=', 0]
52
function openDialog() {
0 commit comments