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

ng-form-build

v0.0.24

Published

采用Vue3 + TS,封装的element-plus数据驱动表单组件

Downloads

21

Readme

el-plus-form | 基于 element-plus 的数据驱动表单组件

MIT Licence npm

简介

el-plus-form 是一个通用的、基于 vue3, ts 和 element-plusel 的表单解决方案,它大大的简化了表单的代码以及逻辑控制,完全可以通过 json 数据,控制整个表单的业务逻辑。该项目的基础版本,来源于张超杰大佬的vue-ele-form

项目地址

https://github.com/KDJack/el-plus-form

可视化表单生成器

f-render 演示图

生成器在线地址: https://github.com/dream2023/f-render

安装

npm install el-plus-form --save # yarn add el-plus-form

使用

import { createApp } from 'vue'
import App from './App.vue'
import ElPlusForm from 'el-plus-form'
// uploadImgAction 为图片上传的请求地址,如果没有该配置项,会导致图片上传组件不可用!!!
createApp(App).use(ElPlusForm, { uploadImgAction: 'http://www.xxxxx/xxx/xxx/xx/uplaod' })
<el-plus-form v-bind="formConfig" :formData="formData"></el-plus-form>
setup() {
    const state = reactive({
        formData: {},
        formConfig: {
            formDesc: {
                categoryNo: { type: 'input', label: '编号', require: true },
                displayName: { type: 'input', label: '名称', require: true },
                enabled: { type: 'switch', label: '启用状态', rules: 'select', default: 1 },
                iconName: { type: 'input', label: '图标' },
                imgUrl: { type: 'upimg', label: '图片', limit: 3 },
                introductionRatio: { type: 'nbInput', label: '引进比率' },
                operatingRatio: { type: 'nbInput', label: '运营比率' },
                preferentialRatio: { type: 'nbInput', label: '优惠比率' },
                salesRatio: { type: 'nbInput', label: '销售比率' },
                serviceRatio: { type: 'nbInput', label: '服务比率' },
                showOrder: { type: 'nbInput', label: '显示顺序' }
            },
            order: ['displayName', 'introductionRatio', 'categoryNo', 'operatingRatio', 'enabled', 'preferentialRatio', 'iconName', 'salesRatio', 'imgUrl','serviceRatio', 'showOrder'],
            column: 2
        }
    })
    return { ...toRefs(state) }
}

DEMO(暂时没有时间搞,借用下张大佬的)

https://dream2023.github.io/vue-ele-form/

文档(暂时没有时间搞,借用下张大佬的)

https://www.yuque.com/chaojie-vjiel/vbwzgu

*使用说明

*请将项目 VUE 版本更改至 3.0.5,不然会出现神奇的问题

当前版本还处于开发中,版本还不稳定,偶尔会更新。建议等到 1.x 版本后再使用...

写在最后

该项目属于个人项目,维护的时间和精力有限,如有问题可以提 ISSUES,同时非常欢迎你提交 PR