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

alp-vue3-package

v0.0.1

Published

一个轻量级的 Vue 3 可视化表单配置与渲染工具包。

Readme

vue3-package

一个轻量级的 Vue 3 可视化表单配置与渲染工具包。

特性

  • 🚀 可视化配置:通过 Editor 组件快速生成表单配置。
  • 📝 动态渲染:通过 Render 组件根据 JSON 配置动态渲染表单。
  • 📦 开箱即用:支持常见表单项(Input, Select, Checkbox, Radio, Textarea)。
  • 🎨 轻量简洁:不依赖大型 UI 库,体积小巧。

安装

npm install vue3-package
# 或
pnpm add vue3-package

快速上手

1. 引入样式

在你的入口文件(如 main.ts)中引入样式:

import 'vue3-package/dist/index.css'

2. 使用组件

<script setup>
import { Editor, Render } from 'vue3-package'
</script>

<template>
  <!-- 可视化配置编辑器 -->
  <Editor />

  <hr />

  <!-- 动态表单渲染项 -->
  <Render />
</template>

组件说明

Editor 组件

Editor 提供了一个交互界面,允许用户动态添加各种类型的表单项并配置其属性。

  • 功能
    • 点击“生成随机组件”可添加新的表单项。
    • 点击“复制配置”可将当前配置列表复制到剪贴板(JSON 格式)。
  • 支持类型input, select, checkbox, radio, textarea

Render 组件

Render 组件是一个预览与编辑工具。

  • 功能
    • 顶部包含一个 textarea,用于粘贴 Editor 生成的配置 JSON。
    • 下方会根据解析出的配置实时通过动态组件渲染出对应的表单输入框。
    • 支持双向绑定,修改渲染出的表单值会同步更新数据结构。

类型定义

本项目提供完整的 TypeScript 支持。你可以直接导入 ConfigItem 等类型进行二次开发。

import type { ConfigItem } from 'vue3-package'

// ConfigItem 结构:
// {
//   type: "input" | "select" | "checkbox" | "radio" | "textarea"
//   value: string
//   options?: Array<{ label: string; value: string }>
// }

License

MIT