feat: 生成sketch自动切换为sketch视图

style: md内容样式
This commit is contained in:
2026-03-17 11:22:47 +08:00
parent 35d482d8b9
commit ffe8526745
3 changed files with 45 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
>
<template v-if="type === 'sketch'">
<div
v-show="!showLoading"
class="sketch-item"
v-for="(item, index) in sketchList"
:key="'sketch-item-' + index"
@@ -18,7 +19,7 @@
src="@/assets/images/restore-sketch.png"
class="dropdown-icon restore"
/>
<span>Restore</span>
<span class="dropdown-txt">Quote</span>
</el-dropdown-item>
<el-dropdown-item
class="sketch-item flex align-center"
@@ -28,7 +29,7 @@
src="@/assets/images/delete.png"
class="dropdown-icon delete"
/>
<span>Delete</span>
<span class="dropdown-txt del">Delete</span>
</el-dropdown-item>
</el-dropdown-menu>
</template>
@@ -124,6 +125,19 @@
)
const customAttrs: CustomAttrs = {
heading: {
style: {
fontFamily: 'Regular',
lineHeight: 2
// fontSize: '1.4rem'
}
},
p: {
style: {
fontSize: '1.4rem',
lineHeight: 1.5
}
},
img: {
style: 'max-width: 100%;display:block;'
},
@@ -283,7 +297,7 @@
height: 1.3rem;
}
&.delete {
width: 1.2rem;
width: 1.19rem;
height: 1.3rem;
}
}
@@ -408,6 +422,7 @@
overflow-y: auto;
margin: 2rem;
padding: 0 8.8rem 8.8rem;
user-select: text;
}
}
}
@@ -416,5 +431,13 @@
:deep(.el-dropdown-menu__item) {
column-gap: 1.2rem;
padding: 1.2rem 1.4rem;
.dropdown-txt {
font-size: 1.3rem;
font-family: 'Medium';
color: #000;
&.del {
color: #ff4747;
}
}
}
</style>