Skip to content

Component Props

You can set various parameters for components through the props configuration item to adjust component behavior and appearance.

Generate a Date Component That Can Select Both Date and Time

Set props to generate a component that supports both date and time selection. The following example shows how to configure a DatePicker component to select date and time.

Note

The props parameters supported by components can be obtained by consulting the corresponding component documentation or directly viewing the component source code.

Component configuration items can be queried in the corresponding UI framework documentation. The following are links to UI framework documentation:

Generate a Disabled input Component

By setting the component's disabled state through props, you can create a non-editable input component. The following example shows how to disable an input component.

Modify Component Configuration

Modify the disabled state of the input2 component through API

Global Configuration of Component Parameter Defaults

You can set default parameters for components through global configuration to ensure that all generated components follow a unified configuration. The following example shows how to set default values for all components.

FormCreate is an open-source project released under the MIT License. Free for personal and commercial use.