|
@@ -6,6 +6,7 @@ import type { ComponentLibraryItem, Content } from './types'
|
|
import { MarkdownPlugin } from '/@/components/markdown/type/markdown'
|
|
import { MarkdownPlugin } from '/@/components/markdown/type/markdown'
|
|
import EChartsPlugin from '/@/components/markdown/plugins/echarts'
|
|
import EChartsPlugin from '/@/components/markdown/plugins/echarts'
|
|
import VueCharts from '/@/components/markdown/plugins/impl/VueCharts.vue'
|
|
import VueCharts from '/@/components/markdown/plugins/impl/VueCharts.vue'
|
|
|
|
+import VueStructData from '/@/components/markdown/plugins/impl/VueStructData.vue'
|
|
|
|
|
|
const plugin: Array<MarkdownPlugin<any>> = [EChartsPlugin()]
|
|
const plugin: Array<MarkdownPlugin<any>> = [EChartsPlugin()]
|
|
|
|
|
|
@@ -91,6 +92,7 @@ const openPreview = (component: any) => {
|
|
class="preview-content"
|
|
class="preview-content"
|
|
/>
|
|
/>
|
|
<vue-charts style="width: 100%;height: 200px" :data="component.data" v-if="component.type === 'echarts'"/>
|
|
<vue-charts style="width: 100%;height: 200px" :data="component.data" v-if="component.type === 'echarts'"/>
|
|
|
|
+ <vue-struct-data :uuid="component.data" v-if="component.type === 'structdata'" refresh/>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="component-actions">
|
|
<div class="component-actions">
|
|
@@ -143,6 +145,7 @@ const openPreview = (component: any) => {
|
|
:plugins="plugin"
|
|
:plugins="plugin"
|
|
class="full-preview-content"
|
|
class="full-preview-content"
|
|
/>
|
|
/>
|
|
|
|
+ <vue-struct-data :uuid="previewComponent.data" v-if="previewComponent.type === 'structdata'" refresh/>
|
|
</div>
|
|
</div>
|
|
<template #footer>
|
|
<template #footer>
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|