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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ele-cli

v0.1.16

Published

a cli help you gen element form page quick

Downloads

19

Readme

element-ui 的代码可视化编辑器,自动生成表单代码,列表代码。不是一个可视化解决方案,更像是生成模板的工具

命令行工具还未完成,npm 上的包不能使用,我先把名字占了

🏠 Homepage

网页版本,在preview分支

Install

npm install

How to Use

表单

一份表单有两个需要编辑的地方,一个是表单本身的属性,比如表单对象,表单的 Ref(用于表单验证),另一个就是表单包含的表单元素。

表单属性在表单属性编辑区可以编辑,表单元素的生成有两种方式

  • 拖拽

将表单元素拖拽到拖拽区,然后编辑表单元素属性

  • 支持 JSON 转化为表单

作为一个表单编辑工具,拖拽虽然简单,但是表单数量多的时候还是很麻烦。

因为我司接口通过 swagger 管理,其 post 接口列出了数据,如下图

swagger图

你可以很方便的把数据粘贴至 JSON 表单对象的输入框,支持嵌套的对象。

表单编辑区

但是粘贴过来的数据仅有 value 值,因此我定义了value:label 这样的结构,value 作为表单的 value,label 作为表单的 label。注意 label 需要用引号引起来。

{
  "id": 'ID',
  "title": '标题',
  "type": '类型'
}

然后点击生成表单即可,默认生成 Input,可在表单元素编辑区修改

表格

将后端返回得数据粘贴到生成表单得输入框中,生成表单,然后编辑表格头即可,后续会加上表格查询

Author

👤 sarva

Show your support

Give a ⭐️ if this project helped you!