@eonasdan/tempus-dominus

中文文档
6.10.4发布于 2025/05/07MITTypeScriptESM + CJS零依赖近 30 天下载 12.9万

A robust and powerful date/time picker component. For usage, installation and demos see Project Site on GitHub

原始使用文档
文档目录5 节
  1. Building
  2. Running
  3. Watching for changes
  4. Where do you use this?
  5. Priority support is available at an hourly rate.

ko-fi

Paid support only

Please note that I'm moving on to other projects. New issues will need to be sponsored. This can be done via BountySource or my other donation links. Please reach out to me first so we can discuss the terms. Thank you for your years of support.

Tempus Dominus Date/Time Picker v6.9.4

Tempus Dominus is a powerful and robust date time picker for javascript. Version 6 is another major rewrite over the previous version. V6 is written with modern browsers in mind and is written in typescript. Bootstrap, momentjs and jQuery are no longer required dependencies. Popper2 is all that is required for the picker to position correctly. If you still require jQuery (seriously, you should move off that asap) there's a jQuery provider that wraps the native js functions.

Developers

Building

Run npm i to install needed packages.

The docs folder contains the generated documentation site, don't modify this directly as it will be overwritten on build. The dist folder contains the built js/css files.

Running

You can run npm run serve which will start a web server. Navigate to http://localhost:3001/ to view the docs.

Watching for changes

Do not run npm run serve at the same time.

Run npm start. This runs web server, the build and watchers for the docs, styles, and typescript.

Where do you use this?

I'd love to know if your public site is using this plugin and list your logo on the documentation site. Leave create a discussion and let me know.

Priority support is available at an hourly rate.

If you have an urgent request, bug or need installation help, please contact in the discord server.

版本与发布记录

@eonasdan/tempus-dominus 共发布 47 个版本,首次发布于 2021/09/02;过去 12 个月发布了 0 个版本。

版本发布日期距今
6.10.4latest2025/05/071.5 年前
6.10.32025/04/161.6 年前
6.10.22025/03/121.7 年前
6.10.12025/02/281.7 年前
6.10.02025/02/271.7 年前
6.9.112024/09/082 年前

关于 @eonasdan/tempus-dominus 的常见问题

@eonasdan/tempus-dominus 是什么?

A robust and powerful date/time picker component. For usage, installation and demos see Project Site on GitHub

如何安装 @eonasdan/tempus-dominus?

在项目目录运行 npm install @eonasdan/tempus-dominus,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@popperjs/core(^2.11.6)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@eonasdan/tempus-dominus 支持 TypeScript 吗?

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

@eonasdan/tempus-dominus 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@eonasdan/tempus-dominus 可以商用吗?

@eonasdan/tempus-dominus 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@eonasdan/tempus-dominus 的下载量有多少?

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

@eonasdan/tempus-dominus 还在维护吗?

最新版本 6.10.4 发布于 2025/05/07(1.5 年前);至今共发布 47 个版本,其中过去 12 个月发布了 0 个;首次发布于 2021/09/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。