vue-minder-editor-plus-test
v2.0.7
Published
A Vue2 project
Downloads
4
Readme
Vue-MindEditor based on fex-team/kityminder-core
该项目是参考 vue-mindeditor 以及 kityminder-editor 源码,基于 kityminder-core 实现
install
npm install vue-minder-editor-plus --save
Usage
import vueMinderEditor from 'vue-minder-editor-plus'
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