yangjingyu / vs-tree Goto Github PK
View Code? Open in Web Editor NEW移动端PC端通用树组件,适用于企业组织通讯录,百万数据支持
Home Page: https://yangjingyu.github.io/vs-tree/
License: MIT License
移动端PC端通用树组件,适用于企业组织通讯录,百万数据支持
Home Page: https://yangjingyu.github.io/vs-tree/
License: MIT License
vs-tree.js:1 Uncaught (in promise) TypeError: e3 is not a function
at Proxy.render (:3000/node_modules/.vite/vs-tree.js?v=23589af2:688)
at renderComponentRoot (:3000/node_modules/.vite/chunk-ZRZJZ4KZ.js?v=23589af2:908)
at componentEffect (:3000/node_modules/.vite/chunk-ZRZJZ4KZ.js?v=23589af2:4031)
at reactiveEffect (:3000/node_modules/.vite/chunk-6ROACLEK.js?v=23589af2:272)
at effect (:3000/node_modules/.vite/chunk-6ROACLEK.js?v=23589af2:247)
at setupRenderEffect (:3000/node_modules/.vite/chunk-ZRZJZ4KZ.js?v=23589af2:3994)
at mountComponent (:3000/node_modules/.vite/chunk-ZRZJZ4KZ.js?v=23589af2:3964)
at processComponent (:3000/node_modules/.vite/chunk-ZRZJZ4KZ.js?v=23589af2:3929)
at patch (:3000/node_modules/.vite/chunk-ZRZJZ4KZ.js?v=23589af2:3648)
at mountChildren (:3000/node_modules/.vite/chunk-ZRZJZ4KZ.js?v=23589af2:3794)
<template>
<div id="tree"></div>
</template>
<script>
import vsTree from 'vs-tree'
import 'vs-tree/dist/vs-tree.css'
const tree = new vsTree('#tree', {
data: { id: 1, name: 'tree1', children: [] } // [{id, name}, {id, name, children}]
});
</script>
vs-tree.js 文件里面,methods 对象下没有添加clearCheckedNodes和scrollToIndex
怎么更改children的字段名
1.默认设置时,点击一下,整个cell颜色变灰,checkbox边框变成蓝色。很难让checkbox变成选中状态。
2.然后更换属性后,点击整个cell让其选中,会有两处问题。点击cell能选中,但是很难点击checkbox选中;箭头展开比较难点
以上有什么解决方法吗?
补充一下
添加* { touch-action: pan-y; } 属性,chrome上调试模式的手机点击选中效果很好,但是到手机端效果还是挺差的。
使用vue+vant框架
vue3如何引用呢?
作者,你好 可否添加自定义展开 收起节点的图标呢?
在传入max 参数后,调用 setChecked 方法时,仍然选中了选项,且超过 max 值的限制
我尝试在 项目中 使用 npm install vue-mobile-tree 但是没法安装
ops.indent || 10, 当indent=0时不起作用,希望修改下
你好,我想请教一下,使用watch监听关键词用filter搜索过滤时,树结构模糊查询到了,但是部分列表不会完全展开到搜索的关键字,有些可以,请问这个可以优化吗?还有清空搜索后,有些列表自动展开了,能不能不展开呢?我看demo也是这样子的,希望您能看到,谢谢
因为如果是vue + ts 搭的框架 引用 包的时候会缺少声明文件
scrollToBottom方法报错,我找了一下,发现代码里只有一个方法名,不知能否帮忙处理一下,感谢🙏
这不是pc端的体验嘛,移动端参考钉钉选组织架构
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.