Are you an LLM? You can read better optimized documentation at /v3/front/component/ma-search/examples/basic-usage.md for this page in Markdown format
Basic Usage โ
The simplest search form implementation, 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 Search: Use
render: 'input'to create a text input field - Selector Search: Use
render: 'select'withoptionsto create a dropdown selector - Date Search: Use
render: 'date-picker'to create a date picker
Basic Properties โ
label: The label name for the search itemprop: The key name corresponding to the form datarender: Specifies the component type to render
Usage Scenarios โ
1. User List Search โ
Suitable for searching user information by conditions such as username, email, and status.
2. Product Information Filtering โ
Suitable for filtering products by conditions such as product name, category, and price range.
3. Order Query โ
Suitable for querying orders by conditions such as order number, order status, and order time.
Key Features โ
- โ Simple and easy-to-use API design
- โ Support for 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 functionality