
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
import
cumbersome form controls.React.lazy
API to support loading most of the Ant Design
data input components on demand.TypeScript
with complete defined types.Can completely replace Ant Design's Form component, dealing with complex forms, pop-up windows, etc.
| Property | Description | Type | Default |
| --- | --- | --- | --- | --- |
| columns | Columns of table | ColumnProps [] | - |
| formProps | Consistent with the Ant Design [Form] (https://ant.design/components/form-cn/#Form) configuration | FormProps | - |
| onChange | Triggered when the form value changes | (allValues, changedValues) => void | - |
| onSubmit | Triggered when the submit button is clicked | (values) => void | - |
| showSubmit | Whether to show the submit button | boolean | true
|
| submitText | Submit button text | React.ReactNode | Submit
|
| footer | Bottom of the form | React.ReactNode | - |
Form control configuration data object, which is an item in columns, Column uses the same API.
| Property | Description | Type | Default |
| --- | --- | --- | --- | --- |
| type | Form control type | string | - |
| render | Custom form controls, when used with the type
field, use render
first. | React.ReactNode | - |
| name | Field name within the form field | string | - |
| options | Consistent with the options parameter of getFieldDecorator(id, options) | object | - |
| extraProps | Additional custom parameters for form controls, different control parameters, corresponding to type
| object | - |
| formItemProps | The parameters of the form control, different control parameters, corresponding to type
| object | - |
Use the FormPro.create
function to create a new FormPro
component. The new FormPro
component built in type
will be determined by options
.
| Property | Description | Type | Default | | --- | --- | --- | --- | --- | | type | Form control type | string | - | | component | The component corresponding to the form control | any | - | | formItemRender | Custom rendering of FormItem | (itemOptions: any, Component: any) => JSX.Element | - |
Create a FormPro
component with a built-in Checkbox
type.
const NewFormPro = create([{
type: 'Checkbox',
component: React.lazy(() => import('antd/lib/checkbox')),
}])
...
<NewFormPro columns={[type: 'Checkbox', name: 'checkbox']} />
FAQs
Expansion Ant Desgin From Component
We found that form-pro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.