jvs-ppt-ui 0.0.22 → 0.0.23
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 +14058 -14044
- package/dist/lib/jvs-ppt-ui.umd.js +98 -98
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
- package/src/components/CanvasArea.vue +1 -0
- package/src/components/PptEditor.vue +9 -1
- package/src/components/TemplateGallery.vue +10 -3
- package/src/components/material/CreateMaterialPanel.vue +1 -1
- package/src/components/material/MyAssetsPanel.vue +1 -1
package/package.json
CHANGED
|
@@ -1959,6 +1959,7 @@ function handleWindowMouseDown(e: MouseEvent) {
|
|
|
1959
1959
|
target.closest('.formula-dialog') ||
|
|
1960
1960
|
target.closest('.el-dialog') ||
|
|
1961
1961
|
target.closest('.el-overlay') ||
|
|
1962
|
+
target.closest('.el-image-viewer__wrapper') ||
|
|
1962
1963
|
target.closest('.custom-fullscreen-preview-modal') ||
|
|
1963
1964
|
target.closest('.placeholder-action-popover') ||
|
|
1964
1965
|
target.closest('.material-drawer-container')
|
|
@@ -827,6 +827,14 @@ onBeforeUnmount(() => {
|
|
|
827
827
|
emitDeckNow()
|
|
828
828
|
})
|
|
829
829
|
|
|
830
|
+
// 阻止编辑器内部 img 点击事件冒泡到宿主容器(如 jvs-ai-ui chatBox 的全局图片灯箱监听)
|
|
831
|
+
function handleEditorRootClick(e: MouseEvent) {
|
|
832
|
+
const target = e.target as HTMLElement | null
|
|
833
|
+
if (target && (target.tagName === 'IMG' || target.closest('img'))) {
|
|
834
|
+
e.stopPropagation()
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
830
838
|
const editorApi: PptEditorApi = {
|
|
831
839
|
save,
|
|
832
840
|
getSaveData: () => getDeck(),
|
|
@@ -948,7 +956,7 @@ onMounted(async () => {
|
|
|
948
956
|
</script>
|
|
949
957
|
|
|
950
958
|
<template>
|
|
951
|
-
<div class="app-container jvs-ppt-editor-root" :class="{ 'is-readonly': readonly }">
|
|
959
|
+
<div class="app-container jvs-ppt-editor-root" :class="{ 'is-readonly': readonly }" @click="handleEditorRootClick">
|
|
952
960
|
<!-- Main top Navigation bar (支持完整 header 插槽替换或精细区域插槽定制) -->
|
|
953
961
|
<slot name="header" v-bind="headerSlotContext">
|
|
954
962
|
<Header ref="headerRef" :visible="showHeader" :show-menu="computedShowMenu" :toolbar-mode="computedToolbarMode" :slot-props="headerSlotContext">
|
|
@@ -894,6 +894,13 @@ function handleCloseDrawer() {
|
|
|
894
894
|
activeTab.value = null
|
|
895
895
|
}
|
|
896
896
|
|
|
897
|
+
function handleDrawerContainerClick(e: MouseEvent) {
|
|
898
|
+
const target = e.target as HTMLElement | null
|
|
899
|
+
if (target && (target.tagName === 'IMG' || target.closest('img'))) {
|
|
900
|
+
e.stopPropagation()
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
897
904
|
onMounted(() => {
|
|
898
905
|
fetchAllOverviewCategories()
|
|
899
906
|
window.addEventListener('keydown', handleKeydown)
|
|
@@ -912,7 +919,7 @@ watch([() => materialApiUrl?.value, () => materialPageApiUrl?.value, () => mater
|
|
|
912
919
|
</script>
|
|
913
920
|
|
|
914
921
|
<template>
|
|
915
|
-
<div class="material-drawer-container">
|
|
922
|
+
<div class="material-drawer-container" @click="handleDrawerContainerClick">
|
|
916
923
|
<!-- 未登录点击「我的素材/创建素材」时的顶部轻量胶囊提示 -->
|
|
917
924
|
<transition name="guest-toast-fade">
|
|
918
925
|
<div v-if="guestToastVisible" class="guest-auth-toast">
|
|
@@ -1073,7 +1080,7 @@ watch([() => materialApiUrl?.value, () => materialPageApiUrl?.value, () => mater
|
|
|
1073
1080
|
v-for="(item, idx) in overviewItemsMap[cat.key]"
|
|
1074
1081
|
:key="item.id || idx"
|
|
1075
1082
|
class="overview-thumb-card"
|
|
1076
|
-
@click="handleSelectMaterial(item)"
|
|
1083
|
+
@click.stop="handleSelectMaterial(item)"
|
|
1077
1084
|
>
|
|
1078
1085
|
<VideoCoverThumb
|
|
1079
1086
|
v-if="cat.subType === 'Videos' || isVideoMaterial(item) || isVideoUrl(getMaterialThumb(item))"
|
|
@@ -1213,7 +1220,7 @@ watch([() => materialApiUrl?.value, () => materialPageApiUrl?.value, () => mater
|
|
|
1213
1220
|
v-for="(item, idx) in colItems"
|
|
1214
1221
|
:key="item.id || idx"
|
|
1215
1222
|
class="detail-masonry-card"
|
|
1216
|
-
@click="handleSelectMaterial(item)"
|
|
1223
|
+
@click.stop="handleSelectMaterial(item)"
|
|
1217
1224
|
>
|
|
1218
1225
|
<VideoCoverThumb
|
|
1219
1226
|
v-if="filterParams.activeSubType === 'Videos' || isVideoMaterial(item) || isVideoUrl(getMaterialThumb(item))"
|
|
@@ -1174,7 +1174,7 @@ defineExpose({
|
|
|
1174
1174
|
v-for="resItem in generatedResults"
|
|
1175
1175
|
:key="resItem.id"
|
|
1176
1176
|
class="result-card"
|
|
1177
|
-
@click="emit('select', resItem)"
|
|
1177
|
+
@click.stop="emit('select', resItem)"
|
|
1178
1178
|
>
|
|
1179
1179
|
<VideoCoverThumb
|
|
1180
1180
|
v-if="resItem.type === 'video'"
|