All Projects → nanxiaobei → Ant Plus

nanxiaobei / Ant Plus

Licence: mit
🔺 Ant Design 表单简化版

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ant Plus

Customalertviewdialogue
Custom AlertView Dialogue is the world's most advanced alert view library. Custom AlertView Dialogue includes simple message popups, confirmation alerts, selector popups, action sheet bottom menus, and input/feedback contact forms.
Stars: ✭ 100 (-52.83%)
Mutual labels:  form, input, select
antd-form-mate
📦 基于 ant design 的表单组件,配置化实现表单功能。
Stars: ✭ 14 (-93.4%)
Mutual labels:  form, antd, ant-design
Jhform
JhForm - 自定义表单工具,更加简单,快捷的创建表单、设置页面
Stars: ✭ 108 (-49.06%)
Mutual labels:  form, input, select
Vxe Table
🐬 vxe-table vue 表格解决方案
Stars: ✭ 4,242 (+1900.94%)
Mutual labels:  form, input, select
Antd Schema Form
Based on Ant Design, interactive forms can be generated through JSON Schema configuration. - 基于Ant Design,可以通过JSON Schema配置生成可交互的表单。
Stars: ✭ 137 (-35.38%)
Mutual labels:  antd, form, ant-design
Formbase
Better default styles for common input elements.
Stars: ✭ 560 (+164.15%)
Mutual labels:  form, input, select
Antv
Ant Design of Vue.js 2.0
Stars: ✭ 99 (-53.3%)
Mutual labels:  antd, ant-design
Vue Formulate
⚡️ The easiest way to build forms with Vue.
Stars: ✭ 1,947 (+818.4%)
Mutual labels:  form, input
Vuepress Theme Antdocs
🔥🎨 An Ant Design style theme for VuePress. (QQ Group: 867711329)
Stars: ✭ 147 (-30.66%)
Mutual labels:  antd, ant-design
Dynamic Antd Theme
🌈 A simple plugin to dynamic change ant-design theme whether less or css.
Stars: ✭ 174 (-17.92%)
Mutual labels:  antd, ant-design
React Antd Admin
用React和Ant Design搭建的一个通用管理后台
Stars: ✭ 1,313 (+519.34%)
Mutual labels:  antd, ant-design
Vue Ui For Pc
基于Vue2.x的一套PC端UI组件,包括了Carousel 跑马灯、Cascader 级联、Checkbox 多选框、Collapse 折叠面板、DatePicker 日期选择、Dialog 对话框、Form 表单、Input 输入框、InputNumber 数字输入框、Layer 弹窗层、Loading 加载、Menu 菜单、Page 分页、Progress 进度条、Radio 单选框、SelectDropDown 仿select、Switch 开关、Table 表格、Tabs 标签页、Textarea 文本框、Tooltip 文字提示、BackTop 返回顶部、steps 步骤条、Transfer 穿梭框、Tree 树形、Upload 文件上传、Lazy 图片懒加载、Loading 加载、Pagination 分页等等
Stars: ✭ 156 (-26.42%)
Mutual labels:  form, select
Antd Img Crop
🔪 An image cropper for Ant Design Upload
Stars: ✭ 207 (-2.36%)
Mutual labels:  antd, ant-design
Vue Antd Admin
🐜 Ant Design Pro's implementation with Vue
Stars: ✭ 2,766 (+1204.72%)
Mutual labels:  antd, ant-design
Spring Security React Ant Design Polls App
Full Stack Polls App built using Spring Boot, Spring Security, JWT, React, and Ant Design
Stars: ✭ 1,336 (+530.19%)
Mutual labels:  antd, ant-design
Fc Angular
快速搭建angular后台管理系统的admin template。Fast development platform based on angular8, ng.ant.design built multi-tab page background management system (continuous upgrade) ^_^
Stars: ✭ 171 (-19.34%)
Mutual labels:  antd, ant-design
React Ui Roundup
A one-stop-shop for comparing the features of all the best React frameworks. Useful for designers and engineers alike!
Stars: ✭ 177 (-16.51%)
Mutual labels:  antd, ant-design
Selectize.js
Selectize is the hybrid of a textbox and <select> box. It's jQuery based, and it has autocomplete and native-feeling keyboard navigation; useful for tagging, contact lists, etc.
Stars: ✭ 12,744 (+5911.32%)
Mutual labels:  input, select
Heyui
🎉UI Toolkit for Web, Vue2.0 http://www.heyui.top
Stars: ✭ 2,373 (+1019.34%)
Mutual labels:  form, select
Ant Design Pro Plus
✨ 基于 ant-design-pro 做一些微小的工作。
Stars: ✭ 88 (-58.49%)
Mutual labels:  antd, ant-design
logo

Ant Plus 4

Ant Plus 是 Ant Design 表单系统的简化版,以最符合 html 直觉的方式来搭建表单。

npm version npm downloads npm bundle size GitHub npm peer dependency version npm peer dependency version


Ant Plus 去除了对 Form.Item 的依赖,同时提供了全新的 rules 与组件 Props,可大幅简化开发,消灭繁琐样板代码,轻松构建起简洁清晰、利于维护的表单结构。

文档

https://nanxiaobei.github.io/ant-plus 文档中介绍了使用方式及组件 API。

特点

  • 极其简便,告别繁琐的 Form.Itemrules
  • 简化的 rules 设置方式,简化的表单组件 Props
  • 可统一定义 placeholder 信息与 rules 校验提示

对比

Ant Plus 与 Ant Design 表单代码对比:

view

安装

yarn add antx

npm install antx

使用

import React from 'react';
import { Form, Input } from 'antx';
import { Button } from 'antd';

const App = () => {
  const onFinish = (values) => {
    console.log(values);
  };

  return (
    <Form cols={[8, 16]} data={{ name: 'Emily' }} onFinish={onFinish}>
      <Input label="用户名" name="name" rules={['required', 'max=10']} tip="full" />
      <Button label="" type="primary" htmlType="submit">
        提交
      </Button>
    </Form>
  );
};

export default App;

Form.Item Props 中的项,均可直接用于表单控件的 Props,如 labelnamerules 等。

此外,Ant Plus 还对 rules 进行了简化,可直接使用字符串短语来设置。

示例

  • 使用示例 查看上文代码的在线版本。
  • 对比示例 包含 Ant Design 官网所有 Form 示例的 Ant Plus 对比实现。

协议

MIT License (c) nanxiaobei

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].