All Projects → ant-design → Sunflower

ant-design / Sunflower

Licence: mit
🦹 Process components for antd4 & antd3 by alipay industry technology

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Sunflower

Virtual List
🧾 React Virtual List Component which worked with animation
Stars: ✭ 232 (-47.39%)
Mutual labels:  antd, react-component, ant-design
Antd Schema Form
Based on Ant Design, interactive forms can be generated through JSON Schema configuration. - 基于Ant Design,可以通过JSON Schema配置生成可交互的表单。
Stars: ✭ 137 (-68.93%)
Mutual labels:  antd, react-component, ant-design
picker
📅 All Date Pickers you need.
Stars: ✭ 185 (-58.05%)
Mutual labels:  react-component, antd, ant-design
react-antd-formutil
Happy to use react-formutil in the project based on ant-design ^_^
Stars: ✭ 16 (-96.37%)
Mutual labels:  react-component, antd, ant-design
antd-etable
Editable Table base on Ant Design
Stars: ✭ 43 (-90.25%)
Mutual labels:  antd, ant-design
ant-table-extensions
Export, Search extensions to Ant Design's Table component.
Stars: ✭ 43 (-90.25%)
Mutual labels:  antd, ant-design
Ant Design Dark Theme
🌚 Dark theme variables of Ant Design
Stars: ✭ 431 (-2.27%)
Mutual labels:  antd, ant-design
react-drag
A drag and drop platform based on sortable.js front-end visualization. 一个基于sortable.js的前端可视化搭建的拖拽平台,ui组件采用antd-mobile.通过umi脚手架构建.技术栈采用dva+hooks+umi+antd-mobile+sortable.js+react-color.
Stars: ✭ 51 (-88.44%)
Mutual labels:  antd, ant-design
best-of-react
🏆 A ranked list of awesome React open-source libraries and tools. Updated weekly.
Stars: ✭ 364 (-17.46%)
Mutual labels:  react-component, ant-design
umi-plugin-antd-theme
🎨 Best theme plugin
Stars: ✭ 77 (-82.54%)
Mutual labels:  antd, ant-design
Ng Alain
NG-ZORRO admin panel front-end framework (surge mirror https://ng-alain-doc.surge.sh)
Stars: ✭ 4,287 (+872.11%)
Mutual labels:  antd, ant-design
next-plugin-antd-less
🎩 Use Antd (Less) with Next.js v12, Zero Dependency on other Next-Plugins.
Stars: ✭ 338 (-23.36%)
Mutual labels:  antd, ant-design
tiny-qiniu-request
tiny-qiniu for rc-upload or antd upload component `customRequest` property
Stars: ✭ 13 (-97.05%)
Mutual labels:  antd, ant-design
antd-pro-toolkit
🐜ant design pro toolkit.
Stars: ✭ 13 (-97.05%)
Mutual labels:  antd, ant-design
erp-crm
IDURAR is Open Source ERP/CRM Based on Mern Stack (Node.js / Express.js / MongoDb / React.js ) with Ant Design (AntD) and Redux
Stars: ✭ 18 (-95.92%)
Mutual labels:  antd, ant-design
redux-form-antd
Ant design bindings for redux form
Stars: ✭ 107 (-75.74%)
Mutual labels:  antd, ant-design
GOSH-FHIRworks2020-React-Dashboard
🩺 Fully Responsive FHIR Dashboard written using @reactjs for NHS and GOSH hackathon
Stars: ✭ 21 (-95.24%)
Mutual labels:  antd, ant-design
Bird Front
bird前端项目,基于react、antd、antd-admin,封装常用数据组件,细粒度权限解决方案。
Stars: ✭ 272 (-38.32%)
Mutual labels:  antd, ant-design
React Spa
React Redux,适合中大型规模应用开发,注释还算详细,配置有TypeScript、 CSS Modules、React-Router 4、koa接口mock请求等。接口埋点报错统一处理。
Stars: ✭ 327 (-25.85%)
Mutual labels:  antd, ant-design
antd-form-mate
📦 基于 ant design 的表单组件,配置化实现表单功能。
Stars: ✭ 14 (-96.83%)
Mutual labels:  antd, ant-design

Sunflower

Process Components for antd.

NPM version build status

English | 简体中文

Features

  • Support antd4, antd3
  • The relationship between antd components is expressed using react-hooks, and process components are used to simplify development
  • Process Components are extracted from the actual business processes and used immediately

Why

Usually, we use multiple components of antd to complete a process. For example, if you want to complete the function of "using Table to display the list after Form search", you need to deal with the relationship between "Form" and "Table", including query, pagination, etc.

Is there a way to simplify the maintenance of relationships between components? This is what sunflower is for. React-hooks that describe a scene are called "Process Components". Sunflower is a series of antd-based "Process Components".

The following is an example of a "Form & Table" scenario. You only need the following code to complete functions such as querying and paging. useFormTable is a react-hooks, which will return the props of the antd component, etc. You can give these props to the antd component to complete the connection between the components.

import React from 'react';
import { useFormTable } from 'sunflower-antd';
import { Input, Button, Table, Form } from 'antd';

export default props => {
  const { formProps, tableProps } = useFormTable({
    async search(values) {
      const res = await request(values);
      return res;
    },
  });

  return (
    <div>
      <Form {...formProps}>
        <Form.Item label="Username" name="username">
          <Input placeholder="Username" />
        </Form.Item>

        <Form.Item>
          <Button type="primary" htmlType="submit">
            Search
          </Button>
        </Form.Item>
      </Form>

      <Table
        columns={[
          {
            title: 'Username',
            dataIndex: 'username',
            key: 'username',
          },
        ]}
        {...tableProps}
      />
    </div>
  );
};

Document

Usage

$ npm i sunflower-antd --save
// or
$ yarn add sunflower-antd

Development

$ yarn
$ yarn start
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].