@rock-hammer/craft-editor

0.0.92 • Public • Published

@rock-hammer/craft-editor

Install

pnpm install @rock-hammer/craft-editor

Usage

import { CraftEditor, dataMigrateForEditor } from '@rock-hammer/craft-editor'
import { ref } from 'vue'

import json from './data.json'

const data = ref(dataMigrateForEditor(json))
<CraftEditor v-model:data="data">
  <template #box="{ id, name, box }">
    {{ id }} / {{ name }}: {{ box.width }} x {{ box.height }}
  </template>
</CraftEditor>

Readme

Keywords

none

Package Sidebar

Install

npm i @rock-hammer/craft-editor

Weekly Downloads

5

Version

0.0.92

License

none

Unpacked Size

337 kB

Total Files

7

Last publish

Collaborators

  • li-yang