File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
ui/src/components/markdown Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 11<template >
2- <MdPreview :language =" language" noIconfont noPrettier :codeFoldable =" false" v-bind =" $attrs" @click.stop = " handleClick " />
2+ <MdPreview :language =" language" noIconfont noPrettier :codeFoldable =" false" v-bind =" $attrs" />
33</template >
44
55<script setup lang="ts">
@@ -19,18 +19,10 @@ const language = computed(() => user.getLanguage() || getBrowserLang() || '')
1919config ({
2020 editorConfig: {
2121 languageUserDefined: {
22- ' zh-Hant' : ZH_TW
23- }
24- }
22+ ' zh-Hant' : ZH_TW ,
23+ },
24+ },
2525})
26-
27- function handleClick(e : MouseEvent ) {
28- if ((e .target as HTMLElement ).closest (' a' ) || (e .target as HTMLElement ).closest (' .md-editor-copy-button' )) {
29- e .stopPropagation ()
30- } else {
31- emit (' clickPreview' )
32- }
33- }
3426 </script >
3527
3628<style lang="scss" scoped>
You can’t perform that action at this time.
0 commit comments