代码拉取完成,页面将自动刷新
npm install vue-kityminder-gg --save
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){ //
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。