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

v-form-engine

v1.2.4

Published

一个基于 vue + element-ui 的 PC 端表单引擎。支持灵活的配置项、编辑/查看两种视图、自定义模板/插槽、溢出隐藏、双击复制等...

Downloads

51

Readme

介绍

form-engine基于 vue + element-ui , 可解决各种各样的表单需求。使用前必须要引入element-ui。

  • 设计理念

    • 面向现代浏览器,高效的简洁 API 设计,减少不必要的冗余代码
    • 为快速开发而设计,支持多种视图扩展,强大的功能的同时兼具性能
  • 计划

    • [-] v1.0 基于 vue2.0 + element-ui + ts,支持所有主流的浏览器,实现表单引擎的一切实用的功能
      • 1、 灵活的配置项
      • 2、 编辑/查看两种视图
      • 3、 自定义模板/插槽
      • 4、 溢出隐藏
      • 5、 双击复制
      • ...

    tip:目前仅第一点功能实现,后续功能迭代中…

    • [ ] v2.0 基于已有功能,进行底层升级,以支撑已经到来的vue 3.0,同时兼具v1.0的功能与性能

安装 && 引入

  • 安装

npm install v-form-engine --save
  • 引入

全局引入
import Vue from 'vue';
import ElementUi from 'element-ui';
import vFormEngine from 'v-form-engine';

// 如果并未全局引入element-ui, 需要进行全局引入才能使用
Vue.use(vFormEngine);
局部引入
<script>
// 如果并未全局引入element-ui, 需要进行全局引入才能使用
import { FormEngine } from 'v-form-engine';

export default {
  components: {
    FormEngine
  }
}
</script>
直接引入
<!-- 如果并未全局引入element-ui, 需要进行全局引入才能使用 -->
<script src="https://unpkg.com/v-form-engine"></script>

示例

简单示例
<template>
  <form-engine :items="items" :form-data="formData" style="width: 600px"></form-engine>
</template>

<script>
export default {
  data() {
    return {
      items:[
        {
          label: 'test1',
          prop: 'test1',
          type: 'time-select'
        }
      ],
      formData: {}
    }
  }
}
</script>
在线预览

预览

文档

简版文档:请点击这里

License

MIT © 2020-present, sifan