Skip to content

witSearchFunction Quick Function Search

witSearchFunction is a quick function search component based on Element Plus tree selector, used to quickly search and locate route menu functions in applications. The component supports horizontal/vertical layout modes, provides tree structure display and quick positioning of route menus.

Usage Example

vue
<template>
  <div>
    <!-- Vertical layout -->
    <wit-search-function />
    
    <!-- Horizontal layout -->
    <wit-search-function :is-horizontal="true" />
  </div>
</template>

<script lang="ts" setup>
// Component automatically gets data from routes and settings
</script>

API

Component

vue
<wit-search-function
  :is-horizontal="false"
/>

Properties

Property NameTypeDefault ValueDescription
isHorizontalBooleanfalseWhether to use horizontal layout, default vertical layout

Slots

Slot NameDescription
defaultCustom tree node display content

Events

Event NameDescriptionParameters
node-clickTriggered when tree node is clickedSelected node data

湘ICP备2024070110号