UNPKG

@vuesax-alpha/nightly

Version:
26 lines (21 loc) 611 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); require('../dom/index.js'); var unwrapElement = require('./utils/unwrap-element.js'); var middleware = require('../dom/middleware.js'); function arrow(options) { return { name: "arrow", options, fn(args) { const element = unwrapElement.unwrapElement(vue.unref(options.element)); if (element == null) { return {}; } return middleware.arrow({ element, padding: options.padding }).fn(args); } }; } exports.arrow = arrow; //# sourceMappingURL=arrow.js.map