跪拜 Guibai
← All articles
Backend

JD Retail Open-Sources DripTable: Schema-Driven List Rendering for React Admin Panels

By 皮皮林551 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Teams building admin panels can replace hand-written table components with schema-driven generation, cutting repetitive code and enabling collaboration with non-engineers who can configure lists without touching React.

Summary

DripTable is a dynamic list solution for enterprise back-office interfaces, built on React and JSON Schema. It ships as two packages: drip-table, the core renderer that turns schema data into lists, and drip-table-generator, a visual tool for creating that schema. The split means a non-technical user can design a list layout in the generator while a developer plugs the resulting JSON into the renderer.

The tool promises faster front-end development by turning low-code configuration into a working table without hard-coded columns. It supports custom cell components through an API, so teams can extend the default set of column types with business-specific renderers. The table shell also accepts multiple theme packages or a custom theme, which keeps the visual layer decoupled from the data schema.

JD Retail positions DripTable for CMS list pages and low-code table previews. The usage examples show a simple install via npm or yarn, then importing the generator for configuration and the renderer for runtime display. A minimal schema defines column keys, titles, data indices, and component types, and the renderer takes that schema plus a data source.

Takeaways
— DripTable is open-sourced by JD Retail and available on GitHub.
— It is built on React and JSON Schema, with two packages: drip-table (renderer) and drip-table-generator (visual schema editor).
— The configuration side depends on the application side; install drip-table before using the generator.
— Advantages include faster list development, config-driven rendering, custom cell components via API, and multiple theme packages.
— Use cases cover CMS back-office list pages and low-code table preview and implementation.
— Install commands: yarn add drip-table-generator or npm install --save drip-table-generator for the generator; yarn add drip-table or npm install --save drip-table for the renderer.
— A schema example defines a column with key, title, dataIndex, component type, and options; the renderer also takes a dataSource array.
Conclusions

The generator-renderer separation lets teams hand schema creation to a visual tool while keeping the runtime dependency small, a pattern that fits common internal admin tool workflows.

Custom cell components and theme packages suggest one schema can be reused across different product UIs, though the article does not show how deep the extension API goes.

Concepts & terms
JSON Schema
A standard for describing the structure and validation rules of JSON data. In DripTable, it defines list columns, their types, and rendering options.
Low-code
A development approach that minimizes hand-coding by using visual editors and configuration files. DripTable supports low-code by letting users define lists through JSON rather than imperative code.
From the discussion
Featured comments
Swot

This library is no longer maintained, right?

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