1.0.1 • Published 23 days ago

@johnsoncn/vue-amis-sdk v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
23 days ago

vue-amis-sdk

about

  • This project is based on vuera and mainly focuses on the encapsulation of amis-editor
  • You can edit at this. The proxy mode is enabled. You can copy the JSON of amis. It supports direct rendering

language last stars amis amis-editor

Installation

npm i @johnsoncn/vue-amis-sdk

Quick Start

App.vue

<template>
  <div id='app'>
    <vue-amis-sdk
      id='editorName'
      theme='cxd'
      className='is-fixed'
      :preview='isPreview'
      :isMobile='isMobile'
      @onChange='onChange'
      :value='schema'
    />
  </div>
</template>
<script>
import "amis-ui/lib/themes/cxd.css";
import "amis-ui/lib/themes/ang.css";
import "amis-editor/dist/style.css";
export default {
  name: 'App',
  data() {
    return {
      isPreview: false,
      isMobile: false,
      schema: {}
    }
  },
  methods: {
    onChange(e) {
      console.log(e)
    }
  }
}
</script>

version

vue-amis-sdkamisamis-editor
amis-editoramisamis-editor
amis-editoramisamis-editor
amis-editoramisamis-editor
amis-editoramisamis-editor
amis-editoramisamis-editor
amis-editoramisamis-editor

repo