@bryntum/gantt-trial

中文文档
7.3.8发布于 2026/10/28CommercialTypeScriptCommonJS近 30 天下载 4266

Bryntum Gantt JavaScript 试验组件包

中文使用文档
文档目录23 节
  1. 要点
  2. 软件包内容
  3. 支持的版本
  4. 尝试 Bryntum 在线演示
  5. 安装
  6. 为什么用npm异形?
  7. 利用人工智能探员?
  8. 快速启动
  9. 香草 Java 脚本
  10. 主题
  11. Svalbad( 默认)
  12. 斯德哥尔摩
  13. 维斯比
  14. 材料3
  15. 高对比度
  16. 流利的 2
  17. 框架整合
  18. 反应
  19. 角质
  20. 第3组
  21. 探索所有Bryntum 产品
  22. 在线参考资料
  23. 许可证和版权


Bryntum logo


布林图姆·甘特(审判)

布林图姆 甘特是用于项目管理的全特质甘特图,支持了广泛的特征. 它与React,Vue,Angular,或平地香草JS顺利融合.

关于Bryntum Gantt的更多信息,请访问 布林图姆甘特遗址

Bryntum Gantt Screenshot

要点

软件包内容

路径说明
fonts/蒙特塞拉特波平斯和RobotoFlex字体
fontawesome/FontAsome 图标和 Webfonts
locales/30+语言本地化文件
gantt.module.js, (中文(简体) ), gantt.umd.jsJavaScript 捆绑( ES 模块和 UMD 格式)
gantt.css结构CSS(需要)
*.d.ts类型脚本类型定义
*.css主题样式表

说明: 试件包不包括精密的捆绑,源地图,或源文件.

支持的版本

尝试 Bryntum 在线演示

探索我们综合收集的演示文稿:

安装

这是一个 试验包 功能有限.

为什么用npm异形?

试验包使用 npm 化名安装 @bryntum/gantt-trial 下划线 @bryntum/gantt 名称。 这种办法 提供无缝升级路径 - 当您购买许可证时, 您只需要更新在 package.json 不更改任何应用程序代码.

使用 npm数字 :

npm install @bryntum/gantt@npm:@bryntum/gantt-trial@latest

或者说用 yarn数字 :

yarn add @bryntum/gantt@npm:@bryntum/gantt-trial@latest

或者,添加到 package.json 依赖性 :

"dependencies": {
  "@bryntum/gantt": "npm:@bryntum/gantt-trial@latest"
}

拜访我们 npm 仓库指南 学习更多关于安装和迁移的 尝试到许可的软件包.

利用人工智能探员?

一个AI助手写工作 Brintum Gantt 代码的最快路径:

  1. MCP服务器. 配置您的代理服务器为 Bryntum MCP 服务器, 以获取禁用、 版本正确的答案 : 设置指南。 。 。 .
  2. 特工技能。 。 . 安装 布林图姆技能 用于 Claude 代码、光标或 Codex——它将公约捆绑在下面.

特工常用的试验包陷阱:

  • 斯道尔训练数据. Bryntum 船打破了变化; 不要信任您记得的 API 形状 。 检查 https://bryntum.com/products/gantt/docs. 互联网档案馆的存檔,存档日期2013-12-12 先说.
  • 你是在审判. 软件包安装为 @bryntum/gantt-trial 但别名改为 @bryntum/gantt —— 说 导入路径必须使用别名(@bryntum/gantt) (中文(简体) ). 要升级到许可证软件包,请将别名改为 "npm:@bryntum/gantt@latest"; 不重写导入.
  • 试验捆绑没有精密化 并包含一个水印;这是预期的,不是错误.
  • CSS (英语). 导入字体, gantt.css (结构),并作主题.
  • 框架包装 (单位:千美元)@bryntum/gantt-react, (中文(简体) ), -angular, (中文(简体) ), -vue-3) 需要核心 @bryntum/gantt 软件包; 运行时只安装包装失败 .
  • 类型脚本 装入 *.d.ts ;不要手卷接口.

快速启动

香草 Java 脚本

import { Gantt } from '@bryntum/gantt';
import './style.css';

