@tmagic/tmagic-form-runtime
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

TMagicFormRuntime

TMagicFormRuntime 基于@tmagic/form的编辑器runtime

环境准备

先基于tmagic-editor将编辑器搭建起来

按住依赖

pnpm add @tmagic/tmagic-form-runtime
<TMagicEditor
  :component-group-list="componentGroupList"
  :props-configs="propsConfigs"
  :render="render"
  :can-select="canSelect"
  :disabled-page-fragment="true"
  :stage-rect="{ width: 'calc(100% - 70px)', height: '100%' }"
  :moveable-options="{ resizable: false }"

  ...
>
</TMagicEditor>
import {
  canSelect,
  COMPONENT_GROUP_LIST as componentGroupList,
  propsConfigs,
  useRuntime,
} from '@tmagic/tmagic-form-runtime';

const { render } = useRuntime();

Readme

Keywords

none

Package Sidebar

Install

npm i @tmagic/tmagic-form-runtime

Weekly Downloads

30

Version

1.0.9

License

Apache-2.0

Unpacked Size

335 kB

Total Files

32

Last publish

Collaborators

  • jia000