Comments (8)
paste your code pls?
from gantt.
paste your code pls?
[
gantt-master.zip
](url)
from gantt.
paste your code pls?
gantt-master.zip
from gantt.
paste minimum reproduction code, not zip. I can see it in here
from gantt.
<template>
<div class="gantt-wrap">
<x-gantt
data-id="index"
:data="ganttData"
header-height="48"
:row-height="30"
>
<x-gantt-column label="事项" prop="name"></x-gantt-column>
</x-gantt>
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, onMounted } from 'vue';
const ganttData = reactive([
{
"index": 2,
"name": "t1",
"startDate": new Date('2022-01-24'),
"endDate": new Date('2022-07-24'),
"o": {
"t1": "a",
"t2": "b"
},
"children": [
{
"index": 51,
"name": "sub-t51",
"startDate": new Date('2022-01-27'),
"endDate": new Date('2022-02-24'),
"progress": 0.8,
"o": {
"t1": "a",
"t2": "b"
}
},
{
"index": 52,
"name": "sub-t52",
"startDate":new Date('2022-03-27'),
"endDate": new Date('2022-04-27'),
"progress": 0.5,
"o": {
"t1": "a",
"t2": "b"
},
"children": [
{
"index": 53,
"name": "sub-sub-t53",
"startDate": new Date('2022-06-27'),
"endDate": new Date('2022-06-28'),
"progress": 0.3333333333,
"o": {
"t1": "a",
"t2": "b"
}
}
]
}
]
}
]);</script>
from gantt.
paste minimum reproduction code, not zip. I can see it in here
When the length of ganttData is equal to 1, it displays blank.
from gantt.
paste minimum reproduction code, not zip. I can see it in here
I found in the source code src\composables\useInView.ts,line 14 :
// 预加载条数
const preload = 5;
from gantt.
看到了代码,运行了一下,结果如下图:
并没有你说的问题。
1、检查你的代码
2、确保已经升级到最新版本
paste minimum reproduction code, not zip. I can see it in here
I found in the source code src\composables\useInView.ts,line 14 :
// 预加载条数 const preload = 5;
这个预加载是为了防止滚动时出现白屏,和你说的问题没有关系
from gantt.
Related Issues (20)
- [FEATURE] 希望能有属性支持控制甘特图的显示隐藏以及甘特图左侧的显示隐藏 HOT 1
- [BUG] HOT 1
- [FEATURE]是否可以单条数据上有多个任务? HOT 1
- [FEATURE]能否自定义甘特图的显示范围 HOT 1
- 请问支持一行多个滑块吗? HOT 1
- [BUG] HOT 9
- 你好,请问能不能提供一个给行和列自定义class的方法[FEATURE] HOT 4
- [BUG] I create startDate and endDate in rowtable, but when i change data in table, data not update, therefor data in gantt is old data HOT 5
- 更新x-gantt的data数据后,如果新数据的时间范围比上一条的数据的时间范围小,则时间轴仍然显示为上一次的时间范围[BUG] HOT 1
- 添加ellipsis属性之后 文字超出只显示了省略号, 期待能支持鼠标滑过显示全量文字信息 HOT 1
- 如果数据列表日期为空,那么渲染为报错,为空我传的null[BUG] HOT 6
- 进度条跟最终日期差一天[BUG] HOT 4
- [不知道该发哪里] 大佬 能不能加个微信 HOT 1
- [FEATURE] table 自动调整列宽 HOT 2
- [FEATURE] 滑块文字放在滑块右边而不是内部 HOT 1
- [BUG] unit 切换时 console 报错 HOT 2
- [BUG] elements disappear after scrolling and filtering HOT 4
- [BUG] 在线文档地址挂了 HOT 4
- [BUG] 拖动子级时父级不会跟随增长 HOT 3
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 gantt.