Comments (9)
@qriv 因为删除节点后 需要重新初始化数据 你可以参考下面提问默认展开节点 添加代码
from vue-tree-grid.
@huanglong6828 在操作展开树都时候,怎么把每个节点都expanded值都保存下来?
from vue-tree-grid.
@qriv 你可以在每次初始化的时候添加属性 告诉组件展开
from vue-tree-grid.
@huanglong6828 可能我没描述清楚吧。 1.我把 树节点都展开。2,点删除按钮删除其中一个节点,现在是整个树都折叠了,我想要保持我刚才操作都树节点还是展开的状态。
from vue-tree-grid.
@qriv 哦哦哦 明白了 这样解决 你删除了节点 不用重新给组件新数据,这样组件就不会重新渲染。 下次进入在重新渲染数据
from vue-tree-grid.
@huanglong6828 怎么才能把删除的行动态删掉。
from vue-tree-grid.
@huanglong6828 点击删除时,我后台请求删除数据。 前端也需要动态删掉那一行把。
from vue-tree-grid.
@qriv 在源码中添加删除功能 你只需要删除本地的数据 告诉你删除了这条数据 具体实现需要道友自己实现了
from vue-tree-grid.
👌
from vue-tree-grid.
Related Issues (20)
- treeGrid2.0是否支持原生render方法? HOT 5
- 大大 怎么默认全部展开啊 HOT 14
- 请问能不能格式化数据 HOT 1
- 请问一下,点击折叠按钮的时候,展开子类。这时候列宽会变化,感觉闪的不舒服。怎么解决
- 行点击事件无效
- 可以默认全部展开吗 怎么操作啊 HOT 1
- 行点击高亮 HOT 1
- 运行后白屏
- 我想新增节点,如何做? HOT 1
- 点击折叠按钮,表格的宽度会变动,如何解决?
- 貌似这个initItem这个数据格式有问题,不好控制啊~
- 怎么显示图片
- treeGrid2.0 默认全部展开 已解决 HOT 4
- 动态加载children的数据可以吗
- 树形列表的加号图标显示不出来,样式找不到! HOT 1
- 请问有没有封装原生JS,我是html页面CDN引入的iview的css、js。使用不到树形表格
- 我把2.0的单文件组件生成了一个可以直接引用的js使用,结果组件不被识别
- 可以拿到前一行的数据不?
- 引用了这个控件后,会导致其他的modal的控件(Cascade,option等)默认换行 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-tree-grid.