vue-minder-viewer

1.0.1 • Public • Published

Vue-MindEditor based on fex-team/kityminder-core

该项目是参考 vue-mindeditor 以及 kityminder-editor 源码,基于 kityminder-core 实现

developing

功能完善中,之后会完善api及文档。。。

install

npm install vue-minder-viewer --save

Usage

import vueMinderEditor from 'vue-minder-viewer'
import Vue from 'vue'
Vue.use(vueMinderEditor)

component

<template>
  <div>
    <minder-editor :progress-enable="false" :import-json="importJson"/>
  </div>
</template>

<script>
import minderEditor from '../../dist/static/js/vueMinderEditor'
import vue from 'vue'
vue.use(minderEditor);
export default {
  name: "test-plugin",
  data() {
    return {
      importJson: {
        "root": {
          "data": {
            "text": "test222"
          },
          "children": [
            { "data": { "text": "地图aa" } },
            { "data": { "text": "百科aa","expandState":"collapse"}}
          ]
        },
        "template":"default"
      }
    }
  }
}
</script>

Build Setup

# install npm dependencies
    npm install

# serve with hot reload at localhost:8088
    npm run dev

# build for plugin with minification
    npm run build

# License
    BSD-3-Clause License

Readme

Keywords

none

Package Sidebar

Install

npm i vue-minder-viewer

Weekly Downloads

2

Version

1.0.1

License

none

Unpacked Size

1.55 MB

Total Files

96

Last publish

Collaborators

  • chenxiaoxia