diff --git a/package.json b/package.json index acb29d5..814fd10 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "nprogress": "^1.0.0-1", "qrcode": "^1.4.4", "qs": "^6.10.1", - "vant": "^3.1.2", + "vant": "3.1.2", "vue": "3.1.4", "vue-router": "^4.0.10", "vuedraggable": "^4.0.3", diff --git a/preview/views/comp-render.tsx b/preview/views/comp-render.tsx index b2af262..29bdde9 100644 --- a/preview/views/comp-render.tsx +++ b/preview/views/comp-render.tsx @@ -1,13 +1,14 @@ /* * @Author: 卜启缘 * @Date: 2021-05-04 05:36:58 - * @LastEditTime: 2021-06-25 08:47:18 + * @LastEditTime: 2021-07-04 17:21:34 * @LastEditors: 卜启缘 * @Description: * @FilePath: \vite-vue3-lowcode\preview\views\comp-render.tsx */ import { defineComponent, PropType } from 'vue' import type { VisualEditorBlockData, VisualEditorConfig } from '@/visual-editor/visual-editor.utils' +import { visualConfig } from '@/visual.config' export default defineComponent({ name: 'CompRender', @@ -15,15 +16,11 @@ export default defineComponent({ element: { type: Object as PropType, default: () => ({}) - }, - config: { - type: Object as PropType, - default: () => ({}) } }, setup(props) { return () => - props.config.componentMap[props.element.componentKey].render({ + visualConfig.componentMap[props.element.componentKey].render({ size: {}, props: props.element.props || {}, model: {}, diff --git a/preview/views/preview.vue b/preview/views/preview.vue index f5fd4d1..0f681c5 100644 --- a/preview/views/preview.vue +++ b/preview/views/preview.vue @@ -1,21 +1,21 @@ diff --git a/src/visual-editor/components/left-aside/components/data-source/data-fetch.vue b/src/visual-editor/components/left-aside/components/data-source/data-fetch.vue index d5ec3a6..0b6ae32 100644 --- a/src/visual-editor/components/left-aside/components/data-source/data-fetch.vue +++ b/src/visual-editor/components/left-aside/components/data-source/data-fetch.vue @@ -1,7 +1,7 @@