Coder Social home page Coder Social logo

joonemaman1 / agility-form Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jsonlyh/agility-form

0.0 0.0 0.0 990 KB

基于Vue2、element-ui进行快速生成表格、表单工具

Home Page: https://jsonlyh.github.io/agility-form-doc/

JavaScript 8.56% Vue 91.44%

agility-form's Introduction

Document

快速入门

安装插件

# yarn
yarn add agility-form -S

#npm
npm i agility-form -S

组件注册

// 导入包
import agilityForm from 'agility-form';
// 导入样式
import 'agility-form/lib/agility-form.css';
Vue.use(agilityForm);

示例代码

<template>
  <agilitySearchForm
    :json="form"
    :model.sync="queryForm"
    @search="getTableData"
  />
</template>
<script>
  export default {
    data() {
      return {
        queryForm: {},
        form: [
          {
            type: 'text',
            model: 'user_name',
            label: '用户',
            placeholder: '请输入用户名称',
          },
        ],
      };
    },
  };
</script>

虽然是基于element-ui进行开发的,但是已经把element-ui相关样式整合在一起了,使用时无需再单独引入element-ui,element-ui官方的组件您也可以直接使用。 当然,如果您已经安装了element-ui,那也不影响。

agility-form's People

Contributors

jsonlyh 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.