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/xzf-demo-showcase

v0.0.6

Published

XZF Vue admin Demo 示例源码模板安装器

Downloads

71

Readme

@sunzhiyang/xzf-demo-showcase

这是 XZF Vue admin 工程专用的 Demo 示例源码模板包。正式项目默认不包含 Demo;需要学习、培训或演示时,再通过本包把 Demo 页面、路由、配置和模板测试写回当前 admin 工程。

适配范围

  • 仅适配当前 XZF Vue admin 目录结构。
  • 不是通用 Vue 运行时插件,也不会在宿主保留 Demo 开关或适配层。
  • tdesign-form-create 示例通过 npm 包 @sunzhiyang/tdesign-form-create 引入,不依赖宿主本地 packages 路径。

安装 Demo

admin 目录执行:

npm install -D @sunzhiyang/xzf-demo-showcase @sunzhiyang/tdesign-form-create
npm exec xzf-demo-showcase install -- --target .

安装器会复制以下白名单内容:

  • src/views/demo/**
  • src/config/demo.js
  • src/router/routes/modules/demo/index.js
  • tests/demo-code-example.spec.mjs

启用与访问

启动前端后,在“开发示例”菜单内进入独立分组“可视化表单设计器”,访问:

/demo/tdesign-form-create

该页面由 @sunzhiyang/tdesign-form-create 提供设计器、预览、JSON/源码、导入导出与 localStorage 草稿保存能力。

查看状态

npm exec xzf-demo-showcase status -- --target .

卸载 Demo

npm exec xzf-demo-showcase uninstall -- --target .
npm remove @sunzhiyang/xzf-demo-showcase @sunzhiyang/tdesign-form-create

卸载器只删除本包写入的 Demo 白名单路径;重复执行也会安全退出。

发布前检查

npm test
npm pack --dry-run
npm pack

常见问题

可视化表单示例依赖从哪里来?

当前 Demo 中的可视化表单示例从 npm 下载 @sunzhiyang/tdesign-form-create(当前已发布 0.1.2,本包依赖范围为 ^0.1.2)。如果构建提示找不到该包,请在 admin 目录补充执行:

npm install -D @sunzhiyang/tdesign-form-create

安装后构建失败

请先确认宿主工程存在安装器提示的必需路径:admin/src/router/routes/index.jsadmin/src/router/constant.jsadmin/src/hooksadmin/src/utilsadmin/src/componentsadmin/src/config/map.jsadmin/src/store,并确认 npm 依赖已经安装完成。