@directus-labs/spreadsheet-layout

中文文档
1.0.2发布于 2024/12/18MITES Module零依赖近 30 天下载 1986

A spreadsheet layout that allows you to edit item fields directly inline, just like in a spreadsheet

原始使用文档
文档目录4 节
  1. Installation & Setup
  2. Layout Options
  3. Usage
  4. Allowed fields

Spreadsheet Layout for Directus

A spreadsheet layout that allows you to edit item fields directly inline, just like in a spreadsheet.

Installation & Setup

To install the extension, take a look at the Official Guide.

Once installed, go to your collection page, on the Layout Options tab in the sidebar, select Spreadsheet from the Layout drop-down list.

Layout Options

Save: If the Automatic checkbox is checked, your changes will be saved automatically. If it is unchecked you will have to manually press the Save button that appears on the top right corner (or use the keyboard shortcut [cmd] + [s]) to save your changes.

Spacing: Change the spacing of the spreadsheet rows as you would in the default table layout.

Usage

Click a cell within the collection spreadsheet and press [Enter] or Double-click to enter the field and make your change. When you exit the cell by clicking outside it or pressing [Escape], the field value is updated if you have autosave enabled. Otherwise, the cell appears as edited. You can use the arrow keys to navigate through the cells. You can add fields/columns using the +-button in the upper right corner of the collection spreadsheet, just like in the default table layout.

Allowed fields

Types: string, text, bigInteger, integer, float, decimal, boolean, dateTime, date, time, timestamp.

Interfaces: boolean, datetime, input, input-autocomplete-api, select-color, select-dropdown, select-icon, slider.

版本与发布记录

@directus-labs/spreadsheet-layout 共发布 3 个版本,首次发布于 2024/05/29;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.0.2latest2024/12/181.9 年前
1.0.12024/05/302 年前
1.0.02024/05/292 年前

关于 @directus-labs/spreadsheet-layout 的常见问题

@directus-labs/spreadsheet-layout 是什么?

A spreadsheet layout that allows you to edit item fields directly inline, just like in a spreadsheet

如何安装 @directus-labs/spreadsheet-layout?

在项目目录运行 npm install @directus-labs/spreadsheet-layout,或使用 pnpm add / yarn add / bun add。

@directus-labs/spreadsheet-layout 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/directus-labs__spreadsheet-layout 是否存在。

@directus-labs/spreadsheet-layout 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@directus-labs/spreadsheet-layout 可以商用吗?

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

@directus-labs/spreadsheet-layout 的下载量有多少?

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

@directus-labs/spreadsheet-layout 还在维护吗?

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