mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
chore: pptxtojson 升级
This commit is contained in:
parent
bc6a51e5c7
commit
6df1b8d856
14
package-lock.json
generated
14
package-lock.json
generated
@ -23,7 +23,7 @@
|
|||||||
"number-precision": "^1.6.0",
|
"number-precision": "^1.6.0",
|
||||||
"pinia": "^2.1.7",
|
"pinia": "^2.1.7",
|
||||||
"pptxgenjs": "^3.12.0",
|
"pptxgenjs": "^3.12.0",
|
||||||
"pptxtojson": "^1.0.3",
|
"pptxtojson": "^1.1.0",
|
||||||
"prosemirror-commands": "^1.6.0",
|
"prosemirror-commands": "^1.6.0",
|
||||||
"prosemirror-dropcursor": "^1.8.1",
|
"prosemirror-dropcursor": "^1.8.1",
|
||||||
"prosemirror-gapcursor": "^1.3.2",
|
"prosemirror-gapcursor": "^1.3.2",
|
||||||
@ -4091,9 +4091,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/pptxtojson": {
|
"node_modules/pptxtojson": {
|
||||||
"version": "1.0.3",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-1.0.3.tgz",
|
"resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-1.1.0.tgz",
|
||||||
"integrity": "sha512-Q7tvtqFUm9x4CGRv/BUt69yeJS1RtIKBuh/G/gpxdtSbm7zAVeTPbPRMS+1hfliVXhzYJDgbg4zc8F4hwmq71A==",
|
"integrity": "sha512-JJdk9vLwYq+p9T33cqT3O24CDK+0EU4XsNR1kGJxtSnO4QWGVmlkvX1Mmd2me4tSdGEeRX35+ljerwL/PFJabw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"tinycolor2": "1.6.0",
|
"tinycolor2": "1.6.0",
|
||||||
@ -8246,9 +8246,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pptxtojson": {
|
"pptxtojson": {
|
||||||
"version": "1.0.3",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-1.0.3.tgz",
|
"resolved": "https://registry.npmmirror.com/pptxtojson/-/pptxtojson-1.1.0.tgz",
|
||||||
"integrity": "sha512-Q7tvtqFUm9x4CGRv/BUt69yeJS1RtIKBuh/G/gpxdtSbm7zAVeTPbPRMS+1hfliVXhzYJDgbg4zc8F4hwmq71A==",
|
"integrity": "sha512-JJdk9vLwYq+p9T33cqT3O24CDK+0EU4XsNR1kGJxtSnO4QWGVmlkvX1Mmd2me4tSdGEeRX35+ljerwL/PFJabw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"tinycolor2": "1.6.0",
|
"tinycolor2": "1.6.0",
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
"number-precision": "^1.6.0",
|
"number-precision": "^1.6.0",
|
||||||
"pinia": "^2.1.7",
|
"pinia": "^2.1.7",
|
||||||
"pptxgenjs": "^3.12.0",
|
"pptxgenjs": "^3.12.0",
|
||||||
"pptxtojson": "^1.0.3",
|
"pptxtojson": "^1.1.0",
|
||||||
"prosemirror-commands": "^1.6.0",
|
"prosemirror-commands": "^1.6.0",
|
||||||
"prosemirror-dropcursor": "^1.8.1",
|
"prosemirror-dropcursor": "^1.8.1",
|
||||||
"prosemirror-gapcursor": "^1.3.2",
|
"prosemirror-gapcursor": "^1.3.2",
|
||||||
|
@ -160,6 +160,7 @@ export default () => {
|
|||||||
id: nanoid(10),
|
id: nanoid(10),
|
||||||
elements: [],
|
elements: [],
|
||||||
background,
|
background,
|
||||||
|
remark: item.note || '',
|
||||||
}
|
}
|
||||||
|
|
||||||
const parseElements = (elements: Element[]) => {
|
const parseElements = (elements: Element[]) => {
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
<span>演讲者备注</span>
|
<span>演讲者备注</span>
|
||||||
<span>P {{slideIndex + 1}} / {{slides.length}}</span>
|
<span>P {{slideIndex + 1}} / {{slides.length}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="remark-content ProseMirror-static" :style="{ fontSize: remarkFontSize + 'px' }" v-html="currentSlideRemark"></div>
|
<div class="remark-content ProseMirror-static" :class="{ 'empty': !currentSlideRemark }" :style="{ fontSize: remarkFontSize + 'px' }" v-html="currentSlideRemark || '无备注'"></div>
|
||||||
<div class="remark-scale">
|
<div class="remark-scale">
|
||||||
<div :class="['scale-btn', { 'disable': remarkFontSize === 12 }]" @click="setRemarkFontSize(remarkFontSize - 2)"><IconMinus /></div>
|
<div :class="['scale-btn', { 'disable': remarkFontSize === 12 }]" @click="setRemarkFontSize(remarkFontSize - 2)"><IconMinus /></div>
|
||||||
<div :class="['scale-btn', { 'disable': remarkFontSize === 40 }]" @click="setRemarkFontSize(remarkFontSize + 2)"><IconPlus /></div>
|
<div :class="['scale-btn', { 'disable': remarkFontSize === 40 }]" @click="setRemarkFontSize(remarkFontSize + 2)"><IconPlus /></div>
|
||||||
@ -125,7 +125,8 @@ const { fullscreenState, manualExitFullscreen } = useFullscreen()
|
|||||||
|
|
||||||
const remarkFontSize = ref(16)
|
const remarkFontSize = ref(16)
|
||||||
const currentSlideRemark = computed(() => {
|
const currentSlideRemark = computed(() => {
|
||||||
return parseText2Paragraphs(currentSlide.value.remark || '无备注')
|
if (!currentSlide.value.remark) return ''
|
||||||
|
return parseText2Paragraphs(currentSlide.value.remark)
|
||||||
})
|
})
|
||||||
|
|
||||||
const handleMousewheelThumbnails = (e: WheelEvent) => {
|
const handleMousewheelThumbnails = (e: WheelEvent) => {
|
||||||
@ -297,6 +298,11 @@ const contextmenus = (): ContextmenuItem[] => {
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
@include overflow-overlay();
|
@include overflow-overlay();
|
||||||
|
|
||||||
|
&.empty {
|
||||||
|
color: #999;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.remark-scale {
|
.remark-scale {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user