vuestic-ui
Version:
Vue 3 UI Framework
25 lines (24 loc) • 726 B
JavaScript
import { d as defineVuesticPlugin } from "../../../services/vue-plugin/utils/define-vuestic-plugin.mjs";
import { d as defineGlobalProperty } from "../../../services/vue-plugin/utils/global-properties.mjs";
const vaDropdownPlugin = {
closeDropdown() {
let vm = this;
while (vm = vm.$parent) {
const name = vm.$options.name;
if (name === "VaDropdown") {
vm.hide();
break;
}
}
}
};
const VaDropdownPlugin = defineVuesticPlugin(() => ({
install(app) {
defineGlobalProperty(app, "$closeDropdown", vaDropdownPlugin.closeDropdown);
defineGlobalProperty(app, "$vaDropdown", vaDropdownPlugin);
}
}));
export {
VaDropdownPlugin as V
};
//# sourceMappingURL=index.mjs.map