Skip to content

dgiot/dgiot_vue_amis

Repository files navigation

dgiot_vue_amis

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

npm ommit-activity package Npm Version Node Version
Install Size Type Support
Outdated Dep Vulnerablities License

Installation

yarn add dgiot_vue_amis @fortawesome/fontawesome-free --save

Quick Start

<template>
  <div id='app'>
    <dgiot_vue_amis
      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

dgiot_vue_amis amis amis-editor
amis-editor amis amis-editor
amis-editor amis amis-editor
amis-editor amis amis-editor
amis-editor amis amis-editor
amis-editor amis amis-editor
amis-editor amis amis-editor

repo