1 Star 0 Fork 15

zws0620 / vue-kityminder-editor

forked from aipaw / vue-kityminder-editor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
清风徐徐来 提交于 2019-09-11 15:55 . 增加保存按钮

vue-kityminder-gg

use

npm install vue-kityminder-gg --save

main.js

import kityminder from 'vue-kityminder-gg'

Vue.use(kityminder)

##examples
<minder
	ref="minder"
	@exportData="exportData"
	AccessKey="cTVaSHuahYgy-4Qvbo5LewAd5Add5625w2LSuF_5"
	SecretKey="ZEJvO2-zNNE07p8DpPIBtyejt_BYf2SxZ7pbsMR7"
	Domain="http://puo3hd5oc.bkt.clouddn.com"
	scope="jm"
	:importData="importData"
	@saveData="saveData"
></minder>

##解说
export default {
	data() {
		return {
			importData: {//数据结构
				data: { text: 'Design project', id: 2 },
				children: [
					{
						data: { text: 'Designsy', id: 3 },
						children: [
							{
								data: { text: 'Designsy', id: 4 },
								children: [{ data: { text: 'Designsy', id: 5 } }, { data: { text: 'Designsy', id: 5 } }, { data: { text: 'Designsy', id: 5 } }]
							},
							{ data: { text: 'Designsy', id: 5 } },
							{ data: { text: 'Designsy', id: 62 } },
							{ data: { text: 'Designsy', id: 73 } },
							{ data: { text: 'Designsy', id: 84 } }
						]
					},
					{ data: { text: 'Designsy', id: 9 } },
					{ data: { text: 'Designsy', id: 102 } },
					{ data: { text: 'Designsy', id: 113 } },
					{ data: { text: 'Designsy', id: 124 } }
				]
			}
		};
	},
	methods: {
		exportData(data) {//变化时返回数据
			console.lo保存按钮g(data);
		},
		saveData(data){ //
			
		}
	}
}
1
https://gitee.com/zws0620/vue-kityminder-editor.git
git@gitee.com:zws0620/vue-kityminder-editor.git
zws0620
vue-kityminder-editor
vue-kityminder-editor
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891