vue-directive-copy
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "vue-directive-copy", | ||
"description": "A Vue.js project", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"author": "Lee Khang <lekhang2512@gmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -5,4 +5,10 @@ import utils from './utils' | ||
bind(el, { value, arg, modifiers }) { | ||
let position = 'top' | ||
if (arg) { | ||
position = arg | ||
} | ||
el.classList.add('copy-tooltip') | ||
el.setAttribute('copy-tooltip', 'click copy') | ||
el.setAttribute('copy-tooltip-position', arg) | ||
if (arg === 'callback') { | ||
@@ -9,0 +15,0 @@ el.$copyCallback = value |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1291205
656