mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
750 B
750 B
layout |
---|
templateLayout |
<template>
<Tree :data="data2" :load-data="loadData"></Tree>
</template>
<script>
export default {
data(){
return {
data2: [{
name: 'parent',
children: []
}],
}
},
methods: {
loadData(item, callback) {
setTimeout(() => {
const data = [
{
name: 'children',
children: []
},
{
name: 'children',
children: []
}
];
callback(data);
}, 1000);
},
}
}
</script>