diff --git a/packages/design-core/vite.config.js b/packages/design-core/vite.config.js index 3d6c3a7d9..ed968b1cc 100644 --- a/packages/design-core/vite.config.js +++ b/packages/design-core/vite.config.js @@ -61,7 +61,7 @@ export default defineConfig({ } } }, - external: ['vue', 'monaco-editor', 'prettier', /@opentiny\/vue.*/, '@opentiny/tiny-engine-meta-register'] + external: ['vue', 'vue-i18n'] } } }) diff --git a/packages/renderer/src/RenderMain.js b/packages/renderer/src/RenderMain.js index a2a999a5e..e238ffb0d 100644 --- a/packages/renderer/src/RenderMain.js +++ b/packages/renderer/src/RenderMain.js @@ -53,7 +53,7 @@ const reset = (obj) => { const refreshKey = ref(0) const methods = {} const schema = reactive({}) -const state = shallowReactive({}) +const state = reactive({}) const bridge = {} const utils = {} const props = {} @@ -477,6 +477,7 @@ export const api = { getProps, setProps, getContext, + setContext, getNode, getRoot, setPagecss, diff --git a/packages/renderer/src/render.js b/packages/renderer/src/render.js index b8ced8674..ac03bf3b1 100644 --- a/packages/renderer/src/render.js +++ b/packages/renderer/src/render.js @@ -588,7 +588,9 @@ const getBindProps = (schema, scope) => { delete bindProps.className // 使画布中元素可拖拽 - bindProps.draggable = true + if (getDesignMode() === DESIGN_MODE.DESIGN) { + bindProps.draggable = true + } // 过滤在门户网站上配置的画布丢弃的属性 invalidity.forEach((prop) => delete bindProps[prop])