jvs-ppt-ui 0.0.26 → 0.0.28

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.
@@ -60,6 +60,31 @@ const pageSize = 20
60
60
  const reachEnd = ref(false)
61
61
  const assetList = ref<MaterialItem[]>([])
62
62
  const fileInputRef = ref<HTMLInputElement | null>(null)
63
+ // 记录图片加载状态:0/undefined=默认, 1=回退尝试url, 2=加载失败展示默认占位图
64
+ const imageLoadState = ref<Record<string, number>>({})
65
+
66
+ function getAssetImageSrc(item: MaterialItem): string {
67
+ const state = imageLoadState.value[item.id] || 0
68
+ if (state === 1 && item.url && item.url !== item.previewUrl) {
69
+ return item.url
70
+ }
71
+ return item.previewUrl || item.url || ''
72
+ }
73
+
74
+ function isAssetImageBroken(item: MaterialItem): boolean {
75
+ const src = item.previewUrl || item.url || ''
76
+ if (!src) return true
77
+ return (imageLoadState.value[item.id] || 0) >= 2
78
+ }
79
+
80
+ function handleAssetImageError(item: MaterialItem) {
81
+ const cur = imageLoadState.value[item.id] || 0
82
+ if (cur === 0 && item.url && item.previewUrl && item.url !== item.previewUrl) {
83
+ imageLoadState.value = { ...imageLoadState.value, [item.id]: 1 }
84
+ } else {
85
+ imageLoadState.value = { ...imageLoadState.value, [item.id]: 2 }
86
+ }
87
+ }
63
88
 
64
89
  const PROJECT_COLORS = ['#3b82f6', '#10b981', '#8b5cf6', '#f59e0b', '#ec4899']
65
90
 
@@ -864,12 +889,24 @@ defineExpose({
864
889
  :alt="item.title"
865
890
  class="mine-card-media"
866
891
  />
892
+ <div
893
+ v-else-if="isAssetImageBroken(item)"
894
+ class="mine-card-placeholder"
895
+ >
896
+ <svg viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
897
+ <rect x="3" y="3" width="18" height="18" rx="2.5" ry="2.5" />
898
+ <circle cx="8.5" cy="8.5" r="1.5" />
899
+ <polyline points="21 15 16 10 5 21" />
900
+ </svg>
901
+ <span class="placeholder-tip">图片已失效</span>
902
+ </div>
867
903
  <img
868
904
  v-else
869
- :src="item.previewUrl || item.url"
870
- :alt="item.title"
905
+ :src="getAssetImageSrc(item)"
906
+ alt=""
871
907
  loading="lazy"
872
908
  class="mine-card-media"
909
+ @error="handleAssetImageError(item)"
873
910
  />
874
911
 
875
912
  <!-- 左上角来源徽标 -->
@@ -1349,13 +1386,34 @@ defineExpose({
1349
1386
  .mine-card-media {
1350
1387
  width: 100%;
1351
1388
  height: auto;
1352
- min-height: 64px;
1389
+ min-height: 88px;
1353
1390
  max-height: 210px;
1354
1391
  object-fit: cover;
1355
1392
  display: block;
1356
1393
  transition: transform 0.22s ease;
1357
1394
  }
1358
1395
 
1396
+ .mine-card-placeholder {
1397
+ width: 100%;
1398
+ min-height: 104px;
1399
+ padding: 20px 10px 28px;
1400
+ box-sizing: border-box;
1401
+ display: flex;
1402
+ flex-direction: column;
1403
+ align-items: center;
1404
+ justify-content: center;
1405
+ gap: 5px;
1406
+ color: #94a3b8;
1407
+ background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
1408
+ user-select: none;
1409
+
1410
+ .placeholder-tip {
1411
+ font-size: 11px;
1412
+ color: #94a3b8;
1413
+ line-height: 1.2;
1414
+ }
1415
+ }
1416
+
1359
1417
  .mine-card-badge {
1360
1418
  position: absolute;
1361
1419
  top: 6px;
@@ -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 ? `${match.label}(${match.enLabel})` : '正文文本(Normal Text)'
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="{ 'is-selected': (currentTextType === item.type) || (!currentTextType && item.type === 'normalText') }"
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
- <div style="display: flex; align-items: center; gap: 8px;">
409
- <span
410
- :style="{ color: item.badgeColor, backgroundColor: item.badgeBg, fontSize: '10px', padding: '1px 6px', borderRadius: '4px', fontWeight: 600, minWidth: '36px', textAlign: 'center' }">{{
411
- item.tag }}</span>
412
- <span class="autofit-item-label">{{ item.label }}({{ item.enLabel }})</span>
413
- </div>
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*(?:&quot;|&#34;|[^;"])+;?\s*/gi, '')
5831
5833
  // Font-family values may contain double quotes written as HTML entities
5832
5834
  // (&quot;) — 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 = html.replace(/font-family\s*:\s*((?:&quot;|&#34;|[^;"])+)/gi, (_, raw) => {
5835
- const fontStr = raw.trim()
5836
+ let processed = cleaned.replace(/font-family\s*:\s*((?:&quot;|&#34;|[^;"])+)/gi, (_, raw) => {
5837
+ const fontStr = raw.replace(/\s*!important\s*/gi, '').trim()
5836
5838
  const font = fontStr.replace(/&quot;|&#34;/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
- return `font-family: ${fontStr.replace(/&quot;|&#34;/gi, "'")}`
5840
- }
5841
- if (font === '默认字体' || font === 'SourceHanSansCN' || font === '微软雅黑' || font === 'Microsoft YaHei') {
5842
- return "font-family: 'SourceHanSansCN', sans-serif"
5843
- }
5844
- const isSerif = /宋|书局|明朝|楷|仿宋|serif|times|georgia|minion|garamond|cambria|bodoni|didot/i.test(font)
5845
- if (isSerif) {
5846
- return `font-family: '${font}', 'Source Han Serif SC', 'Songti SC', 'SimSun', 'STSong', serif`
5842
+ resolved = fontStr.replace(/&quot;|&#34;/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: '${font}', 'SourceHanSansCN', sans-serif`
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
- // 自动打入所有依赖样式与图标库,宿主无需在 index.html 额外引入 iconfont 或 element-plus 样式
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, *, line-height 等)的侵入
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;
@@ -84,7 +84,7 @@ export const TEXT_TYPE_CONFIGS: Record<SlideTextType, TextTypeConfig> = {
84
84
  },
85
85
  smallText: {
86
86
  type: 'smallText',
87
- label: '小字 / 注释',
87
+ label: '小字/注释',
88
88
  enLabel: 'Small Text',
89
89
  tag: 'Small',
90
90
  defaultFontSize: 12,