Giter Site home page Giter Site logo

hooman900 / fast-crud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fast-crud/fast-crud

0.0 0.0 0.0 10.21 MB

面向配置的crud框架,开发crud 快如闪电;Options-oriented crud framework, develop crud as fast as lightning;based on vue3

Home Page: http://fast-crud.docmirror.cn/

License: MIT License

JavaScript 44.72% HTML 0.13% Vue 30.50% Less 0.60% TypeScript 12.77% Shell 0.01% CSS 11.28%

fast-crud's Introduction

fast-crud

English | 简体中文

FastCrud 是基于Vue3的面向配置的crud开发框架,快速开发crud功能,可作为低代码平台的基础框架。
继承并优化了D2CrudPlus的设计**,入门简单,可扩展性强,丰富的示例,让你可以快速完成搬砖任务,更多的时间划水吹逼。

源码地址:Github / Gitee
示例地址: antdv版 / element版

文档地址:http://fast-crud.docmirror.cn/

star GitHub stars

开发crud,快如闪电

1、只需简单编写crud配置

const crudOptions= {
      columns: { //字段配置
        id: {// id字段
          title: "ID",
          type: "number", //字段类型
          column: { width: 50},
          form: { show: false }
        },
        name: { // 姓名字段
          title: "姓名",
          type: "text", //文本类型字段
          search: { show: true } //显示查询
        },
        city: { //城市字段
          title: "城市",
          type: "dict-select", //选择类型字段
          search: { show: true }, //显示查询
          dict: dict({ //本地数据字典
            value: "id",
            label: "text",
            data: [
              { id: "sz", text: "深圳", color: "success" },
              { id: "gz", text: "广州", color: "primary" },
              { id: "bj", text: "北京" },
              { id: "wh", text: "武汉" },
              { id: "sh", text: "上海" }
            ]
          })
        },
        radio: {
          title: "状态",
          search: { show: true }, //显示查询
          type: "dict-radio", //单选类型字段
          dict: dict({ //远程数据字典
            url: "/dicts/OpenStatusEnum?single"
          })
        }
      }
    }

2、 一个完全体crud就出来了

特性

1. 面向配置的crud编程

  • 根据crud配置快速开发crud功能,可作为低代码平台基础框架

2. 数据字典

  • 支持本地和远程获取
  • 配合select,轻松实现数据存的是value值,需要对应字典的label来展示的需求

3. 丰富的字段类型

  • 通过配置字段类型“column.type”来简化配置
  • 根据字段类型不同,自动生成不同的表单组件
  • 支持自定义字段类型

4. 扩展组件

通过扩展自定义组件,扩展自定义类型

5. 多UI支持

支持Antdv、Element,你喜欢哪个就用哪个

谁在用fast-crud?

依赖

ui组件库

基于

monorepo

lerna

FsAdmin

示例admin脚手架

依赖

参考如下项目

感谢这些优秀的项目

我的其他项目

---------------来都来了点个star再走呗-----------------↗↗↗↗↗↗↗↗
解谜提示
谜题共三层,前两层是两种不同的编码方式,第三层这里就不剧透了,留一点小乐趣。

fast-crud's People

Contributors

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