|
@@ -366,21 +366,6 @@ interface ContentItem {
|
|
|
id?: string
|
|
id?: string
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const addContent2 = (data: ContentItem, type: number) => {
|
|
|
|
|
- // contentList.value.push(data)
|
|
|
|
|
- if (type === 2) {
|
|
|
|
|
- const elements = currentSlide.value?.elements || []
|
|
|
|
|
- const frameElement = elements.find((el: any) => el.type === 'frame' && (el.toolType === 45 || el.toolType === 15))
|
|
|
|
|
- if (frameElement) {
|
|
|
|
|
- slidesStore.updateElement({
|
|
|
|
|
- id: frameElement.id,
|
|
|
|
|
- props: { url: data.url }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-Object.assign(window, { addContent2 })
|
|
|
|
|
|
|
|
|
|
// 确认对话框状态
|
|
// 确认对话框状态
|
|
|
const confirmDialogVisible = ref(false)
|
|
const confirmDialogVisible = ref(false)
|