mirror of https://github.com/halo-dev/halo
24 lines
698 B
TypeScript
24 lines
698 B
TypeScript
import type { App } from "vue";
|
|
import { Dropdown, Menu, Tooltip, VClosePopper, VTooltip } from "floating-vue";
|
|
import "floating-vue/dist/style.css";
|
|
// @ts-ignore
|
|
import VueGridLayout from "vue-grid-layout";
|
|
import { defaultConfig, plugin as FormKit } from "@formkit/vue";
|
|
import FormKitConfig from "@/formkit/formkit.config";
|
|
|
|
export function setupComponents(app: App) {
|
|
app.use(VueGridLayout);
|
|
app.use(
|
|
FormKit,
|
|
defaultConfig({
|
|
...FormKitConfig,
|
|
})
|
|
);
|
|
|
|
app.directive("tooltip", VTooltip);
|
|
app.directive("close-popper", VClosePopper);
|
|
app.component("FloatingDropdown", Dropdown);
|
|
app.component("FloatingTooltip", Tooltip);
|
|
app.component("FloatingMenu", Menu);
|
|
}
|