diff --git a/docs/guide/tutorial/hello-world.md b/docs/guide/tutorial/hello-world.md index 9a9ecd864..b6b2fa7c2 100644 --- a/docs/guide/tutorial/hello-world.md +++ b/docs/guide/tutorial/hello-world.md @@ -51,7 +51,7 @@ cd hello-world ## 添加依赖 ```bash -npm install --save @tmagic/editor @tmagic/form @tmagic/stage @tmagic/design @tmagic/element-plus-adapter element-plus +npm install --save @tmagic/editor @tmagic/element-plus-adapter element-plus ``` ## 注册组件 @@ -61,25 +61,19 @@ npm install --save @tmagic/editor @tmagic/form @tmagic/stage @tmagic/design @tma ```ts import 'element-plus/dist/index.css'; import '@tmagic/editor/dist/style.css'; -import '@tmagic/form/dist/style.css'; import { createApp } from 'vue'; import ElementPlus from 'element-plus'; -import TMagicDesign from '@tmagic/design'; import TMagicEditor from '@tmagic/editor'; import TMagicElementPlusAdapter from '@tmagic/element-plus-adapter'; -import TMagicForm from '@tmagic/form'; import App from './App.vue'; createApp(App) .use(ElementPlus) - .use(TMagicDesign, TMagicElementPlusAdapter) - .use(TMagicEditor) - .use(TMagicForm) + .use(TMagicEditor, TMagicElementPlusAdapter) .mount('#app'); - ``` ## 渲染编辑器 @@ -185,7 +179,7 @@ const render = () => { createApp( { - template: '

hello world

', + template: '

hello world

', props: ['config'], }, { @@ -249,7 +243,7 @@ const render = async ({ renderer }: StageCore) => { createApp( { - template: '
hello world
', + template: '
hello world
', props: ['config'], }, { diff --git a/docs/guide/tutorial/render.md b/docs/guide/tutorial/render.md index 6ba9ddf6e..f3fd54250 100644 --- a/docs/guide/tutorial/render.md +++ b/docs/guide/tutorial/render.md @@ -4,11 +4,9 @@ tmagic 提供了 vue3/vue2/react 三个版本的解析渲染组件,可以直 [@tmagic/ui](https://www.npmjs.com/package/@tmagic/ui) -[@tmagic/ui-vue2](https://www.npmjs.com/package/@tmagic/ui-vue2) - [@tmagic/ui-react](https://www.npmjs.com/package/@tmagic/ui-react) -接下来是以vue3为基础,来讲述如何实现一个[@tmagic/ui](https://www.npmjs.com/package/@tmagic/ui) +接下来是以vue为基础,来讲述如何实现一个[@tmagic/ui](https://www.npmjs.com/package/@tmagic/ui) ## 准备工作 @@ -71,7 +69,7 @@ app.component('hello-world', HelloWorld); ```vue