Comments (9)
from vue-tree.
从报错信息看,可以尝试给 webpack 配置一下处理 .mjs
文件的 loader
可以试试看给 vue.config.js
加上这个配置
module.exports = {
configureWebpack: {
module: {
rules: [
{
test: /\.mjs$/,
include: /node_modules/,
type: "javascript/auto"
}
]
}
}
}
from vue-tree.
不知道你用的 vue-cli 或者 webpack 版本是什么呢
from vue-tree.
vue-cli 4.5版本
from vue-tree.
哦。点击父节点,自动展开能关闭吗?只能通过点击小图标展开收起
from vue-tree.
还有个问题是,这个想要自定义图标怎么添加呢
from vue-tree.
目前没有支持关闭 “点击节点标题展开” 这个特性。但是如果有设置 selectable
或 checkable
,点击标题就不会展开或收起了
自定义图标可以通过 render
自定义节点添加
from vue-tree.
好的,谢谢。我就是觉得在触发双击事件的时候,那个节点会自动展开下级然后关闭有点奇怪。看能否将这个特性开出来可供关闭。另外双击事件那里,触发双击事件的时候,单击事件会触发两次,然后触发双击事件。
from vue-tree.
1.设置了 selectable 后,点击节点不会自动展开了。
2.将项目拉下来,重写了双击事件,第二次单击事件不会触发,只会触发第一次的单击事件和双击事件
from vue-tree.
Related Issues (20)
- 我有3000个节点,全部取消勾选瞬间就取消了,但是全部勾选要等一下才能勾上,为什么?? HOT 1
- 这个为啥没报错
- TreeDrop单选时报错 HOT 1
- 懒加载的箭头问题 HOT 1
- 下拉树数据量大会存在内存泄漏 HOT 1
- 怎么只更新某一个节点的样式? HOT 2
- renderNodeAmount 不生效 HOT 2
- 右键菜单事件没有 event 参数 HOT 1
- 右键菜单事件参数没有鼠标事件 event HOT 1
- check和uncheck事件触发时,会先触发check事件 HOT 1
- 使用 TS 的时候提示找不到定义 HOT 10
- 节点当前行高亮样式建议 HOT 3
- 建议增加节点渲染的slot HOT 1
- vue2下v-model不生效 HOT 1
- vue2.x下使用VTreeDrop报错 HOT 1
- scrollTo 不生效 HOT 1
- 不能往一个子节点个数为0的父节点使用prepend或者append插入一个子节点
- 两点建议
- v3.2.0版本,底层节点会显示展开图标 HOT 1
- 在append 和 prepend 节点到tree上时,报错
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.