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

@schema-creator/element-ui

v1.0.5

Published

A component generator that generates Element forms or Element tables using JSON schema

Downloads

114

Readme

@schema-creator/element-ui

介绍

我们都知道Vue admin后台页面大部分都包含表单form以及表格/列表table,每次编写这些表单/表格及构建不同逻辑的表单/表格需要浪费大量的模板逻辑代码去完成,到后面维护或修改往往是灾难。@schema-creator正是为了解决这个问题,它用schema JSON的方式来构建整个表单或表格(包括事件及双向绑定),从而使后台开发代码变得更简单和可维护。

@schema-creator/element-ui 是基于 element-ui 组件库来驱动(必须先安装 element-ui),主要包含的组件有 sc-form、sc-table 及 sc-template。相关API查看对应文档:

  • sc-form(schema JSON配置生成所有element-ui表单组件,包括事件及双向绑定)
  • sc-table(schema JSON配置生成el-table表格,支持官方所有特性及JS编写模版逻辑能力)

项目git地址:@schema-creator/element-ui

Install

npm i @schema-creator/element-ui -S

Quick Start

import Vue from 'vue'
import SchemaElement from '@schema-creator/element-ui'

Vue.use(SchemaElement)

// or
import {
  Form,
  Table
  // ...
} from '@schema-creator/element-ui'

Vue.component(Form.name, Form)
Vue.component(Table.name, Table)

LICENSE

MIT

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request