Commit 8ee2cbbe authored by zhengke's avatar zhengke

优化字体可 检索

parent 0ff5b9fe
...@@ -14,8 +14,19 @@ ...@@ -14,8 +14,19 @@
<Divider /> <Divider />
<SelectGroup class="row"> <SelectGroup class="row formatFontsBox">
<Select <el-select v-model="richTextAttrs.fontname" placeholder="" filterable>
<el-option
v-for="item in formatFonts"
:key="item.value"
:label="item.label"
:value="item.value"
/>
<template #icon>
<IconFontSize />
</template>
</el-select>
<!-- <Select
class="font-select" class="font-select"
style="width: 60%;" style="width: 60%;"
:value="richTextAttrs.fontname" :value="richTextAttrs.fontname"
...@@ -27,7 +38,7 @@ ...@@ -27,7 +38,7 @@
<template #icon> <template #icon>
<IconFontSize /> <IconFontSize />
</template> </template>
</Select> </Select> -->
<Select <Select
style="width: 40%;" style="width: 40%;"
:value="richTextAttrs.fontsize" :value="richTextAttrs.fontsize"
...@@ -658,4 +669,7 @@ watch(handleElement, () => { ...@@ -658,4 +669,7 @@ watch(handleElement, () => {
.popover-btn { .popover-btn {
padding: 0 3px; padding: 0 3px;
} }
.formatFontsBox .el-input__wrapper{
border: 0;
}
</style> </style>
\ No newline at end of file
...@@ -138,16 +138,24 @@ ...@@ -138,16 +138,24 @@
<IconRight v-else /> <IconRight v-else />
</span> </span>
</div> </div>
<div class="row"> <div class="row formatFontsBox">
<div style="width: 40%;">字体:</div> <div style="width: 40%;">字体:</div>
<Select <el-select v-model="theme.fontName" placeholder="" filterable>
<el-option
v-for="item in formatFonts"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<!-- <Select
style="width: 60%;" style="width: 60%;"
:value="theme.fontName" :value="theme.fontName"
@update:value="value => updateTheme({ fontName: value as string })" @update:value="value => updateTheme({ fontName: value as string })"
:options="[ :options="[
...formatFonts ...formatFonts
]" ]"
/> /> -->
<!-- ...availableFonts, <!-- ...availableFonts,
...WEB_FONTS --> ...WEB_FONTS -->
</div> </div>
...@@ -551,4 +559,7 @@ const updateViewportRatio = (value: number) => { ...@@ -551,4 +559,7 @@ const updateViewportRatio = (value: number) => {
} }
} }
} }
.formatFontsBox .el-input__wrapper{
border: 0;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment