Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@grid-form/render-tree

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grid-form/render-tree

基于树形结构的渲染器(Web Components)

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

# GRID-FORM-RENDER-TREE

基于树形结构实现的格子表单渲染器,打包为通用组件(Web Components)

此渲染器功能极为简单,且不能支持全部的组件,慎用🙂

技术选型经历

最后没有用树形结构展示😂

  • jsoneditor
  • fancytree:JavaScript tree view / tree grid plugin with support for keyboard, inline editing, filtering, checkboxes, drag'n'drop, and lazy loading

使用 Vue3 构建 WebComponents

SFC 构建

注意,需要以后缀.ce.vue结尾,否则无法正确编译内联的 css

如何使用 demo.html

demo.html为原生演示文件

  • 构建包pnpm tree:build,成功则在 dist 生成 js、css 两个文件
  • 启动本地静态资源服务(如 live-serverpython -m http.sever),用浏览器访问 demo.html
 grid-form >> pnpm tree:build

vite v5.2.8 building for production...
✓ 25 modules transformed.
dist/style.css         0.33 kB │ gzip:  0.21 kB
dist/render-tree.js  142.81 kB │ gzip: 46.08 kB
✓ built in 908ms

FAQs

Package last updated on 10 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts