feat: 优化表现
This commit is contained in:
1 parent
d61b5e8a52
commit
03212f9854
3 files changed
+26
-5
No files matched your search
@@ -45,12 +45,19 @@ const VNodeArr = computed(() => {
|
||||
// console.log({
|
||||
// codeType,
|
||||
// })
|
||||
// @ts-ignore
|
||||
const inline = (item.children[0].children.trim() as string).includes('\n') ? false : true
|
||||
console.log({
|
||||
inline,
|
||||
c: item.children
|
||||
})
|
||||
return h(
|
||||
codeMirror,
|
||||
{
|
||||
// @ts-ignore
|
||||
data: item.children[0].children.trim(),
|
||||
type: codeType,
|
||||
inline,
|
||||
},
|
||||
)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user