diff --git a/src/packages/components/Icons/Icon/index.ts b/src/packages/components/Icons/Icon/index.ts index 51023897..574b694c 100644 --- a/src/packages/components/Icons/Icon/index.ts +++ b/src/packages/components/Icons/Icon/index.ts @@ -9,6 +9,6 @@ export const IconConfig: ConfigType = { category: ChatCategoryEnum.COMMON, categoryName: ChatCategoryEnumName.COMMON, package: PackagesCategoryEnum.ICONS, - chartFrame: ChartFrameEnum.COMMON, + chartFrame: ChartFrameEnum.STATIC, image: 'icon.png' } diff --git a/src/packages/components/Photos/Private/index.ts b/src/packages/components/Photos/Private/index.ts index dcad0464..e4a65b6f 100644 --- a/src/packages/components/Photos/Private/index.ts +++ b/src/packages/components/Photos/Private/index.ts @@ -1,4 +1,4 @@ -import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d' +import { ChartFrameEnum, ConfigType, PackagesCategoryEnum } from '@/packages/index.d' import { ImageConfig } from '@/packages/components/Informations/Mores/Image/index' import { ChatCategoryEnum, ChatCategoryEnumName } from '../index.d' import { setLocalStorage, getLocalStorage, goDialog } from '@/utils' @@ -50,6 +50,7 @@ const addConfig = { category: ChatCategoryEnum.PRIVATE, categoryName: ChatCategoryEnumName.PRIVATE, package: PackagesCategoryEnum.PHOTOS, + chartFrame: ChartFrameEnum.STATIC, title: '点击上传图片', image: 'upload.png', redirectComponent: './components/Informations/Mores/Image', // 虚拟组件路径,尾部不跟 ‘/’,相对于 /packages/index.ts 文件的位置 @@ -67,6 +68,7 @@ const addConfig = { category: ChatCategoryEnum.PRIVATE, categoryName: ChatCategoryEnumName.PRIVATE, package: PackagesCategoryEnum.PHOTOS, + chartFrame: ChartFrameEnum.STATIC, title: e.fileName, image: e.url, dataset: e.url, diff --git a/src/packages/components/Photos/Share/index.ts b/src/packages/components/Photos/Share/index.ts index 113e29c5..2cb19ba6 100644 --- a/src/packages/components/Photos/Share/index.ts +++ b/src/packages/components/Photos/Share/index.ts @@ -1,4 +1,4 @@ -import { PackagesCategoryEnum } from '@/packages/index.d' +import { ChartFrameEnum, PackagesCategoryEnum } from '@/packages/index.d' import { ImageConfig } from '@/packages/components/Informations/Mores/Image/index' import { ChatCategoryEnum, ChatCategoryEnumName } from '../index.d' @@ -13,6 +13,7 @@ const photoConfigList = imageList.map(i => ({ category: ChatCategoryEnum.SHARE, categoryName: ChatCategoryEnumName.SHARE, package: PackagesCategoryEnum.PHOTOS, + chartFrame: ChartFrameEnum.STATIC, image: i.imageUrl, dataset: i.imageUrl, title: i.imageName, diff --git a/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue index edb05e82..6dea1e02 100644 --- a/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue +++ b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue @@ -100,6 +100,7 @@ const dblclickHandle = async (item: ConfigType) => { if (item.redirectComponent) { item.dataset && (newComponent.option.dataset = item.dataset) newComponent.chartConfig.title = item.title + newComponent.chartConfig.chartFrame = item.chartFrame } // 添加 chartEditStore.addComponentList(newComponent, false, true) diff --git a/src/views/chart/ContentCharts/components/ChartsSearch/index.vue b/src/views/chart/ContentCharts/components/ChartsSearch/index.vue index 38b713c7..f90536a8 100644 --- a/src/views/chart/ContentCharts/components/ChartsSearch/index.vue +++ b/src/views/chart/ContentCharts/components/ChartsSearch/index.vue @@ -161,6 +161,7 @@ const selectChartHandle = async (item: ConfigType) => { if (item.redirectComponent) { item.dataset && (newComponent.option.dataset = item.dataset) newComponent.chartConfig.title = item.title + newComponent.chartConfig.chartFrame = item.chartFrame } // 添加 chartEditStore.addComponentList(newComponent, false, true) diff --git a/src/views/chart/ContentEdit/hooks/useDrag.hook.ts b/src/views/chart/ContentEdit/hooks/useDrag.hook.ts index afcde9e0..2796f471 100644 --- a/src/views/chart/ContentEdit/hooks/useDrag.hook.ts +++ b/src/views/chart/ContentEdit/hooks/useDrag.hook.ts @@ -36,6 +36,7 @@ export const dragHandle = async (e: DragEvent) => { if (dropData.redirectComponent) { dropData.dataset && (newComponent.option.dataset = dropData.dataset) newComponent.chartConfig.title = dropData.title + newComponent.chartConfig.chartFrame = dropData.chartFrame } setComponentPosition(newComponent, e.offsetX - newComponent.attr.w / 2, e.offsetY - newComponent.attr.h / 2) diff --git a/src/views/chart/hooks/useSync.hook.ts b/src/views/chart/hooks/useSync.hook.ts index d197efef..b97fd4e5 100644 --- a/src/views/chart/hooks/useSync.hook.ts +++ b/src/views/chart/hooks/useSync.hook.ts @@ -135,6 +135,7 @@ export const useSync = () => { if (_componentInstance.chartConfig.redirectComponent) { _componentInstance.chartConfig.dataset && (newComponent.option.dataset = _componentInstance.chartConfig.dataset) newComponent.chartConfig.title = _componentInstance.chartConfig.title + newComponent.chartConfig.chartFrame = _componentInstance.chartConfig.chartFrame } if (callBack) { if (changeId) {