jvs-ppt-ui 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/jvs-ppt-ui.es.js +11208 -11034
- package/dist/lib/jvs-ppt-ui.umd.js +31 -31
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
- package/src/components/PptEditor.vue +63 -0
- package/src/components/SidebarRight.vue +77 -21
- package/src/components/SvgChart.vue +1 -1
- package/src/components/TemplateGallery.vue +37 -7
- package/src/components/canvas/elements/CanvasShapeElement.vue +5 -0
- package/src/components/canvas/elements/CanvasTextElement.vue +5 -0
- package/src/components/material/CreateMaterialPanel.vue +64 -3
- package/src/components/material/MyAssetsPanel.vue +61 -3
- package/src/components/sidebar/panels/SidebarDesignPanel.vue +2 -2
- package/src/components/sidebar/panels/SidebarTextFormatPanel.vue +66 -17
- package/src/composables/useSlides.ts +25 -20
- package/src/index.ts +2 -1
- package/src/style.css +63 -2
- package/src/utils/textTypes.ts +1 -1
|
@@ -996,7 +996,7 @@ watch(extractTab, () => {
|
|
|
996
996
|
<template #reference>
|
|
997
997
|
<div ref="fontTriggerRef" class="custom-select-trigger" :class="{ 'is-active': isFontPopoverVisible }">
|
|
998
998
|
<span class="select-trigger-text"
|
|
999
|
-
:style="{ fontFamily: (globalFontFamily && globalFontFamily !== '默认字体') ? globalFontFamily : undefined }">
|
|
999
|
+
:style="{ fontFamily: (globalFontFamily && globalFontFamily !== '默认字体') ? globalFontFamily : undefined, '--ppt-font-family': (globalFontFamily && globalFontFamily !== '默认字体') ? globalFontFamily : undefined }">
|
|
1000
1000
|
{{ currentFontFamilyLabel }}
|
|
1001
1001
|
</span>
|
|
1002
1002
|
<svg viewBox="0 0 1024 1024" width="10" height="10" fill="currentColor" class="select-trigger-arrow"
|
|
@@ -1020,7 +1020,7 @@ watch(extractTab, () => {
|
|
|
1020
1020
|
</div>
|
|
1021
1021
|
<div v-for="font in SYS_FONTS" :key="font.value" class="autofit-menu-item"
|
|
1022
1022
|
:class="{ 'is-selected': globalFontFamily === font.value }" @click="selectFont(font.value)">
|
|
1023
|
-
<span class="autofit-item-label" :style="{ fontFamily: font.value }">{{ font.label }}</span>
|
|
1023
|
+
<span class="autofit-item-label" :style="{ fontFamily: font.value, '--ppt-font-family': font.value }">{{ font.label }}</span>
|
|
1024
1024
|
<svg v-if="globalFontFamily === font.value" viewBox="0 0 24 24" width="15" height="15" fill="none"
|
|
1025
1025
|
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"
|
|
1026
1026
|
class="autofit-check-icon">
|
|
@@ -222,7 +222,7 @@ const textTypeTriggerWidth = ref(248)
|
|
|
222
222
|
|
|
223
223
|
const currentTextTypeLabel = computed(() => {
|
|
224
224
|
const match = TEXT_TYPE_LIST.find(item => item.type === props.currentTextType)
|
|
225
|
-
return match ?
|
|
225
|
+
return match ? match.label : '正文文本'
|
|
226
226
|
})
|
|
227
227
|
|
|
228
228
|
function onTextTypePopoverShow() {
|
|
@@ -403,22 +403,17 @@ function startDragAngle(e: MouseEvent) {
|
|
|
403
403
|
|
|
404
404
|
<div class="autofit-menu-container">
|
|
405
405
|
<div v-for="item in TEXT_TYPE_LIST" :key="item.type" class="autofit-menu-item text-type-menu-item"
|
|
406
|
-
:class="
|
|
406
|
+
:class="[
|
|
407
|
+
`text-type-item-${item.type}`,
|
|
408
|
+
{ 'is-selected': (currentTextType === item.type) || (!currentTextType && item.type === 'normalText') }
|
|
409
|
+
]"
|
|
407
410
|
@click="selectTextType(item.type)">
|
|
408
|
-
<
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
<
|
|
413
|
-
</
|
|
414
|
-
<div style="display: flex; align-items: center; gap: 8px;">
|
|
415
|
-
<span style="font-size: 11px; color: #94a3b8;">{{ item.defaultFontSize }}px</span>
|
|
416
|
-
<svg v-if="(currentTextType === item.type) || (!currentTextType && item.type === 'normalText')"
|
|
417
|
-
viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5"
|
|
418
|
-
stroke-linecap="round" stroke-linejoin="round" class="autofit-check-icon">
|
|
419
|
-
<polyline points="20 6 9 17 4 12" />
|
|
420
|
-
</svg>
|
|
421
|
-
</div>
|
|
411
|
+
<span class="autofit-item-label text-type-item-label">{{ item.label }}</span>
|
|
412
|
+
<svg v-if="(currentTextType === item.type) || (!currentTextType && item.type === 'normalText')"
|
|
413
|
+
viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5"
|
|
414
|
+
stroke-linecap="round" stroke-linejoin="round" class="autofit-check-icon">
|
|
415
|
+
<polyline points="20 6 9 17 4 12" />
|
|
416
|
+
</svg>
|
|
422
417
|
</div>
|
|
423
418
|
</div>
|
|
424
419
|
</el-popover>
|
|
@@ -435,7 +430,7 @@ function startDragAngle(e: MouseEvent) {
|
|
|
435
430
|
:show-arrow="false" :offset="4">
|
|
436
431
|
<el-option label="默认字体" value="默认字体" />
|
|
437
432
|
<el-option v-for="font in displaySysFonts" :key="font.value" :label="font.label" :value="font.value">
|
|
438
|
-
<span :style="{ fontFamily: font.value }">{{ font.label }}</span>
|
|
433
|
+
<span :style="{ fontFamily: font.value, '--ppt-font-family': font.value }">{{ font.label }}</span>
|
|
439
434
|
</el-option>
|
|
440
435
|
</el-select>
|
|
441
436
|
|
|
@@ -1810,6 +1805,60 @@ function startDragAngle(e: MouseEvent) {
|
|
|
1810
1805
|
.el-popper__arrow {
|
|
1811
1806
|
display: none !important;
|
|
1812
1807
|
}
|
|
1808
|
+
|
|
1809
|
+
.autofit-menu-item.text-type-menu-item {
|
|
1810
|
+
height: auto !important;
|
|
1811
|
+
min-height: 32px !important;
|
|
1812
|
+
line-height: 1.3 !important;
|
|
1813
|
+
padding: 6px 10px !important;
|
|
1814
|
+
white-space: nowrap !important;
|
|
1815
|
+
|
|
1816
|
+
.text-type-item-label {
|
|
1817
|
+
white-space: nowrap;
|
|
1818
|
+
overflow: hidden;
|
|
1819
|
+
text-overflow: ellipsis;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
&.text-type-item-title .text-type-item-label {
|
|
1823
|
+
font-size: 22px;
|
|
1824
|
+
font-weight: 800;
|
|
1825
|
+
line-height: 1.25;
|
|
1826
|
+
color: #0f172a;
|
|
1827
|
+
letter-spacing: -0.5px;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
&.text-type-item-headline .text-type-item-label {
|
|
1831
|
+
font-size: 18px;
|
|
1832
|
+
font-weight: 700;
|
|
1833
|
+
line-height: 1.25;
|
|
1834
|
+
color: #0f172a;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
&.text-type-item-subheadline .text-type-item-label {
|
|
1838
|
+
font-size: 15px;
|
|
1839
|
+
font-weight: 600;
|
|
1840
|
+
line-height: 1.3;
|
|
1841
|
+
color: #1e293b;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
&.text-type-item-normalText .text-type-item-label {
|
|
1845
|
+
font-size: 13.5px;
|
|
1846
|
+
font-weight: 400;
|
|
1847
|
+
line-height: 1.3;
|
|
1848
|
+
color: #334155;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
&.text-type-item-smallText .text-type-item-label {
|
|
1852
|
+
font-size: 12px;
|
|
1853
|
+
font-weight: 400;
|
|
1854
|
+
line-height: 1.3;
|
|
1855
|
+
color: #64748b;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
&.is-selected .text-type-item-label {
|
|
1859
|
+
color: #2563eb;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1813
1862
|
}
|
|
1814
1863
|
|
|
1815
1864
|
.font-size-popover {
|
|
@@ -1103,7 +1103,7 @@ function applyThemeToAll() {
|
|
|
1103
1103
|
el.style.fontFamily = globalFontFamily.value
|
|
1104
1104
|
el.fontFamily = globalFontFamily.value
|
|
1105
1105
|
if (el.content) {
|
|
1106
|
-
el.content = el.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1106
|
+
el.content = el.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/(?:--ppt-)?font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
if (el.type === 'shape') {
|
|
@@ -1119,9 +1119,9 @@ function applyThemeToAll() {
|
|
|
1119
1119
|
el.style.fontFamily = globalFontFamily.value
|
|
1120
1120
|
el.fontFamily = globalFontFamily.value
|
|
1121
1121
|
if (typeof el.text === 'string') {
|
|
1122
|
-
el.text = el.text.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1122
|
+
el.text = el.text.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/(?:--ppt-)?font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1123
1123
|
} else if (el.text && typeof el.text.content === 'string') {
|
|
1124
|
-
el.text.content = el.text.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1124
|
+
el.text.content = el.text.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/(?:--ppt-)?font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
1127
|
})
|
|
@@ -1136,9 +1136,9 @@ function applyFontToAll() {
|
|
|
1136
1136
|
|
|
1137
1137
|
const updateHtmlFontAndColor = (htmlStr: string, effectiveFont: string) => {
|
|
1138
1138
|
if (!htmlStr || typeof htmlStr !== 'string') return htmlStr
|
|
1139
|
-
let res = htmlStr
|
|
1139
|
+
let res = htmlStr.replace(/--ppt-font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1140
1140
|
if (/font-family\s*:/i.test(res)) {
|
|
1141
|
-
res = res.replace(/font-family\s*:\s*[^;'"\}]+;?/gi, `font-family: ${effectiveFont};`)
|
|
1141
|
+
res = res.replace(/font-family\s*:\s*[^;'"\}]+;?/gi, `font-family: ${effectiveFont}; --ppt-font-family: ${effectiveFont};`)
|
|
1142
1142
|
}
|
|
1143
1143
|
if (/<font\b[^>]*\bface=/i.test(res)) {
|
|
1144
1144
|
res = res.replace(/(<font\b[^>]*?\bface\s*=\s*['"])([^'"]+)(['"])/gi, `$1${effectiveFont}$3`)
|
|
@@ -1322,7 +1322,7 @@ function applyPresetTheme(preset: PresetTheme) {
|
|
|
1322
1322
|
el.textColor = preset.fontColor
|
|
1323
1323
|
el.color = preset.fontColor
|
|
1324
1324
|
if (el.content) {
|
|
1325
|
-
el.content = el.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1325
|
+
el.content = el.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/(?:--ppt-)?font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
1328
|
if (el.type === 'shape') {
|
|
@@ -1333,9 +1333,9 @@ function applyPresetTheme(preset: PresetTheme) {
|
|
|
1333
1333
|
el.style.fontFamily = preset.fontFamily
|
|
1334
1334
|
el.fontFamily = preset.fontFamily
|
|
1335
1335
|
if (typeof el.text === 'string') {
|
|
1336
|
-
el.text = el.text.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1336
|
+
el.text = el.text.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/(?:--ppt-)?font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1337
1337
|
} else if (el.text && typeof el.text.content === 'string') {
|
|
1338
|
-
el.text.content = el.text.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1338
|
+
el.text.content = el.text.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/(?:--ppt-)?font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
})
|
|
@@ -1570,7 +1570,7 @@ export function recolorElementsWithRecipe(elements: any[], recipe: StyleRecipe)
|
|
|
1570
1570
|
if (cfg.letterSpacing !== undefined) el.style.letterSpacing = `${cfg.letterSpacing}px`
|
|
1571
1571
|
|
|
1572
1572
|
if (el.content) {
|
|
1573
|
-
el.content = el.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1573
|
+
el.content = el.content.replace(/color\s*:\s*[^;"]+;?/gi, '').replace(/(?:--ppt-)?font-family\s*:\s*[^;"]+;?/gi, '')
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
1576
|
// 处理超链接元素或 <a> 标签的链接颜色与下划线 (linkUnderline)
|
|
@@ -5828,24 +5828,29 @@ function extractTextStyleFromHtml(html: string, defaultColor: string, defaultFon
|
|
|
5828
5828
|
|
|
5829
5829
|
export function normalizeHtmlFontFamily(html: string): string {
|
|
5830
5830
|
if (!html) return ''
|
|
5831
|
+
// 先清理可能已注入的 --ppt-font-family,确保幂等不重复追加
|
|
5832
|
+
let cleaned = html.replace(/--ppt-font-family\s*:\s*(?:"|"|[^;"])+;?\s*/gi, '')
|
|
5831
5833
|
// Font-family values may contain double quotes written as HTML entities
|
|
5832
5834
|
// (") — Chrome produces those when it re-serializes inline styles during
|
|
5833
5835
|
// execCommand unwrap. Match the whole value instead of truncating at `"`.
|
|
5834
|
-
let processed =
|
|
5835
|
-
const fontStr = raw.trim()
|
|
5836
|
+
let processed = cleaned.replace(/font-family\s*:\s*((?:"|"|[^;"])+)/gi, (_, raw) => {
|
|
5837
|
+
const fontStr = raw.replace(/\s*!important\s*/gi, '').trim()
|
|
5836
5838
|
const font = fontStr.replace(/"|"/gi, '"').replace(/['"]/g, '').trim()
|
|
5837
5839
|
if (font.toLowerCase() === 'inherit') return 'font-family: inherit'
|
|
5840
|
+
let resolved = ''
|
|
5838
5841
|
if (font.toLowerCase().includes('sans-serif') || font.toLowerCase().includes('serif')) {
|
|
5839
|
-
|
|
5840
|
-
}
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5842
|
+
resolved = fontStr.replace(/"|"/gi, "'")
|
|
5843
|
+
} else if (font === '默认字体' || font === 'SourceHanSansCN' || font === '微软雅黑' || font === 'Microsoft YaHei') {
|
|
5844
|
+
resolved = "'SourceHanSansCN', sans-serif"
|
|
5845
|
+
} else {
|
|
5846
|
+
const isSerif = /宋|书局|明朝|楷|仿宋|serif|times|georgia|minion|garamond|cambria|bodoni|didot/i.test(font)
|
|
5847
|
+
if (isSerif) {
|
|
5848
|
+
resolved = `'${font}', 'Source Han Serif SC', 'Songti SC', 'SimSun', 'STSong', serif`
|
|
5849
|
+
} else {
|
|
5850
|
+
resolved = `'${font}', 'SourceHanSansCN', sans-serif`
|
|
5851
|
+
}
|
|
5847
5852
|
}
|
|
5848
|
-
return `font-family:
|
|
5853
|
+
return `font-family: ${resolved}; --ppt-font-family: ${resolved}`
|
|
5849
5854
|
})
|
|
5850
5855
|
|
|
5851
5856
|
// Normalize and scale -webkit-text-stroke if it is still in pt (or missing px)
|
package/src/index.ts
CHANGED
|
@@ -4,11 +4,12 @@ import jvsPickerColorV3 from 'jvs-picker-color-v3'
|
|
|
4
4
|
import PptEditor from './components/PptEditor.vue'
|
|
5
5
|
import { useSlides } from './composables/useSlides'
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// 自动打入所有依赖样式、内置字体与图标库,宿主无需在 index.html 额外引入 iconfont、fonts.css 或 element-plus 样式
|
|
8
8
|
import './assets/iconfont/iconfont.js'
|
|
9
9
|
import 'element-plus/dist/index.css'
|
|
10
10
|
import 'jvs-picker-color-v3/lib/jvs-picker-color-v3.css'
|
|
11
11
|
import 'animate.css'
|
|
12
|
+
import '../public/jvs-ppt-ui/fonts/fonts.css'
|
|
12
13
|
import './style.css'
|
|
13
14
|
|
|
14
15
|
// 为单独 import { PptEditor } 挂载 install 方法
|
package/src/style.css
CHANGED
|
@@ -52,10 +52,17 @@
|
|
|
52
52
|
|
|
53
53
|
/* -------------------------------------------------------------
|
|
54
54
|
* 🛡️ [CSS Defensive Shield] 容器级样式防御屏障
|
|
55
|
-
* 彻底切断外部宿主全局样式(如 button, svg
|
|
55
|
+
* 彻底切断外部宿主全局样式(如 * { font-family: ... !important }, button, svg 等)的侵入
|
|
56
56
|
* ------------------------------------------------------------- */
|
|
57
|
+
.jvs-ppt-editor-root,
|
|
58
|
+
.sidebar-select-popper,
|
|
59
|
+
.autofit-popover-panel,
|
|
60
|
+
.text-popover-popper,
|
|
61
|
+
.style-builder-dialog {
|
|
62
|
+
font-family: 'SourceHanSansCN', var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif) !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
57
65
|
.jvs-ppt-editor-root {
|
|
58
|
-
font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
|
|
59
66
|
font-size: 14px !important;
|
|
60
67
|
line-height: 1.5 !important;
|
|
61
68
|
color: #0f172a !important;
|
|
@@ -72,6 +79,60 @@
|
|
|
72
79
|
box-sizing: border-box;
|
|
73
80
|
}
|
|
74
81
|
|
|
82
|
+
/* 强制所有子孙节点恢复标准 CSS 字体继承链,抵御宿主 * { font-family: ... !important } (权重 0,1,0 > 0,0,0) */
|
|
83
|
+
.jvs-ppt-editor-root *,
|
|
84
|
+
.sidebar-select-popper *,
|
|
85
|
+
.autofit-popover-panel *,
|
|
86
|
+
.text-popover-popper *,
|
|
87
|
+
.style-builder-dialog * {
|
|
88
|
+
font-family: inherit !important;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* 保护 iconfont 字体图标不被 inherit 覆盖 */
|
|
92
|
+
.jvs-ppt-editor-root .iconfont,
|
|
93
|
+
.sidebar-select-popper .iconfont,
|
|
94
|
+
.autofit-popover-panel .iconfont,
|
|
95
|
+
.style-builder-dialog .iconfont {
|
|
96
|
+
font-family: "iconfont" !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* 画布与放映视图默认继承幻灯片主题字体变量 --theme-font-family */
|
|
100
|
+
.jvs-ppt-editor-root .main-slide,
|
|
101
|
+
.jvs-ppt-editor-root .presentation-mode {
|
|
102
|
+
font-family: var(--theme-font-family, 'SourceHanSansCN', sans-serif) !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* 显式指定字体的节点通过 --ppt-font-family 变量穿透并向下继承 (权重 0,2,0 / 0,3,0 > 0,1,0) */
|
|
106
|
+
.jvs-ppt-editor-root [style*="--ppt-font-family"],
|
|
107
|
+
.jvs-ppt-editor-root .main-slide [style*="--ppt-font-family"],
|
|
108
|
+
.jvs-ppt-editor-root .slide-thumb [style*="--ppt-font-family"],
|
|
109
|
+
.jvs-ppt-editor-root .presentation-mode [style*="--ppt-font-family"],
|
|
110
|
+
.sidebar-select-popper [style*="--ppt-font-family"],
|
|
111
|
+
.autofit-popover-panel [style*="--ppt-font-family"],
|
|
112
|
+
.text-popover-popper [style*="--ppt-font-family"],
|
|
113
|
+
.style-builder-dialog [style*="--ppt-font-family"] {
|
|
114
|
+
font-family: var(--ppt-font-family) !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* 保护画布富文本语义标签(b/strong/i/em)不被宿主 CSS Reset 重置 */
|
|
118
|
+
.jvs-ppt-editor-root .main-slide b,
|
|
119
|
+
.jvs-ppt-editor-root .main-slide strong,
|
|
120
|
+
.jvs-ppt-editor-root .slide-thumb b,
|
|
121
|
+
.jvs-ppt-editor-root .slide-thumb strong,
|
|
122
|
+
.jvs-ppt-editor-root .presentation-mode b,
|
|
123
|
+
.jvs-ppt-editor-root .presentation-mode strong {
|
|
124
|
+
font-weight: bold !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.jvs-ppt-editor-root .main-slide i,
|
|
128
|
+
.jvs-ppt-editor-root .main-slide em,
|
|
129
|
+
.jvs-ppt-editor-root .slide-thumb i,
|
|
130
|
+
.jvs-ppt-editor-root .slide-thumb em,
|
|
131
|
+
.jvs-ppt-editor-root .presentation-mode i,
|
|
132
|
+
.jvs-ppt-editor-root .presentation-mode em {
|
|
133
|
+
font-style: italic !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
75
136
|
/* 强行重置外部宿主全局 button 样式侵入 */
|
|
76
137
|
.jvs-ppt-editor-root button {
|
|
77
138
|
font-family: inherit;
|
package/src/utils/textTypes.ts
CHANGED