Are you an LLM? You can read better optimized documentation at /front/component/ma-search/examples/basic-usage.md for this page in Markdown format
Basic Usage β
The simplest implementation of a search form, including basic form elements such as input fields and selectors. Suitable for most simple search scenarios.
Basic Search Form β
Basic Configuration Guide β
Search Item Configuration β
- Input Field Search: Use
render: 'input'
to create a text input field - Selector Search: Use
render: 'select'
withoptions
to create a dropdown selection - Date Search: Use
render: 'date-picker'
to create a date picker
Basic Properties β
label
: The label name of the search itemprop
: The key name corresponding to the form datarender
: Specifies the type of component to render
Use Cases β
1. User List Search β
Suitable for searching user information by username, email, status, etc.
2. Product Information Filtering β
Suitable for filtering products by name, category, price range, etc.
3. Order Query β
Suitable for querying orders by order number, order status, order time, etc.
Key Features β
- β Simple and easy-to-use API design
- β Supports multiple form component types
- β Automatic form data collection and processing
- β Built-in search and reset functionality
- β Comprehensive event callback mechanism
Related Links β
- Advanced Search - Learn about more complex search configurations
- Responsive Layout - Learn about adaptive layout configurations
- Form Validation - Learn about form validation features