Giter Club home page Giter Club logo

el-form-schema's Introduction

el-form-schema

el-form-schema 是中后台表单解决方案,不仅覆盖了表单的布局、组件联动、校验等场景,还扩展支持 object、array、table 来满足更加复杂的业务场景,旨在让表单开发这件事情变的易用、简单、高效!

npm version npm download

Document

vuepress地址:http://efs.apidevelop.com

Features

  • 支持 element-ui 所有的表单组件
  • 内置支持 object、array、table,可以高效解决更多复杂的业务场景(此处应该有掌声👏)
  • 内置支持 slot 的插槽方式
  • 内置支持给组件设置 inline 行内布局属性,让布局更加灵活
  • 内置支持给 object、array 设置 inline 的方式
  • object 组件内置支持 card 和 fieldset 的布局类型,array 内置支持 card 的布局方式。
  • 支持组件之间的复杂联动,包括 vif: '表达式字符串'、inline: '表达式字符串'、required: '表达式字符串'、props: { disabled: '表达式字符串' }、 通过表达式字符串去做联动
  • 支持引入自定义组件,如果要实现双向绑定使用(注意:前提该组件实现了v-model的语法糖)
  • 支持统一设置组件宽度
  • 支持 enter 按键触发查询

Install

  npm install @kummy/el-form-schema
  yarn add @kummy/el-form-schema
  import Vue from 'vue'
  import elementUI from 'element-ui'
  import elFormSchema from '@kummy/el-form-schema'

  Vue.use(elementUI)
  Vue.use(elFormSchema)
  // 统一选项设置
  // Vue.use(elFormSchema, { 
  //   size: 'small', 
  //   isExpand: false,
  //   componentWidth: '240px',
  //   submitProps: { type: 'primary', icon: 'el-icon-search' },
  //   resetProps: { type: 'warning', icon: 'el-icon-refresh-left' }
  //   epxandProps: { type: 'default' }
  // })

el-form-schema's People

Contributors

lisiyizu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.