All Projects → shayneo → Vue Fuse

shayneo / Vue Fuse

Licence: mit

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Fuse

xwmfs
X11 Window-Manager file system based on FUSE
Stars: ✭ 21 (-92.53%)
Mutual labels:  fuse
redis-fs
Mount a Redis database as a filesystem using fuse.
Stars: ✭ 76 (-72.95%)
Mutual labels:  fuse
postgresqlfs
FUSE driver to access PostgreSQL databases as a file system
Stars: ✭ 70 (-75.09%)
Mutual labels:  fuse
procstat
Easy way to expose process internal state to filesystem using fuse.
Stars: ✭ 14 (-95.02%)
Mutual labels:  fuse
fuse-device-plugin
kubernetes device plugin for using /dev/fuse without privilege
Stars: ✭ 17 (-93.95%)
Mutual labels:  fuse
cgroupfs
Cgroupfs provides an emulated /proc/meminfo, /proc/cpuinfo... for containers
Stars: ✭ 28 (-90.04%)
Mutual labels:  fuse
ratarmount
Random Access Read-Only Tar Mount
Stars: ✭ 217 (-22.78%)
Mutual labels:  fuse
Btfs
A bittorrent filesystem based on FUSE.
Stars: ✭ 2,984 (+961.92%)
Mutual labels:  fuse
guihua.lua
A GUI library for Neovim plugin developer
Stars: ✭ 51 (-81.85%)
Mutual labels:  fuzzy-search
fzf-folds.vim
Vim plugin that lets you fuzzy search for folds in a file
Stars: ✭ 15 (-94.66%)
Mutual labels:  fuzzy-search
ext2py
The slowest ext2fs driver ever! (in Python)
Stars: ✭ 14 (-95.02%)
Mutual labels:  fuse
examples
Fuse examples
Stars: ✭ 13 (-95.37%)
Mutual labels:  fuse
zk
A note-taking tool based on the famous Zettelkasten method
Stars: ✭ 41 (-85.41%)
Mutual labels:  fuzzy-search
SymSpellCppPy
Fast SymSpell written in c++ and exposes to python via pybind11
Stars: ✭ 28 (-90.04%)
Mutual labels:  fuzzy-search
Monocular-Visual-Inertial-Odometry
This contains the code(in development) for monocular visual odometry of a quadrotor. The visual data from the monocular camera is fused with onboard IMU to develop indoor control and navigation algorithms.
Stars: ✭ 70 (-75.09%)
Mutual labels:  fuse
FlashCards
Learning Blazor By Creating A Flash Cards Application
Stars: ✭ 17 (-93.95%)
Mutual labels:  fuzzy-search
gobazel
gobazel is a tool to help golang bazel developers to map bazel's folder structure to golang's standard folder structure, through FUSE (thus only works for Linux and MacOS users).
Stars: ✭ 28 (-90.04%)
Mutual labels:  fuse
Liquidmetal
💦🤘 A mimetic poly-alloy of the Quicksilver scoring algorithm, essentially LiquidMetal. </Schwarzenegger Voice>
Stars: ✭ 279 (-0.71%)
Mutual labels:  fuzzy-search
Jnr Fuse
FUSE implementation in Java using Java Native Runtime (JNR)
Stars: ✭ 266 (-5.34%)
Mutual labels:  fuse
fbind
A versatile Android mounting utility for folders, EXT4 images, LUKS/LUKS2 encrypted volumes, regular partitions and more.
Stars: ✭ 42 (-85.05%)
Mutual labels:  fuse

vue-fuse npm package

A Vue.js pluggin for fuzzy search library, Fuse.js. This plugin wraps Fuse.js in a convenient component with most of the boilerplate and props already set up. It's designed to enable you drop a client-side fuzzy search into your app without much work.

Migrating from 2 to 3

The 3.x version of vue-fuse is compatible with both Vue 2.x and Vue 3.x. However, there were some breaking changes made to better accomodate things going forward. For full details, check out the migration guide

Installation

npm install vue-fuse

VueFuse should be registered as a component within a parent component

<script>
import VueFuse from 'vue-fuse'

export default {
  components: {
    VueFuse,
  },
}
</script>

Full Fuse.js Documentation

This is just a simple drop in component leverage Fuse.js. For complete documentation, check out http://fusejs.io/

vue-fuse Component

The vue-fuse component can be added any of your existing Vue components. It creates an input html element, and takes props (listed below) to execute a search. Search results are then returned via events.

vue-fuse Compoment Props

Most of the props line up with Fuse.js options with the defaults set to match the defaut Fuse.js behavior.

Property Desc Type Default values
placeholder placeholder text for the input String `""`
defaultAll If true, results will inclide ALL items in list when search is null. If false, results will inclide no items when search is null. Boolean true
list The array of items that Fuse will search Array []
fuseOpts The fuse.js configuration object. Oject, required {}
defaultAll If true, results will inclide ALL items in list when search is null. If false, results will inclide no items when search is null. Boolean true
mapResults If true, search meta info (such as score and original index) will be removed from the result payload, and only the item from the list will be returned. Boolean false
search Binding to the search prop will allow you to map data directly to the input String ""

Component Demo / Example

<template>
  <VueFuse :keys="keys" :list="bikes" :defaultAll="false" />
</template>

<script>
export default {
  data () {
    return {
      bikes: [
        {
          brand: "Schwinn",
          model: {
            name: "Classic",
            id: "1345"
          }
        },
        {
          brand: "Red Line",
          model: {
            name: "Flight",
            id: "5430"
          }
        },
        {
          brand: "Hoffman",
          model: {
            name: "Condore",
            id: "0543"
          }
        },
        {
          brand: "Tribe",
          model: {
            name: "CRMO",
            id: "0432"
          }
        }
      ],
      opts: {
        keys: ["brand", "model.name", "model.id"]
      }
    }
  }
}
</script>

Accessing Results from vue-fuse Component

Results are stored in the result data array of the vue-fuse component. The component watches the result array and emits an event when the array is changed. This event is named fuse-results and contains the result array.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].