first commit
This commit is contained in:
14
node_modules/vant/es/utils/with-install.mjs
generated
vendored
Normal file
14
node_modules/vant/es/utils/with-install.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user