npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sunzhiyang/tdesign-form-create

v0.1.2

Published

基于 TDesign Vue Next 的可发布单包可视化表单设计器、运行态与 schema 工具

Downloads

36

Readme

@sunzhiyang/tdesign-form-create

基于用户提供的本地 form-create workspace 源码快照收敛出来的单一公开 npm 包,面向 XZF Demo 与外部 Vue3/TDesign 项目提供可视化表单设计器、运行态渲染、schema 工具和 Studio 契约类型。

安装

npm install @sunzhiyang/tdesign-form-create vue tdesign-vue-next

消费者运行侧主要依赖 Vue3 与 TDesign Vue Next peer;本包构建/发布建议使用 Node.js 22+ 与 pnpm 10+,普通浏览器项目不强制 Node 22 运行。

基础用法

<script setup>
import { TdesignFormCreateStudio, createDefaultFormCreateSchema } from '@sunzhiyang/tdesign-form-create';
import '@sunzhiyang/tdesign-form-create/style.css';

const initialSchema = createDefaultFormCreateSchema();
</script>

<template>
  <TdesignFormCreateStudio :initial-schema="initialSchema" />
</template>

子入口

  • @sunzhiyang/tdesign-form-create/schema:导出 canonical schema 常量、类型与 normalizeSchema
  • @sunzhiyang/tdesign-form-create/designer:导出 vendored 设计器 store、预览会话与 TdesignFormCreateDesigner
  • @sunzhiyang/tdesign-form-create/runtime-tdesign:导出 TDesign 运行态渲染组件与 runtime seam。
  • @sunzhiyang/tdesign-form-create/studio-contracts:导出项目、草稿、发布和模板仓储契约类型。
  • @sunzhiyang/tdesign-form-create/style.css:设计器与运行态样式。

Demo 能力

TdesignFormCreateStudio 内置:

  1. 物料面板、设计画布、属性面板;
  2. TDesign 表单预览;
  3. schema JSON 导入、导出与复制;
  4. 示例模板载入;
  5. 基于 localStorage 的草稿保存与恢复。

样式仅使用纯色、边框和阴影,不使用渐变色。

发布检查

npm test
npm run typecheck
npm run lint
npm run build
npm pack --dry-run

发布 tarball 不包含 workspace、本地路径或软链接依赖,也不发布 node_modules 或外部 form-create 私有 app 产物。