ui.ts
656 Bytes
import type { App } from "vue";
import {
VButton,
VCell,
VDropdownItem,
VDropdownMenu,
VField,
VList,
VNavBar,
VPicker,
VPopup,
VSearch,
VTabbar,
} from "@vui/mobile";
import "vant/lib/index.css";
export function setupUI(app: App) {
app.component("VButton", VButton);
app.component("VCell", VCell);
app.component("VDropdownItem", VDropdownItem);
app.component("VDropdownMenu", VDropdownMenu);
app.component("VField", VField);
app.component("VList", VList);
app.component("VNavBar", VNavBar);
app.component("VPicker", VPicker);
app.component("VPopup", VPopup);
app.component("VSearch", VSearch);
app.component("VTabbar", VTabbar);
}