dext7r / vue-amis-sdk

基于amis-editor封装的vue版本,支持vue2,vue3
https://github.com/h7ml/vue-amis-sdk-examples
Apache License 2.0
32 stars 4 forks source link
amis amis-editor amis-vue vue vue-amis vue-amis-editor vue-amis-sdk vuera

vue-amis-sdk

about

[![language](https://img.shields.io/github/languages/top/h7ml/vue-amis-sdk)](https://github.com/h7ml/vue-amis-sdk/search?l=css) [![last](https://img.shields.io/github/last-commit/h7ml/vue-amis-sdk.svg)](https://github.com/h7ml/vue-amis-sdk/commits) [![stars](https://img.shields.io/badge/Hosted-Vercel-brightgreen?style=flat&logo=Vercel)](https://amis.vercel.app/) [![amis](https://img.shields.io/badge/amis-1.9.0-red.svg)](https://www.npmjs.com/package/amis/v/1.9.0) [![amis-editor](https://img.shields.io/badge/amisEditor-4.1.0.20-red.svg)](https://www.npmjs.com/package/amis-editor/v/4.1.0-beta.20) npm ommit-activity package Npm Version Node Version
Install Size Type Support
Outdated Dep Vulnerablities License

Installation

yarn add vue-amis-sdk @fortawesome/fontawesome-free --save

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-sdk 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