Skip to content

Commit

Permalink
fix: remove props
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-wow committed Nov 11, 2024
1 parent 622f4ca commit c370fbf
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions packages/renderer/src/RenderMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,24 +397,6 @@ const setRenderer = (fn) => {
}

export default {
props: {
schema: {
type: Object,
default: () => ({})
},
utils: {
type: Object,
default: () => ({})
},
dataSource: {
type: Object,
default: () => ({})
},
globalState: {
type: Object,
default: () => ({})
}
},
setup() {
provide('rootSchema', schema)

Expand Down Expand Up @@ -443,13 +425,6 @@ export default {
deep: true
}
)

watchEffect(() => {
setUtils(props.utils)
setGlobalState(props.globalState)
setDataSourceMap(props.dataSource)
setSchema(props.schema)
})
},
render() {
return getRenderer().call(this)
Expand Down

0 comments on commit c370fbf

Please sign in to comment.