UNPKG

vant

Version:

Mobile UI Components built on Vue

15 lines (14 loc) 295 B
import { camelize } from "./format.mjs"; function withInstall(options) { options.install = (app) => { const { name } = options; if (name) { app.component(name, options); app.component(camelize(`-${name}`), options); } }; return options; } export { withInstall };