1.0.5 • Published 1 year ago

selection-tip v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

selection-tip

A vue directive with selecting text to search

Install

npm install selection-tip

Example

// import and register the directive
import selection from 'selection-tip'
Vue.directive('selection', selection)

// usage
<article v-selection="prop">This is an article</article>

// prop: Array
[
    {
        label: 'search',
        icon: '...',
        handler(selectedText) {
            console.log('This function is an action after clicking the popover item')
        }
    }
]

// The prop 'label' or 'icon' is required.
// The prop 'handler' is required.

License

MIT

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago