@ly-js/ui
Version:
`@ly-js/ui` 是基于`vue3`常用库,会在`@ly-js/element`、`@ly-js/vant`中引入
26 lines (21 loc) • 559 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var utils = require('@ly-js/utils');
function withInstall(options) {
;
options.install = (app) => {
const { name } = options;
app.component(name, options);
app.component(utils.camelize(`-${name}`), options);
};
return options;
}
function directiveWithInstall(name, options) {
;
options.install = (app) => {
app.directive(name, options);
};
return options;
}
exports.directiveWithInstall = directiveWithInstall;
exports.withInstall = withInstall;