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'withoptionsto 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