diff --git a/src/packages/components/Informations/Mores/Iframe/config.ts b/src/packages/components/Informations/Mores/Iframe/config.ts new file mode 100644 index 00000000..67e50c92 --- /dev/null +++ b/src/packages/components/Informations/Mores/Iframe/config.ts @@ -0,0 +1,18 @@ +import { PublicConfigClass } from '@/packages/public' +import { CreateComponentType } from '@/packages/index.d' +import { IframeConfig } from './index' +import cloneDeep from 'lodash/cloneDeep' + +export const option = { + // 网站路径 + dataset: "https://www.bilibili.com/", + // 圆角 + borderRadius: 10 +} + +export default class Config extends PublicConfigClass implements CreateComponentType +{ + public key = IframeConfig.key + public chartConfig = cloneDeep(IframeConfig) + public option = cloneDeep(option) +} diff --git a/src/packages/components/Informations/Mores/Iframe/config.vue b/src/packages/components/Informations/Mores/Iframe/config.vue new file mode 100644 index 00000000..cb9562fd --- /dev/null +++ b/src/packages/components/Informations/Mores/Iframe/config.vue @@ -0,0 +1,36 @@ + + + diff --git a/src/packages/components/Informations/Mores/Iframe/index.ts b/src/packages/components/Informations/Mores/Iframe/index.ts new file mode 100644 index 00000000..1f7d2817 --- /dev/null +++ b/src/packages/components/Informations/Mores/Iframe/index.ts @@ -0,0 +1,15 @@ +import image from '@/assets/images/chart/informations/photo.png' +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' +import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d' + +export const IframeConfig: ConfigType = { + key: 'Iframe', + chartKey: 'VIframe', + conKey: 'VCIframe', + title: 'Iframe', + category: ChatCategoryEnum.MORE, + categoryName: ChatCategoryEnumName.MORE, + package: PackagesCategoryEnum.INFORMATIONS, + chartFrame: ChartFrameEnum.COMMON, + image +} diff --git a/src/packages/components/Informations/Mores/Iframe/index.vue b/src/packages/components/Informations/Mores/Iframe/index.vue new file mode 100644 index 00000000..4fb79275 --- /dev/null +++ b/src/packages/components/Informations/Mores/Iframe/index.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/packages/components/Informations/Mores/index.ts b/src/packages/components/Informations/Mores/index.ts index deddc1ac..e4c6d988 100644 --- a/src/packages/components/Informations/Mores/index.ts +++ b/src/packages/components/Informations/Mores/index.ts @@ -1,5 +1,6 @@ import { ImageConfig } from './Image/index' +import { IframeConfig } from './Iframe/index' import { VideoConfig } from './Video/index' import { WordCloudConfig } from './WordCloud/index' -export default [ImageConfig, VideoConfig, WordCloudConfig] +export default [ImageConfig, VideoConfig, WordCloudConfig,IframeConfig]