🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
1.1 KiB

import type { App } from 'vue';
import * as components from './components';
import { default as version } from './version';
import cssinjs from './_util/cssinjs';
export * from './components';
export * from './_util/cssinjs';
export { default as theme } from './theme';
export const install = function (app: App) {
Object.keys(components).forEach(key => {
const component = components[key];
if (component.install) {
app.use(component);
}
});
app.use(cssinjs.StyleProvider);
app.config.globalProperties.$message = components.message;
app.config.globalProperties.$notification = components.notification;
app.config.globalProperties.$info = components.Modal.info;
app.config.globalProperties.$success = components.Modal.success;
app.config.globalProperties.$error = components.Modal.error;
app.config.globalProperties.$warning = components.Modal.warning;
app.config.globalProperties.$confirm = components.Modal.confirm;
app.config.globalProperties.$destroyAll = components.Modal.destroyAll;
return app;
};
export { version, cssinjs };
export default {
version,
install,
};