tccc-vue-uikit
Version:
TCCC Vue3 UIKit
24 lines (19 loc) • 643 B
text/typescript
import TUIConversationServer from './server';
import TUIConversationComponent from './index.vue';
const install = (app: any) => {
TUIConversationComponent.TUIServer = TUIConversation.server;
app.component(TUIConversation.name, TUIConversationComponent);
};
const plugin = (TUICore: any) => {
(TUIConversation.server as any) = new TUIConversationServer(TUICore);
TUICore.component(TUIConversation.name, TUIConversation);
return TUIConversation;
};
const TUIConversation = {
name: 'TUIConversation',
component: TUIConversationComponent,
server: TUIConversationServer,
install,
plugin,
};
export default TUIConversation;