wwmz / wmztreeview Goto Github PK
View Code? Open in Web Editor NEW类似前端elementUI的树形控件,可自定义节点内容,支持无限极节点,可拖拽增删节点等等,非递归实现
License: MIT License
类似前端elementUI的树形控件,可自定义节点内容,支持无限极节点,可拖拽增删节点等等,非递归实现
License: MIT License
目前只有 添加单个子节点 的方法:
func append(_ currrentID: String, node param: WMZTreeParam) -> Bool
虽然可以用 for 循环自己实现,还是希望加上一次添加多个子节点的方法
功能很不错 能否增加包含子集的节点的拖拽或移动的api
请问怎么添加搜索,reload更新搜索结果数据
最后一级选中/取消选中的点击事件能不能加到整个cell上面
[self.check addTarget:self action:@selector(checkAction:) forControlEvents:UIControlEventTouchUpInside];
大佬,我在做搜索功能时,移除tree再添加后,数据会一直双倍增加。请问这是为什么?
if (TF.text.length%2 == 1) {
//销毁
[self.treeView removeFromSuperview];
self.treeView = nil;
}else {
//添加
[self addTree];
}
如题,wHideExpanIcon不起效
情况一:https://blog.csdn.net/zWbKingGo/article/details/87939212
情况二:https://www.jianshu.com/p/5cd3824086ea
第一种情况我是在老项目遇到的,把iOS Deployment Target改成了9.0;第二种情况是新建工程遇到的
请问使用setParam更新数据之后,再使用WMZTreeView里面update方法更新,结果只是在原有基础上添加,有办法释放掉之前加载的数据吗?
勾选不关联父节点和子节点,来回1.0 1.1重复选中和取消,会默认选中一个2.5的情况
我想把勾选的结果保存或上传服务器,要怎么获取到选择到结果呢
更新了pod也找不到,不知道是什么原因
大佬,请问一下 怎么获取当前节点的父节点
WMZTreeView.m中,
/*
*解析传入的数组 传入的WMZTreeParam组成的数组
*/
(void)dealTreeData:(NSArray*)items {
for (int i = 0; i<items.count; i++) {
@autoreleasepool {
WMZTreeParam *model = items[i];
[self.dic setObject:model forKey:model.currentId];
}
}
NSMutableArray arr = [NSMutableArray new];
[items enumerateObjectsUsingBlock:^(WMZTreeParam _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
@autoreleasepool {
if (!obj.parentId) {
[self.tree.children addObject:obj];
}else{
WMZTreeParam *param = self.dic[obj.parentId];
if (param) {
[param.children addObject:obj];
[arr addObject:param];
}
// [arr addObject:param];
}
}
}];
这个param虽然判空了,但是还是加入了arr,是不是应该放在里面?
数据到底是根据什么来排序的啊,我递归好的数据,传进来,展示就乱了
WMZTreeBaseView.m 中
`- (UITableView *)table{
if (!_table) {
_table = [[UITableView alloc]initWithFrame:self.bounds style:UITableViewStyleGrouped];
_table.backgroundColor = UIColor.clearColor; // 增加当前行,删掉默认的灰色背景
_table.estimatedRowHeight = 100;
if (@available(iOS 11.0, *)) {
_table.estimatedSectionFooterHeight = 0.01;
_table.estimatedSectionHeaderHeight = 0.01;
_table.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
_table.delegate = (id)self;
_table.dataSource = (id)self;
}
return _table;
}`
你好,添加子节点后能不能加个方法自动展开?
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.