mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 修复表格单元格字体设置异常的问题
This commit is contained in:
parent
f6ff03c10d
commit
52b50736b7
@ -7,9 +7,16 @@
|
||||
@change="value => updateTextAttrs({ fontname: value })"
|
||||
>
|
||||
<template #suffixIcon><IconFontSize /></template>
|
||||
<SelectOption v-for="font in availableFonts" :key="font.en" :value="font.en">
|
||||
<span :style="{ fontFamily: font.en }">{{font.zh}}</span>
|
||||
<SelectOptGroup label="系统字体">
|
||||
<SelectOption v-for="font in availableFonts" :key="font.value" :value="font.value">
|
||||
<span :style="{ fontFamily: font.value }">{{font.label}}</span>
|
||||
</SelectOption>
|
||||
</SelectOptGroup>
|
||||
<SelectOptGroup label="在线字体">
|
||||
<SelectOption v-for="font in webFonts" :key="font.value" :value="font.value">
|
||||
<span>{{font.label}}</span>
|
||||
</SelectOption>
|
||||
</SelectOptGroup>
|
||||
</Select>
|
||||
<Select
|
||||
style="flex: 2;"
|
||||
@ -190,6 +197,7 @@ import { MutationTypes, useStore } from '@/store'
|
||||
import { PPTTableElement, TableCell, TableCellStyle, TableTheme } from '@/types/slides'
|
||||
import emitter, { EmitterEvents } from '@/utils/emitter'
|
||||
import { createRandomCode } from '@/utils/common'
|
||||
import { WEB_FONTS } from '@/configs/font'
|
||||
import useHistorySnapshot from '@/hooks/useHistorySnapshot'
|
||||
|
||||
import { message } from 'ant-design-vue'
|
||||
@ -197,6 +205,8 @@ import { message } from 'ant-design-vue'
|
||||
import ElementOutline from '../common/ElementOutline.vue'
|
||||
import ColorButton from '../common/ColorButton.vue'
|
||||
|
||||
const webFonts = WEB_FONTS
|
||||
|
||||
export default defineComponent({
|
||||
name: 'table-style-panel',
|
||||
components: {
|
||||
@ -414,6 +424,7 @@ export default defineComponent({
|
||||
updateTheme,
|
||||
setTableRow,
|
||||
setTableCol,
|
||||
webFonts,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user