forked from opentiny/tiny-engine
fix: 手动更新画布key导致表格渲染出错 (#129)
This commit is contained in:
parent
699dc7b77f
commit
8474ddbc68
|
@ -680,8 +680,8 @@ export const setState = (state) => {
|
|||
getRenderer().setState(state)
|
||||
}
|
||||
|
||||
export const setUtils = (utils) => {
|
||||
getRenderer().setUtils(utils)
|
||||
export const setUtils = (utils, clear, isForceRefresh) => {
|
||||
getRenderer().setUtils(utils, clear, isForceRefresh)
|
||||
}
|
||||
|
||||
export const deleteState = (variable) => {
|
||||
|
|
|
@ -111,11 +111,15 @@ const create = () => {
|
|||
|
||||
document.body.remove()
|
||||
document.body = document.createElement('body')
|
||||
const app = document.createElement('div')
|
||||
app.setAttribute('id', 'app')
|
||||
document.body.appendChild(app)
|
||||
|
||||
dispatch('canvasReady', { detail: renderer })
|
||||
|
||||
App = Vue.createApp(Main).use(TinyI18nHost).provide(I18nInjectionKey, TinyI18nHost)
|
||||
App.config.globalProperties.lowcodeConfig = window.parent.TinyGlobalConfig
|
||||
App.mount(document.body)
|
||||
App.mount(document.querySelector('#app'))
|
||||
|
||||
new ResizeObserver(() => {
|
||||
dispatch('canvasResize')
|
||||
|
|
Loading…
Reference in New Issue