kazeful / naive-directives

Collect common directive for Vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick start

Installation

npm i naive-directives

Usage

On-demand

Support tree-shaking

import { copy } from 'naive-directives'

export default {
  directives: {
    copy,
  },
}

Fully import

import Vue from 'vue'
import directive from 'naive-directives'
Vue.use(directive)

Use

<div v-copy="text"><div>
<div v-copy.icon="text"><div>
<div v-copy.icon.dblclick="text"><div>

About

Collect common directive for Vue


Languages

Language:JavaScript 100.0%