Gathering detailed insights and metrics for sunflower-antd
Gathering detailed insights and metrics for sunflower-antd
Gathering detailed insights and metrics for sunflower-antd
Gathering detailed insights and metrics for sunflower-antd
🦹 Process components for antd4 & antd3 by alipay industry technology
npm install sunflower-antd
Typescript
Module System
90.4
Supply Chain
90.6
Quality
79.5
Maintenance
100
Vulnerability
100
License
TypeScript (61.03%)
JavaScript (38.97%)
Total Downloads
1,452,706
Last Day
868
Last Week
17,923
Last Month
78,192
Last Year
746,923
MIT License
498 Stars
281 Commits
43 Forks
13 Watchers
30 Branches
40 Contributors
Updated on Apr 14, 2025
Minified
Minified + Gzipped
Latest Version
1.0.0-beta.3
Package Id
sunflower-antd@1.0.0-beta.3
Unpacked Size
58.88 kB
Size
12.73 kB
File Count
63
Cumulative downloads
Total Downloads
Last Day
-0.2%
868
Compared to previous day
Last Week
-6.2%
17,923
Compared to previous week
Last Month
3.8%
78,192
Compared to previous month
Last Year
71.5%
746,923
Compared to previous year
Process Components for antd.
English | 简体中文
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.
1import React from 'react'; 2import { useFormTable } from 'sunflower-antd'; 3import { Input, Button, Table, Form } from 'antd'; 4 5export default props => { 6 const { formProps, tableProps } = useFormTable({ 7 async search(values) { 8 const res = await request(values); 9 return res; 10 }, 11 }); 12 13 return ( 14 <div> 15 <Form {...formProps}> 16 <Form.Item label="Username" name="username"> 17 <Input placeholder="Username" /> 18 </Form.Item> 19 20 <Form.Item> 21 <Button type="primary" htmlType="submit"> 22 Search 23 </Button> 24 </Form.Item> 25 </Form> 26 27 <Table 28 columns={[ 29 { 30 title: 'Username', 31 dataIndex: 'username', 32 key: 'username', 33 }, 34 ]} 35 {...tableProps} 36 /> 37 </div> 38 ); 39};
$ npm i sunflower-antd --save
// or
$ yarn add sunflower-antd
$ yarn
$ yarn start
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
108 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More