-
-
- updateTableCells(data)"
- />
-
\ No newline at end of file
diff --git a/src/views/Editor/Canvas/Operate/index.vue b/src/views/Editor/Canvas/Operate/index.vue
index 3ad755b..0a899f7 100644
--- a/src/views/Editor/Canvas/Operate/index.vue
+++ b/src/views/Editor/Canvas/Operate/index.vue
@@ -41,6 +41,7 @@ import TextElementOperate from './TextElementOperate.vue'
import ShapeElementOperate from './ShapeElementOperate.vue'
import LineElementOperate from './LineElementOperate.vue'
import ChartElementOperate from './ChartElementOperate.vue'
+import TableElementOperate from './TableElementOperate.vue'
export default defineComponent({
name: 'operate',
@@ -91,6 +92,7 @@ export default defineComponent({
[ElementTypes.SHAPE]: ShapeElementOperate,
[ElementTypes.LINE]: LineElementOperate,
[ElementTypes.CHART]: ChartElementOperate,
+ [ElementTypes.TABLE]: TableElementOperate,
}
return elementTypeMap[props.elementInfo.type] || null
})
diff --git a/src/components/Chart.vue b/src/views/components/element/ChartElement/Chart.vue
similarity index 100%
rename from src/components/Chart.vue
rename to src/views/components/element/ChartElement/Chart.vue
diff --git a/src/views/components/element/ChartElement/ScreenChartElement.vue b/src/views/components/element/ChartElement/ScreenChartElement.vue
index bf67df7..ae173d1 100644
--- a/src/views/components/element/ChartElement/ScreenChartElement.vue
+++ b/src/views/components/element/ChartElement/ScreenChartElement.vue
@@ -36,7 +36,7 @@ import { defineComponent, PropType } from 'vue'
import { PPTChartElement } from '@/types/slides'
import ElementOutline from '@/views/components/element/ElementOutline.vue'
-import Chart from '@/components/Chart.vue'
+import Chart from './Chart.vue'
export default defineComponent({
name: 'screen-element-chart',
diff --git a/src/views/components/element/ChartElement/index.vue b/src/views/components/element/ChartElement/index.vue
index 51b78f4..5434ee4 100644
--- a/src/views/components/element/ChartElement/index.vue
+++ b/src/views/components/element/ChartElement/index.vue
@@ -40,7 +40,7 @@ import { PPTChartElement } from '@/types/slides'
import { ContextmenuItem } from '@/components/Contextmenu/types'
import ElementOutline from '@/views/components/element/ElementOutline.vue'
-import Chart from '@/components/Chart.vue'
+import Chart from './Chart.vue'
export default defineComponent({
name: 'editable-element-chart',
diff --git a/src/components/EditableDiv.vue b/src/views/components/element/TableElement/EditableDiv.vue
similarity index 100%
rename from src/components/EditableDiv.vue
rename to src/views/components/element/TableElement/EditableDiv.vue
diff --git a/src/components/EditableTable.vue b/src/views/components/element/TableElement/EditableTable.vue
similarity index 99%
rename from src/components/EditableTable.vue
rename to src/views/components/element/TableElement/EditableTable.vue
index b28e379..ed8f4d0 100644
--- a/src/components/EditableTable.vue
+++ b/src/views/components/element/TableElement/EditableTable.vue
@@ -56,8 +56,8 @@
+
+