vue-js-popover
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -414,2 +414,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _Popover = __webpack_require__(2); | ||
@@ -438,8 +440,6 @@ | ||
var mods = Object.keys(modifiers); | ||
var name = (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.name ? value.name : arg; | ||
var position = mods[0] || defaultPosition; | ||
return { | ||
name: value.name ? value.name : arg, | ||
position: mods[0] || defaultPosition, | ||
value: value | ||
}; | ||
return { name: name, position: position, value: value }; | ||
}; | ||
@@ -446,0 +446,0 @@ |
{ | ||
"name": "vue-js-popover", | ||
"description": "Vue.js 2+ popover component", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"author": "euvl <yev.vlasenko@gmail.com>", | ||
@@ -6,0 +6,0 @@ "private": false, |
@@ -31,2 +31,8 @@ [![npm version](https://badge.fury.io/js/vue-js-popover.svg)](https://badge.fury.io/js/vue-js-popover) | ||
Or: | ||
```vue | ||
<button v-popover="{ name: 'foo' }">Toggle popover</button> | ||
``` | ||
### Tooltip | ||
@@ -33,0 +39,0 @@ |
@@ -9,8 +9,6 @@ import Popover from './Popover.vue' | ||
let mods = Object.keys(modifiers) | ||
let name = typeof value === 'object' && value.name ? value.name : arg | ||
let position = mods[0] || defaultPosition | ||
return { | ||
name: value.name ? value.name : arg, | ||
position: mods[0] || defaultPosition, | ||
value | ||
} | ||
return { name, position, value } | ||
} | ||
@@ -17,0 +15,0 @@ |
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
71909
107
870