const gantt = new Gantt({
    appendTo  : 'app',
    startDate : new Date(2022, 0, 1),
    endDate   : new Date(2022, 0, 10),
    columns   : [
        { type : 'name', width : 160 }
    ],
    project : {

        // Automatically introduces a `startnoearlier` constraint for tasks that (a) have no predecessors,
        // (b) do not use constraints and (c) aren't `manuallyScheduled`
        autoSetConstraints : true,
        tasks              : [
            {
                id       : 1,
                name     : 'Documentation Project',
                expanded : true,
                children : [
                    {
                        id       : 2,
                        name     : 'Preparation',
                        expanded : true,
                        children : [
                            { id : 6, name : 'Proof-read docs', startDate : '2026-01-02', endDate : '2026-01-09' },
                            { id : 3, name : 'Release docs', startDate : '2026-01-09', endDate : '2026-01-10' }
                        ]
                    },
                    {
                        id       : 4,
                        name     : 'Development',
                        expanded : true,
                        children : [
                            { id : 7, name : 'Write API docs', startDate : '2026-01-05', endDate : '2026-01-12' },
                            { id : 8, name : 'Write tutorials', startDate : '2026-01-10', endDate : '2026-01-16' },
                            { id : 9, name : 'Create examples', startDate : '2026-01-12', endDate : '2026-01-18' }
                        ]
                    },
                    {
                        id       : 5,
                        name     : 'Review & Release',
                        expanded : true,
                        children : [
                            { id : 10, name : 'Team review', startDate : '2026-01-18', endDate : '2026-01-20' },
                            { id : 11, name : 'Final approval', startDate : '2026-01-20', endDate : '2026-01-21' },
                            { id : 12, name : 'Public release', startDate : '2026-01-22', endDate : '2026-01-22' }
                        ]
                    }
                ]
            }
        ],
        dependencies : [
            { fromTask : 6, toTask : 3 },
            { fromTask : 7, toTask : 8 },
            { fromTask : 8, toTask : 9 },
            { fromTask : 9, toTask : 10 },
            { fromTask : 10, toTask : 11 },
            { fromTask : 11, toTask : 12 }
        ]
    }
});

在那个 style.css数字 :

/* FontAwesome is used for icons */
@import "@bryntum/gantt/fontawesome/css/fontawesome.css";
@import "@bryntum/gantt/fontawesome/css/solid.css";
/* Structural CSS */
@import "@bryntum/gantt/gantt.css";
/* Bryntum theme of your choice */
@import "@bryntum/gantt/svalbard-light.css";

访问我们的 Java 脚本 快速启动指南 学习更多.

主题

Svalbad( 默认)

光线阴暗
Svalbard LightSvalbard Dark

斯德哥尔摩

光线阴暗
Stockholm LightStockholm Dark

维斯比

光线阴暗
Visby LightVisby Dark

材料3

光线阴暗
Material 3 LightMaterial 3 Dark

高对比度

光线阴暗
High Contrast LightHigh Contrast Dark

流利的 2

光线阴暗
Fluent 2 LightFluent 2 Dark

关于自定义主题的更多信息,请参见: 样式指南。 。 。 .

框架整合

布林图姆·甘特(Bryntum Gantt)为通俗框架提供一等的包装. 每个包装都遵循本地框架模式 和生命周期管理.

说明: 框架包装是公开的,可以正常安装. 它们要求有核心包.

反应

npm install @bryntum/gantt-react@latest

拜访我们 反应快速启动指南 学习更多.

角质

npm install @bryntum/gantt-angular@latest

拜访我们 角快启动指南 学习更多.

第3组

npm install @bryntum/gantt-vue-3@latest

拜访我们 Vue 快速启动指南 学习更多.

探索所有Bryntum 产品

探索我们综合收集的演示文稿:

产品JavaScript
Java 脚本
React
反应
Vue
阴道
Angular
角质
网格网格 JavaScript 演示网格反应演示网格 Vue 演示网格角演示
调度器JavaScript 演示调度器反应演示调度员 Vue 演示调度器
调度器Pro调度器 Pro JavaScript 演示排程器 Pro React 演示调度器 Pro Vue 演示排程器 Pro Angular 演示
甘特语甘特Java脚本演示甘特反应演示Gantt Vue 演示Gantt 角力演示
日历日历 JavaScript 演示日历反应演示日历 Vue 演示日历角演示
任务栏任务板 JavaScript 演示任务板反应演示任务板 Vue 演示任务板角演示

在线参考资料

Bryntum Gantt是商业软件,需要付费许可证. 请访问 Bryntum Gantt 结束用户许可证 执照的全文.

版权所有:2009-2026年,Bryntum 版权所有.

版本与发布记录

@bryntum/gantt-trial 共发布 18 个版本,首次发布于 2024/03/11;过去 12 个月发布了 17 个版本。

版本发布日期距今
7.3.8latest2026/10/2811 天前
7.3.72026/09/241 个月前
7.3.62026/09/111 个月前
7.3.52026/08/212 个月前
7.3.42026/07/223 个月前
7.3.32026/06/254 个月前

关于 @bryntum/gantt-trial 的常见问题

@bryntum/gantt-trial 是什么?

Bryntum Gantt JavaScript 试验组件包

如何安装 @bryntum/gantt-trial?

在项目目录运行 npm install @bryntum/gantt-trial,或使用 pnpm add / yarn add / bun add。

@bryntum/gantt-trial 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@bryntum/gantt-trial 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@bryntum/gantt-trial 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=0.10.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bryntum/gantt-trial 可以商用吗?

@bryntum/gantt-trial 使用 Commercial 许可。声明的许可为 Commercial,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@bryntum/gantt-trial 的下载量有多少?

根据 npm 官方下载统计,@bryntum/gantt-trial 在 2026/10/09 – 2026/11/07 这 30 天内被下载 4,266 次,日均约 142 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bryntum/gantt-trial 还在维护吗?

最新版本 7.3.8 发布于 2026/10/28(11 天前);至今共发布 18 个版本,其中过去 12 个月发布了 17 个;首次发布于 2024/03/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。