vue-onsenui
Version:
Vue.js bindings for Onsen UI
41 lines (34 loc) • 1.34 kB
JavaScript
import _extends from 'babel-runtime/helpers/extends';
import 'onsenui/esm/elements/ons-popover';
import { hidable, hasOptions, dialogCancel, deriveEvents, deriveDBB, portal } from '../mixins';
export default {
name: 'v-ons-popover',
mixins: [hidable, hasOptions, dialogCancel, deriveEvents, deriveDBB, portal],
props: {
target: {
validator: function validator(value) {
return value._isVue || typeof value === 'string' || value instanceof Event || value instanceof HTMLElement;
}
}
},
computed: {
normalizedTarget: function normalizedTarget() {
if (this.target && this.target._isVue) {
return this.target.$el;
}
return this.target;
},
normalizedOptions: function normalizedOptions() {
if (this.target) {
return _extends({
target: this.normalizedTarget
}, this.options);
}
return this.options;
}
}
};
if (module.exports.__esModule) module.exports = module.exports.default
var __vue__options__ = (typeof module.exports === "function"? module.exports.options: module.exports)
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ons-popover',_vm._g({},_vm.unrecognizedListeners),[_vm._t("default")],2)}
__vue__options__.staticRenderFns = []