xiaoniezi / vue-tree Goto Github PK
View Code? Open in Web Editor NEWvue element-ui tree component expand
Home Page: https://xiaoniezi.github.io/2017-10-16/vue-ElementUI-tree-expand/
vue element-ui tree component expand
Home Page: https://xiaoniezi.github.io/2017-10-16/vue-ElementUI-tree-expand/
一个用点是maxexpandId,另一个是NODE_ID_START ?
优秀!
https://xiaoniezi.github.io/2017-10-16/vue-ElementUI-tree-expand/tree加入show-checkbox 复选框后,id不是95++了 而是0--了 添加一个是-1 正常是96
就是根节点是不展示 编辑和删除按钮的,其他的子节点都正常显示,我通过判断它的层级来隐藏,但是只有选中后才能获取到他的node节点来处理,而且效果也不太好,想问下您有没有什么好的思路或建议?谢谢!
大佬我拿到你这个组件了,可以用,现在我请求接口这块要怎么写的呀? 我请求到了后台的数据,然后怎么把数据渲染过来
//这是 api/js里面的
axios.post('接口').then(res=>{
//这要怎么写呀?
}).catch(error=>{
console.log(error)
})
小白 不懂的地方太多了,
你好请问怎么加文件夹形式的Tree
你好,使用demo代码slot_tree.vue,操作删除了省下面的市节点,Tree dom没有更新,数据this.setTree打印确实已经移除了。 请问一下是什么原因,谢谢~
在vue里自己造的假数据是可以正常编辑和删除的,但是调用了后端数据之后,可以正常显示,也可以删除,但就是点编辑的时候不出现输入框,看了一下idEdit已经变成了true,请问一下这是为什么呢?
我要设置点击节点名称展开节点,点击新增也可以新增节点,这种可以实现吗?
也不会报错 大概是什么原因·
slotTree.vue这个文件 代码不动 给el-tree这标签加个这个属性 show-checkbox
我现在有一个需求,需求的大部分功能您都实现了。大概是做一个类似vscode左侧的文件树,不同的是新增节点的时候在当前节点的子节点新增一个输入框,输入框的位置要始终显示在当前树的可视界面上。输入框失焦后,输入框消失,取而代之的是刚刚新建的节点。需求大概是这些。我在做的时候在新建输入框的定位思路上没有头绪。我不是伸手党,您给点思路就行哈~
当我要编辑回车的时候
@blur.stop="nodeEditPass(STORE,DATA,NODE)" @keyup.enter.stop.native="nodeEditPass(STORE,DATA,NODE)"
这个二个方法都执行了
麻烦你百忙中解答下
created () {
this.getPersonnel()
},
methods: {
getPersonnel () {
this.$http({
method: 'GET',
url: '/api/operator/department/tree',
headers: {
'X-Access-Token': 'cloudminds_admin'
}
}).then((res) => {
let result = res.data
if (result.code === 0) {
let arr = []
this.maxexpandId = result.maxexpandIds
this.non_maxexpandId = result.maxexpandIds
arr.push(result.data.children)
this.setTree = arr
}
})
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.